Linux Netfilter discussions
 help / color / mirror / Atom feed
* PPP Routing
@ 2003-02-26 17:59 Tom Smith
  2003-02-26 22:56 ` Willi Dyck
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Smith @ 2003-02-26 17:59 UTC (permalink / raw)
  To: netfilter

RedHat 7.3 Kernel 2.4.9-31
iptables 1.2.5

I have a working Firewall/VPN. Problem is that I need to create a 
seperate set of rules for each ppp# connection. For example, ppp0's 
ruleset would be:

$IPTABLES -A INPUT -i ppp0 -s $INTNET -d $INTNET -j ACCEPT
$IPTABLES -A OUTPUT -o ppp0 -s $INTNET -d $INTNET -j ACCEPT
$IPTABLES -A FORWARD -i ppp0 -d $INTNET -j ACCEPT
$IPTABLES -A FORWARD -o ppp0 -d $INTNET -j ACCEPT

Is there a way to dynamically create the ppp# as new connections come 
and go?

Tom
tom@openadventures.org




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP Routing
  2003-02-26 17:59 PPP Routing Tom Smith
@ 2003-02-26 22:56 ` Willi Dyck
  2003-02-27  4:50   ` Miguel Angel Amador L.
  2003-02-27 15:23   ` Tom Smith
  0 siblings, 2 replies; 4+ messages in thread
From: Willi Dyck @ 2003-02-26 22:56 UTC (permalink / raw)
  To: netfilter

On Wed, Feb 26, 2003 at 10:59:38AM -0700, Tom Smith wrote:
> RedHat 7.3 Kernel 2.4.9-31
> iptables 1.2.5
> 
> I have a working Firewall/VPN. Problem is that I need to create a 
> seperate set of rules for each ppp# connection. For example, ppp0's 
> ruleset would be:
> 
> $IPTABLES -A INPUT -i ppp0 -s $INTNET -d $INTNET -j ACCEPT
> $IPTABLES -A OUTPUT -o ppp0 -s $INTNET -d $INTNET -j ACCEPT
> $IPTABLES -A FORWARD -i ppp0 -d $INTNET -j ACCEPT
> $IPTABLES -A FORWARD -o ppp0 -d $INTNET -j ACCEPT
> 
> Is there a way to dynamically create the ppp# as new connections come 
> and go?

You might try 'ppp+' instead of 'ppp0'. Although it might not be what
you want, since it will not be loaded dynamically, but it will match
dynamically for all ppp# interfaces. See the netfilter docs for further
info. Hope that helps.

Grufl/Regards -- Willi

-- 
A Microsoft Certified System Engineer is to information technology as a
McDonalds Certified Food Specialist is to the culinary arts.
        Michael Bacarella commenting on the limited value of certification.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP Routing
  2003-02-26 22:56 ` Willi Dyck
@ 2003-02-27  4:50   ` Miguel Angel Amador L.
  2003-02-27 15:23   ` Tom Smith
  1 sibling, 0 replies; 4+ messages in thread
From: Miguel Angel Amador L. @ 2003-02-27  4:50 UTC (permalink / raw)
  To: netfilter

create the rules for each interface... and applied ppp+ for rules in all
ppp's interfaces,
the rules work when de interfaces are up , in the other case, the rules not
work if the interfaces not exist.

in other Words... Read the How To Filter Packet  (netfilter.samba.org)


Att.
  /===/  Miguel Angel Amador L.  /====/
"la vida me sonrie, o se estara riendo de mi? "

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM d- s:+ a- C++++ UL+++ P- L+++ E--- W+++ N++ o K- w++
O- M- V- PS+ PE++ Y PGP- t 5 X+++ R !tv b+ DI- D
G++ e- h* r- y*
------END GEEK CODE BLOCK------

----- Original Message -----
From: "Willi Dyck" <wdyck@gmx.net>
To: <netfilter@lists.netfilter.org>
Sent: Wednesday, February 26, 2003 7:56 PM
Subject: Re: PPP Routing


> On Wed, Feb 26, 2003 at 10:59:38AM -0700, Tom Smith wrote:
> > RedHat 7.3 Kernel 2.4.9-31
> > iptables 1.2.5
> >
> > I have a working Firewall/VPN. Problem is that I need to create a
> > seperate set of rules for each ppp# connection. For example, ppp0's
> > ruleset would be:
> >
> > $IPTABLES -A INPUT -i ppp0 -s $INTNET -d $INTNET -j ACCEPT
> > $IPTABLES -A OUTPUT -o ppp0 -s $INTNET -d $INTNET -j ACCEPT
> > $IPTABLES -A FORWARD -i ppp0 -d $INTNET -j ACCEPT
> > $IPTABLES -A FORWARD -o ppp0 -d $INTNET -j ACCEPT
> >
> > Is there a way to dynamically create the ppp# as new connections come
> > and go?
>
> You might try 'ppp+' instead of 'ppp0'. Although it might not be what
> you want, since it will not be loaded dynamically, but it will match
> dynamically for all ppp# interfaces. See the netfilter docs for further
> info. Hope that helps.
>
> Gruß/Regards -- Willi
>
> --
> A Microsoft Certified System Engineer is to information technology as a
> McDonalds Certified Food Specialist is to the culinary arts.
>         Michael Bacarella commenting on the limited value of
certification.
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PPP Routing
  2003-02-26 22:56 ` Willi Dyck
  2003-02-27  4:50   ` Miguel Angel Amador L.
@ 2003-02-27 15:23   ` Tom Smith
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Smith @ 2003-02-27 15:23 UTC (permalink / raw)
  To: wdyck; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

Thank you, this turned out to be the solution (ppp+).

Tom

Willi Dyck wrote:

>On Wed, Feb 26, 2003 at 10:59:38AM -0700, Tom Smith wrote:
>  
>
>>RedHat 7.3 Kernel 2.4.9-31
>>iptables 1.2.5
>>
>>I have a working Firewall/VPN. Problem is that I need to create a 
>>seperate set of rules for each ppp# connection. For example, ppp0's 
>>ruleset would be:
>>
>>$IPTABLES -A INPUT -i ppp0 -s $INTNET -d $INTNET -j ACCEPT
>>$IPTABLES -A OUTPUT -o ppp0 -s $INTNET -d $INTNET -j ACCEPT
>>$IPTABLES -A FORWARD -i ppp0 -d $INTNET -j ACCEPT
>>$IPTABLES -A FORWARD -o ppp0 -d $INTNET -j ACCEPT
>>
>>Is there a way to dynamically create the ppp# as new connections come 
>>and go?
>>    
>>
>
>You might try 'ppp+' instead of 'ppp0'. Although it might not be what
>you want, since it will not be loaded dynamically, but it will match
>dynamically for all ppp# interfaces. See the netfilter docs for further
>info. Hope that helps.
>
>Gruß/Regards -- Willi
>
>  
>

[-- Attachment #2: Type: text/html, Size: 1262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-27 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-26 17:59 PPP Routing Tom Smith
2003-02-26 22:56 ` Willi Dyck
2003-02-27  4:50   ` Miguel Angel Amador L.
2003-02-27 15:23   ` Tom Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox