Skip to contentSkip to conversation

iptables for ADSL

DISCUSSION Alejandro Cabrera Obed 4 participants 4 messages Nov 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi people !!!

I have a basic doubt: I want to connect my Linux with iptables to Intrenet via ADSL. Just one question:

Do I have to set
echo "1" > /proc/sys/net/ipv4/ip_dynadrr
in order to work with dynamic addresses asigned by my ISP ????

Thanks a lot

Ale

#1 lore raw
Quoted 8 lines · Alejandro Cabrera Obed

Hi people !!!

I have a basic doubt: I want to connect my Linux with iptables to Intrenet via ADSL. Just one question:

Do I have to set
echo "1" > /proc/sys/net/ipv4/ip_dynadrr
in order to work with dynamic addresses asigned by my ISP ????

I have a dynamic IP cable modem connection and I've never done this.

Antony.

Signature · 4 lines
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.
                                                     Please reply to the list;
                                                           please don't CC me.
#2 lore raw

On Fri, 21 Nov 2003 19:29:28 +0000, Antony Stone wrote

Quoted 10 lines · Alejandro Cabrera Obed
Quoted 9 lines

Hi people !!!

I have a basic doubt: I want to connect my Linux with iptables to Intrenet via ADSL. Just one question:

Do I have to set
echo "1" > /proc/sys/net/ipv4/ip_dynadrr
in order to work with dynamic addresses asigned by my ISP ????

You just need to capture your dynamically assigned IP address at iptables startup time and use it in your rules. I have the following variable assignment in my RH 7.3 startup sdript (all one line):

INET_IP=ifconfig eth1 | grep 'inet addr' | awk -F":" '{print $2}' | sed 's/ Bcast//'

Then just use $INET_IP in your rules.
--

Tim Evans, TKEvans.com, Inc.    |    5 Chestnut Court
[email protected]             |    Owings Mills, MD 21117
http://www.tkevans.com/         |    443-394-3864
http://www.come-here.com/News/  |    
#3 lore raw
In reply to Alejandro Cabrera Obed
Quoted 8 lines · Alejandro Cabrera Obed

Hi people !!!

I have a basic doubt: I want to connect my Linux with iptables to Intrenet via ADSL. Just one question:

Do I have to set
echo "1" > /proc/sys/net/ipv4/ip_dynadrr
in order to work with dynamic addresses asigned by my ISP ????

Take a look at Documentation/networking/ip_dynaddr.txt of your kernel source tree.

In short you do not need this.

Ramin

Quoted 5 lines

Thanks a lot

Ale