lan/dynamic dsl

Feb 28, 2005 1 Replies

I have RH 9 and have just gotten reconnected with dsl, sadly it is dynamic vs. the static ip I used to have. Where can I find the scripts needed to get the info out of the dhcp and into the iptables script to run my firewall. I have dhclient no pump running



Thanks john


To get your external IP Address, you can use something similar to: ifconfig ppp0|grep inet|cut -d : -f 2|cut -d \\ -f 1 For the netmask, use something like this: ifconfig ppp0|grep Mas|cut -d : -f 4 Is this what you had in mind?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required