Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 1998 01:03:36 +1200
From:      "Dan Langille" <junkmale@xtra.co.nz>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: unknown reboot, DNS + gateway failure
Message-ID:  <199807101303.BAA08872@cyclops.xtra.co.nz>
In-Reply-To: <199807092038.IAA28986@cyclops.xtra.co.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Jul 98, at 8:38, Dan Langille wrote:

> Yesterday when I arrived home from work, I found that the freebsd box had
> rebooted.  This was not a power outage as both it and an NT box share the
> same UPS and the NT box was unaffected.
> 
> The fbsd box is used as a gateway/firewall using ipfw and natd.   Since
> this unexplained reboot, my mini-DNS has stopped working.  I can ping the
> outside via IP number from the freebsd box but not from the NT box.  I've
> set my filtering rules to allow all and still can't ping the outside from
> the NT box.  Comms within the subnet appear to be normal (apart from the
> mini-DNS problem).


After a session and some help from #freebsd on efnet, I found out lots 
more stuff.  The problem is not a DNS problem, but that's a sympton.  The 
problem is with the setup of natd somehow.

The FreeBSD box has two NICs.  The link to the ISP uses ADSL and is 
assigned an IP via DHCP.  But in practice, the IP is static to the MAC 
address and is 210.55.210.87.  The NIC to my subnet is 192.168.0.20.

In my rc.local file, I have the following calls:

natd -interface ed0
dhclient ed0
ifconfig ed1 192.168.0.20 255.255.255.0

It was suggested via IRC that I restart natd with -verbose.  After doing 
this, everything worked.  But why?  I rebooted.  It didn't work.  I 
restarted natd.  It worked.  This was strange.

I read up on natd (please, no laughing).  I found the -dynamic flag, which 
I had not been previously using.  After several tests, I concluded that 
the problem is solved by having natd -d -interface ed0.

FWIW: I changed the rc.local line to be:

natd -f /etc/natd.conf

and in /etc/natd.conf I have:

interface ed0
dynamic yes

My question is: why was it working before?  Why did it suddenly stop 
working?  Why does -d now allow it to work?

cheers!
--
Dan Langille
DVL Software Limited
http://www.dvl-software.com : for race timing solutions

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807101303.BAA08872>