On Tue, Dec 21, 1999 at 09:21:45AM +0100, R. Kuijvenhoven wrote:
> 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`

> 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 ?)
 
> If I am not mistaking, with dynamic ip, the ppp address isn't necessarily
> the same every time a connection is made. What is the right way to handle
> this?

-- 
Hal B
[EMAIL PROTECTED]
--
            Linux helps those who help themselves


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to