LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2012, 05:20 AM   #1
sz3za
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
iptables rule for multiple dynamically added interfaces


Hi *

I have small question regarding iptables.
I have server acting as Internat gw, firewall and IPsec access server. Firewall is written by me in "block by default" style.
I have question regarding iptables rule for IPsec/L2TP interfaces which are by nature dynamic (appear/disappear when user connects, multiple interfaces as there is multiple users).

Namely: is there way to write single iptables rule for all pppx interfaces instead of separate duplicated rules for each interface (ppp0, ppp1, ppp2, etc).
In other words: is possible to use wildchars in iptables interface name?

Thx in advance !
 
Old 12-31-2012, 08:06 AM   #2
sz3za
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Sorry replaying to myself.
It looks like "+" suffix in interface name is the thing I'm looking for (so ppp0,ppp1,ppp2,ppp3,... can be expressed as ppp+).
br
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: All routing on any interface seems to stop when a rule for wlan0 is added iwonbigbro Linux - Security 4 10-11-2012 09:23 AM
Iptables firewall in multiple lan interfaces Neelesh Linux - Security 3 07-31-2004 01:19 PM
c code for routing dynamically (just like performing iptables rule) becky_starr Linux - Software 0 01-15-2004 03:55 AM
IPTables and multiple interfaces MaverickApollo Linux - Networking 7 12-28-2003 04:19 PM
netfilter iptables and multiple interfaces raypen Linux - Networking 1 07-23-2002 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration