[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IP forwarding woes
Never mind, I'm retarded
I just saw the problem
inet 10.64.14.40 netmask 0xfffffff0 broadcast 10.64.14.47
stupid net masks
> -----Original Message-----
> From: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org]On Behalf Of
> Daniel Corbe
> Sent: Tuesday, February 03, 2004 5:25 PM
> To: Misc OpenBSD
> Subject: IP forwarding woes
>
>
> Hi,
>
> I have some issues with IP forwarding.
>
> Even though this OpenBSD box has a route to every other
> destination on this
> network, IP Forwarding is not working correctly.
>
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> address: 00:0b:cd:4d:5c:e9
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet 10.64.14.40 netmask 0xfffffff0 broadcast 10.64.14.47
> inet6 fe80::20b:cdff:fe4d:5ce9%fxp0 prefixlen 64 scopeid 0x1
> inet 146.82.194.227 netmask 0xfffffff0 broadcast 146.82.194.239
> inet 10.64.14.1 netmask 0xffffff00 broadcast 10.64.14.255
> inet 146.82.194.231 netmask 0xfffffff0 broadcast 146.82.194.239
>
> When I use it as a gateway it reports unreachable to all my clients
>
> [root@mars dcorbe]# route add -net default gw 10.64.14.1
> [root@mars dcorbe]# traceroute spencer
> traceroute to spencer.resultstel.com (10.64.15.130), 30 hops max, 38 byte
> packets
> 1 146.82.194.231 (146.82.194.231) 0.199 ms 0.177 ms 0.116 ms
> 2 146.82.194.231 (146.82.194.231) 0.129 ms !H 0.151 ms !H 0.116 ms !H
>
> even though clearly the box itself can get to that location:
> bash-2.05b# traceroute spencer
> traceroute to spencer.resultstel.com (10.64.15.130), 64 hops max, 40 byte
> packets
> 1 * * *
> 2 192.168.253.62 (192.168.253.62) 100.441 ms 99.890 ms 101.290 ms
> 3 spencer (10.64.15.130) 113.471 ms 101.783 ms 127.277 ms
>
> and the routes exist in the routing table:
> 10.64.15.0/26 10.64.14.163 UG1 0 61 - fxp0
> 10.64.15.64/26 10.64.14.163 UG1 0 61 - fxp0
> 10.64.15.128/26 10.64.14.47 UG1 0 53 - fxp0
>
> The gateway 10.64.14.47 does not seem to be reachable even though it's on
> the same network as this box and it's in the routing table
>
> 10.64.14/24 link#1 UC 0 0 - fxp0
> 10.64.14.47 link#1 UHL 29 37 - fxp0
>
> I'm kind of at a loss as how to fix this.