Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 1999 03:39:24 -0400
From:      "Francisco Reyes" <francisco@natserv.com>
To:        "FreeBSD questions" <questions@freebsd.org>
Subject:   Trying to make gateway not working and very slow boot
Message-ID:  <199909070738.DAA12152@vulcan.addy.com>

next in thread | raw e-mail | index | archive | help
I am trying to make a FreeBSD box a gateway for a windows box at
home.
I am using Natd with an "open" firewall.
Not only the windows box can not see the internet, but now the
FreeBSD box takes a very long time at bootup  specially at the
startup of some of the daemons such as sendmail and Samba. Ping
to the box works fine, but telnet to the box takes much longer
than usual to get a prompt.

Pinging the FreeBSD box works but trying to ping the windows box
gives an error.
PING tomasa.reyes.somos.net (10.0.0.10): 56 data bytes
ping: sendto: No route to host

Relevant files:

/etc/rc.conf
hostname="sanson.reyes.somos.net"
ifconfig_ed1="inet 10.1.1.10  netmask 255.255.255.0"
ifconfig_ppp0="inet 207.240.212.43  netmask 255.255.255.0"
network_interfaces="ppp0 ed1 lo0"

firewall_enable="YES"
firewall_type="open"
firewall_quiet="NO"
natd_enable="YES"       <=====
natd_interface="tun0"   <=====
natd_flags=""
gateway_enable="YES"    <=====
named_enable="YES"

The name server is setup just as a chaching DNS.

nslookup
Default Server:  localhost.reyes.somos.net
Address:  127.0.0.1

/etc/resolv.conf
domain  somos.net
nameserver 127.0.0.1
nameserver 207.240.128.28
nameserver 207.240.140.102

I confirmed that natd is coming up
ps -aux |grep natd
root      94  0.0  1.0   428  212  ??  Is    3:04AM   0:00.00
/sbin/natd -n tun0

The Natd man page specifies to have the interface up before
using it.
Where would call user ppp so it gets started before natd? Is
this related to not finding a route to my windows box and the
slow bootup?



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?199909070738.DAA12152>