> > Hello,
> >
> > I am new to ipchains so I have read a lot of documentation
> about setting up
> > chains. However, I don't understand how set up rules for
> dynamic ip. I read
> > the following example:
> >
> > # remote interface, any source, going to permanent ppp address is valid
> > #
>
> Get the IP from ifconfig:
>
> extip=`ifconfig $ippp0 | grep inet | cut -d : -f 2 | cut -d \ -f 1`
Where do I have to put this line? I have tried it at the prompt, but
ipchains doesn't accept it.
>
> > ipchains -A input -i ippp0 -s 0.0.0.0/0 -d $extip/32 -j ACCEPT
> >
> > # almost the same rule for the output chain
> > #
> > ipchains -A output -i ippp0 -s extip/32 -d 0.0.0.0/0 -j ACCEPT
>
> $extip (and $ippp0 ?)
You are absolutely right! extip was a typing error. I have used ippp0
because the external interface is always ippp0 in my case.
Thanks,
Robert-Jan
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.