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

route problem, I don't see where the problem is.



I just intalled OBSD2.9 last week, intending to use it as a firewall. I have 
two 3com nics, xl0 and xl1, with their corresponding files - hostname.xl0 and 
hostname.xl1. The xl0 is the inside network address 192.168.1.10 and 
hostname.xl1 is the outside static ip address provided by my isp - 
123.456.78.9. I have resolve.conf set up with the appropriate DNS numbers, 
ipnat.rules set up, ipf.rules are set up, and mygate has the gateway ip 
provided by my isp. I have the line net.inet.ip.forwarding=1 set in 
sysctl.conf. Everything looks correct according to the FAQ and various 
tutorials I've read. 
I run netstat -rn and get this: 
-------------------
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            66.114.152.1       UGS         0       14   1500   xl1
66.114.152/21      link#2             UC          0        0   1500   xl1
66.114.152.1       link#2             UHRL        1        0   1500   xl1
127/8              127.0.0.1          UGRS        0        0  32972   lo0
127.0.0.1          127.0.0.1          UH          3       24  32972   lo0
192.168.1/24       link#1             UC          0        0   1500   xl0
192.168.1.15       127.0.0.1          UGHS        0        0  32972   lo0
224/4              127.0.0.1          URS         0        0  32972   lo0
-------------------
Ifconfig -a shows this:
-------------------
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32972
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
	inet6 ::1 prefixlen 128
	inet 127.0.0.1 netmask 0xff000000
lo1: flags=8008<LOOPBACK,MULTICAST> mtu 32972
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	media: Ethernet autoselect (none)
	status: no carrier
	inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
	inet6 fe80::250:daff:febc:7f40%xl0 prefixlen 64 scopeid 0x1
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	media: Ethernet autoselect (none)
	status: no carrier
	inet 66.114.152.128 netmask 0xfffff800 broadcast 66.114.159.255
	inet6 fe80::250:daff:febc:7ecf%xl1 prefixlen 64 scopeid 0x2
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
-----------------
route show gives us this:
-----------------
Routing tables

Internet:
Destination      Gateway            Flags
default          66.114.152.1       UG     
66.114.152.0     link#2             U
66.114.152.1     link#2             UH
127.0.0.0        127.0.0.1          UG     
localhost        127.0.0.1          UH
192.168.1.0      link#1             U
firewall1.wiegan 127.0.0.1          UGH
224.0.0.0        127.0.0.1          U
-----------------
When I ping anything on the internet I get 'no route to host' errors. I have 
tried several nics, all work in other pcs's and individually. I have set this 
box up with one nic as a client machine using my existing firewall and it 
pings the internet just fine, changed to the other nic, and it is fine, so 
both nics are good. 
Can anyone see what I am missing?

--
Chip W.
(My existing firewall is FreeBSD4.0 running ipfw/natd on a p133 with 40 megs 
ram. I want to replace it with OpenBSD2.9, ipf/ipnat on a AMD K6-2/350 with 
64 megs ram.)



Visit your host, monkey.org