Are you talking about the loopback address (lo) or the DHCP assigned
of your NIC? In the second case, your netfilter rules should wait
until the address has been assigned then you can extract that address
by `ifconfig <int> | grep ... | sed/awk/perl ...` or you can use
David Ford's gi.c. You can find it in the following message: 
http://lists.samba.org/pipermail/netfilter/2002-January/019074.html

Ramin

On Fri, Apr 12, 2002 at 10:07:51AM +1000, Lewis Shobbrook wrote:

> Hi Bob,
> Thanks for the reply, I've already got these ...
> iptables -A INPUT -i lo -j ACCEPT
> iptables -A FORWARD -i lo -j ACCEPT
> iptables -A OUTPUT -o lo -j ACCEPT
> 
> Any other ideas???
> 
> Lewis
> 
> > -----Original Message-----
> > From: Bob Sully [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, 12 April 2002 09:57
> > To: Lewis Shobbrook
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Localhost not working
> > 
> > 
> > 
> >       # Allow unlimited traffic on the loopback interface
> >             iptables -A INPUT -i lo -j ACCEPT
> >             iptables -A OUTPUT -o lo -j ACCEPT
> > 
> > 
> > On Fri, 12 Apr 2002, Lewis Shobbrook wrote:
> > 
> > > Hi All
> > > I am having toruble using localhost in my iptables  rules usinng -s 
> > > localhost and -d localhost is not working. The IP = is assigned by 
> > > DHCP at boot, via a cable connection, host.confis order host,bind & 
> > > hosts has localhost. The assigned IP is not getting bound 
> > to localhost 
> > > and is logging as rejected. Anyone know a way around?
> > 
> > -- 
> > ________________________________________
> > Bob Sully - Simi Valley, California, USA http://www.malibyte.net
> > 
> > "The weather is here - wish you were beautiful." - J. Buffett
> > 
> > 

Reply via email to