[EMAIL PROTECTED] writes:
> Hi,
> In following rules, as my Isp assigns me dynamic IP adresses, by what can
> I replace "<Dynamic IP_assigned to you by _your_ISP> "?? ..by a command
> such as "ISP_IP" ?? Thanks to clarify that ..
The following one liner can get the IP address
of your ppp0 interface.
ifconfig -a | gawk \
'/^ppp0 / { getline ; split ( $2, a, ":"); print a[2] }'
But, I see that's not what you're asking for.
I think you could use the /etc/ppp/i-pup script that's
called by pppd whenever it as established a connection.
The local IP address is the fourth command line argument
to that.
There might be a race condition between the route
establishment and the enforcement of these rules.
> # Set up firewall to allow my local network to access the Internet:
>
> ipfwadm -O -a accept -P tcp -S <Dynamic IP_assigned to you by _your_ISP> -D
> 0.0.0.0/0 smtp pop-3 telnet www ftp
Why specify any source address here?
> ipfwadm -I -a accept -P tcp -k -S 0.0.0.0/0 smtp pop-3 telnet www ftp -D
> <Dynamic IP_assigned to you by _your_ISP>
Why specify the destination address here.
--
Jim Dennis (800) 938-4078 [EMAIL PROTECTED]
Proprietor, Starshine Technical Services: http://www.starshine.org
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]