Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 1999 23:19:01 -0000
From:      "+ +" <uvatha@my-dejanews.com>
To:        freebsd-questions@freebsd.org
Cc:        unix-athome@legba.corp.sun.com
Subject:   cable modem gateway w/ freebsd
Message-ID:  <PBEIIKAINMCIAAAA@my-dejanews.com>

next in thread | raw e-mail | index | archive | help

I'm not sure if this question relates more to my cable modem specifically, or FreeBSD, hence the crosspost.

In a nutshell: I've got two systems.  One is my desktop machine, running a (mostly stock) Red Hat Linux 5.2.  Just to test it (since I know more about Linux system administration) I got the cable modem up and running using dhcp on this box.
Now I want some security, a web server, and all that, so I have another box with FreeBSD 2.2.7 and two NICs.  Using static routing (no dhcp) I've got the BSD box able to access the internet, as well as the internal network (10.0.0.0), running through a 10bit hub.
The Linux box can access the internal network, but *not* the internet.  Previously I had the BSD box acting as a gateway for several Linux boxes via a ppp0 interface (regular phone modem - bleh) and I haven't changed any configuration options other than routing since then, so it should still be set up to be a gateway just fine. (that is, gateway_enable="YES" in rc.conf and confirmed with sysctl)

The Linux box can ping the internet address of the gateway and receive a response, but pinging any other host on the internet gives 100% packet loss.

Output of ifconfig -a on the bsd box:

fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet 24.0.91.192 netmask 0xffffff00 broadcast 24.0.191.255
    ether 00:a0:c9:c5:b0:75
    media: autoselect
    supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
    ether 00:40:05:6a:20:cc
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet 127.0.0.1 netmask 0xff000000

Output of netstat -rn on the bsd box:

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            24.0.191.1         UGSc        3       65      fxp0
10/24              link#2             UC          0        0
10.0.0.1           0:40:5:6a:20:cc    UHLW        0        4       lo0
10.0.0.7           0:a0:c9:9f:9c:23   UHLW        0       69       ed0   1096
24.0.91/24        link#1             UCSc        1        0
24.0.91.192        0:40:5:6a:20:cc    UHLW        1       36       lo0
127.0.0.1          127.0.0.1          UH          0        1       lo0

Output of netstat -n on the bsd box:

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            cr1-hfc4.escnd1.sd UGSc        3       65      fxp0
10/24              link#2             UC          0        0 
bsdbox               0:40:5:6a:20:cc    UHLW        0       4       lo0
linuxbox             0:a0:c9:9f:9c:23   UHLW        0      182       ed0    615
24.0.91/24        link#1             UCSc        1        0 
cx806537-a.vista1. 0:40:5:6a:20:cc    UHLW        1       36       lo0
localhost          localhost          UH          0        1       lo0


Output of ifconfig on the linux box:

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:123 errors:0 dropped:0 overruns:0
          TX packets:123 errors:0 dropped:0 overruns:0

eth0      Link encap:Ethernet  HWaddr 00:A0:C9:9F:9C:23
          inet addr:10.0.0.7  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:810 errors:0 dropped:0 overruns:0
          TX packets:1171 errors:0 dropped:0 overruns:0
          Interrupt:9 Base address:0xde00


Output of route on the linux box:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0       22 eth0
127.0.0.0       *               255.0.0.0       U     0      0        9 lo
default         bsdbox            0.0.0.0         UG    0      0       33 eth0

The only possible problem I could see here is that the hostname provided to me by @Home (cx806537-a) doesn't match the hostname I'm actually using (bsdbox), but I set it to match and it didn't make a difference.  (I'm sure the only reason they care is for dhcp, which I'm not using anyways.)

Anyone have any thoughts?  This all looks right to me - it's like the bsd box just isn't behaving as a gateway, except that it worked fine for months and I haven't changed anything except the routes.




-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums


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?PBEIIKAINMCIAAAA>