[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Odd routing problem ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Odd routing problem ?
- From: Joachim Schipper <j_(_dot_)_schipper_(_at_)_math_(_dot_)_uu_(_dot_)_nl>
- Date: Fri, 16 Dec 2005 18:44:20 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
(reply inline, sorry)
On Fri, Dec 16, 2005 at 01:34:38PM -0300, Fernando Braga wrote:
> I'm facing an unusual problem with routing. I can access an internal
> server (with real IP) thru an OpenBSD gateway (gwA). Everything works
> when connection is initiated from the Internet. But gwB can't make its
> way back to the Internet.
> Every attempt to access any host on the Internet gets to gwA
> int_wireless, but doesn't goes out on ext_if. gwB can't even ping gwA
> external address 18.104.22.168.
I assume gwA and gwB can ping each other on the internal interface, at
> gwA has 3 interfaces: sis0 (external), vr0 (internal), and xl0 (int_wireless).
> gwB has 2 interfaces: sis0 (ext_wireless), and rl0 (internal).
> +-------+ +-----+
> | gwB |sis0----<< RADIO BRIDGES >>----xl0| gwA |sis0-----<< INTERNET >>
> +-------+ +-----+
> gwB:24$ cat /etc/hostname.sis0
> inet 10.10.10.250
> 255.255.255.0 NONE
> inet alias 22.214.171.124 255.255.255.192 NONE
Okay, should work. I assume you've set gwA as default gateway?
> gwA:511$ cat /etc/hostname.xl0
> inet 10.10.10.254 255.255.255.0 NONE
> !/sbin/route add -net 126.96.36.199/26 10.10.10.250
Okay, should work, too. Wireless is a bitch, but I suppose everything
works, where the hardware is concerned.
> gwA:512$ cat /etc/hostname.sis0
> inet 188.8.131.52 255.255.255.192 NONE
Are you certain that gwA->sis0 should have that netmask? If it is indeed
internet-connected, it probably shouldn't.
> gwA:514$ sysctl -a net.inet.ip.forwarding
> Has anyone a clue ?
Nothing definitive, but (unless the above solves it) I'd like to see the
routing tables. I'm not entirely certain where the default route goes,