AW: iptables for ADSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My 2 cents

I identify in my firewall script my dsl interface by it's interface name. Nothin else comes accross that way. Who cares of it's IP ? Tell me if I'm wrong.

Mit freundlichen Grüßen
        Ulrich Gebauer

Hans Soldan GmbH, Dienste für Anwälte
Organisation / IT
Bocholder Straße 259, 45356 Essen
Telefon:0201 / 8612-228, Telefax: 0201 / 8612-377
Email: gebauer@xxxxxxxxx
Internet: http://www.marktplatz-recht.de




-----Ursprüngliche Nachricht-----
Von: Tim Evans [mailto:tkevans@xxxxxxxxxxx] 
Gesendet: Freitag, 21. November 2003 20:40
An: Antony Stone; Netfilter lista (iptables)
Betreff: Re: iptables for ADSL


On Fri, 21 Nov 2003 19:29:28 +0000, Antony Stone wrote
> On Friday 21 November 2003 7:25 pm, Alejandro Cabrera Obed wrote:
> 
> > 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
tkevans@xxxxxxxxxxx             |    Owings Mills, MD 21117
http://www.tkevans.com/         |    443-394-3864
http://www.come-here.com/News/  |    





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux