On 12/16/05, Joachim Schipper <[EMAIL PROTECTED]> wrote: > > > 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 1.2.3.2. > > I assume gwA and gwB can ping each other on the internal interface, at > least.
Yes. That's correct. In fact, I can connect to gwB from the Internet. Anything coming from the Internet gets routed correctly. > > gwB's > > ----- > > gwB:24$ cat /etc/hostname.sis0 > > inet 10.10.10.250 > > 255.255.255.0 NONE > > inet alias 1.2.3.65 255.255.255.192 NONE > > gwB:25$ > > Okay, should work. I assume you've set gwA as default gateway? yes. 10.10.10.254 is the default gateway for gwB > > gwA's > > ----- > > gwA:511$ cat /etc/hostname.xl0 > > inet 10.10.10.254 255.255.255.0 NONE > > !/sbin/route add -net 1.2.3.64/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 1.2.3.2 255.255.255.192 NONE > > gwA:513$ > > Are you certain that gwA->sis0 should have that netmask? If it is indeed > internet-connected, it probably shouldn't. Yes. The other /26 block was designed to be in gwB's domain. > > gwA:514$ sysctl -a net.inet.ip.forwarding > > net.inet.ip.forwarding=1 > > > > 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, > in particular. gwB ------ gwB:4$ netstat -rnf inet ; netstat -rnf encap Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default 10.10.10.254 UGS 8 247617 - sis0 10.10.10/24 link#1 UC 1 0 - sis0 10.10.10.254 0:2:6f:3c:59:9c UHLc 1 15 - sis0 10.101.2/24 link#2 UC 4 0 - rl0 10.101.2.101 0:11:5b:6:9a:1f UHLc 1 10752 - rl0 10.101.2.102 0:50:be:56:3f:d5 UHLc 0 99043 - rl0 10.101.2.105 0:7:95:dd:ad:c5 UHLc 0 12737 - rl0 10.101.2.120 0:7:95:31:8e:b8 UHLc 4 28001 - rl0 127/8 127.0.0.1 UGRS 0 0 33224 lo0 127.0.0.1 127.0.0.1 UH 3 106 33224 lo0 1.2.3.64/26 link#1 UC 0 0 - sis0 1.2.3.65 127.0.0.1 UGHS 0 0 33224 lo0 224/4 127.0.0.1 URS 0 0 33224 lo0 Routing tables Encap: Source Port Destination Port Proto SA(Address/Proto/Type/Direction) 10.101.99/24 0 10.101.2/24 0 0 1.5.6130/50/use/in 10.101.2/24 0 10.101.99/24 0 0 1.5.6.130/50/require/out gwB:5$ gwA ------- gwA:530$ netstat -rnf inet;netstat -rnf encap Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default 1.2.3.1 UGS 7 1598443 - sis0 10.10.10/24 link#2 UC 1 0 - xl0 10.10.10.250 0:2:6f:3a:bc:c7 UHLc 3 95 - xl0 10.101.1/24 link#3 UC 10 0 - vr0 10.101.1.5 0:40:33:aa:68:b0 UHLc 0 2675 - vr0 10.101.1.11 0:d:87:1:a3:55 UHLc 1 13323 - vr0 10.101.1.101 0:11:5b:12:59:72 UHLc 0 4401 - vr0 10.101.1.102 0:30:21:a0:7c:16 UHLc 0 3136 - vr0 10.101.1.105 0:e0:7d:b3:85:6e UHLc 0 20417 - vr0 10.101.1.106 0:d0:9:f1:13:44 UHLc 0 15656 - vr0 10.101.1.120 0:a:e6:86:16:a7 UHLc 1 2212 - vr0 10.101.1.121 0:e0:4c:e1:e1:cd UHLc 0 16732 - vr0 10.101.1.123 0:d:87:ce:f9:de UHLc 0 20775 - vr0 10.101.1.254 0:8:54:32:b2:7f UHLc 0 128 - lo0 10.101.2/24 10.10.10.250 UGS 0 0 - xl0 10.101.5/24 link#3 UC 4 0 - vr0 10.101.5.101 0:e0:7d:b2:ec:4c UHLc 0 8005 - vr0 10.101.5.106 0:e:a6:7d:4a:f8 UHLc 0 1705 - vr0 10.101.5.107 0:0:e8:ec:94:bb UHLc 1 8337 - vr0 10.101.5.120 0:e0:7d:73:55:cb UHLc 0 3630 - vr0 10.101.5.254 127.0.0.1 UGHS 0 0 33224 lo0 10.101.99.1 1.2.3.1 UGHD 0 1594991 1444 sis0 10.101.99.80 1.2.3.1 UGHD 0 1587957 1444 sis0 127/8 127.0.0.1 UGRS 0 0 33224 lo0 127.0.0.1 127.0.0.1 UH 2 152 33224 lo0 1.2.3.0/26 link#1 UC 1 0 - sis0 1.2.3.1 0:60:2e:0:a4:99 UHLc 3 401 - sis0 1.2.3.64/26 10.10.10.250 UGS 0 566157 - xl0 224/4 127.0.0.1 URS 0 0 33224 lo0 Routing tables Encap: Source Port Destination Port Proto SA(Address/Proto/Type/Direction) 10.101.99/24 0 10.101.1/24 0 0 1.5.6.130/50/use/in 10.101.99/24 0 10.101.5/24 0 0 1.5.6.130/50/use/in 10.101.1/24 0 10.101.99/24 0 0 1.5.6.130/50/require/out 10.101.5/24 0 10.101.99/24 0 0 1.5.6.130/50/require/out gwA:531$ -- Fernando M. Braga Telemacro Informagues e Servigos +55 82 2121-2100