Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 11:16:52 -0500
From:      "Andy Greenwood" <greenwood.andy@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   weird routing problem
Message-ID:  <3ee9ca710702140816q260f3f6fp1c971e5ddc9b75eb@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_Part_92843_24281312.1171469812832
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

My network looks like this:

+----------+     +------+     +---------+     +----------+
| Internet | <-> | Tiny | <-> | linksys | <-> | Behemoth |
+----------+     +------+     +---------+     +----------+
                                  \
                                 (WiFi)
                                    \
                                     +---------+
                                     | various |
                                     +---------+


Tiny is my firewall, and it forwards all ssh and http traffic to
Behemoth. I also forward port 3389 to one of the clients on the
wireless network. I can get into the remote desktop on my machine
running XP and ssh to behemoth from there, but can't from the outside.
Once I am logged into Behemoth, I can't ping anything on the outside.
If I try to ping my default gateway, 192.168.2.1, I get "Ping: Sendto:
Host is down" If I try to ping anything else, I get "Ping: Sendto: No
route to host"

[andy@behemoth ~]$ ifconfig
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 192.168.2.10 netmask 0xffffff00 broadcast 192.168.2.255
        ether 00:0c:41:e2:ae:75
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
pflog0: flags=0<> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
[andy@behemoth ~]$ netstat -rn
Routing tables

Ineternet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.2.1        UGS         0      447    dc0
127.0.0.1          127.0.0.1          UH          0      604    lo0
192.168.2          link#1             UC          0        0    dc0
192.168.2.1        link#1             UHLW        2        2    dc0
192.168.2.10       00:0c:41:e2:ae:75  UHLW        1       10    lo0
168.168.2.100      00:12:17:6a:32:7e  UHLW        1     2239    dc0    623
[andy@behemoth ~]$ ping google.com
ping: cannot resolve google.com: Host name lookup failure
[andy@behemoth ~]$ ping 64.233.167.99
PING 64.233.167.99 (64.233.167.99): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 64.233.167.99 ping statistics ---
2 packets transmitted, 0 packets recieved, 100% packet loss

The weird thing is that I'm logged into this box over ssh. I shouldn't
be able to connect to the box if there's something wrong with the
routing, correct?

I have already tried setting the mtu to 1400 with no result and
rebooting, also with no result, but I'm really not sure where to go
from here. Any help on this would be much appreciated. I've attached
my pf.conf, but it hasn't changed in a few weeks and this just started
happening a couple days ago. It coincided with me adding my new Wii to
the wireless network, but I can't see how that could've messed up the
routing on Behemoth.

-- 
-- 
I'm nerdy in the extreme and whiter than sour cream

------=_Part_92843_24281312.1171469812832
Content-Type: text/plain; name="pf.conf.priq.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="pf.conf.priq.txt"
X-Attachment-Id: f_ey5yvg38

IyBNYWNybyBkZWZpbml0aW9ucwpleHRfaWYgPSAiZGMwIiAJIyByZXBsYWNlIHdpdGggYWN0dWFs
IGV4dGVybmFsIGludGVyZmFjZSBuYW1lIGkuZS4sIGRjMAppbnRfaWYgPSAiZGMxIiAJIyByZXBs
YWNlIHdpdGggYWN0dWFsIGludGVybmFsIGludGVyZmFjZSBuYW1lIGkuZS4sIGRjMQpsb2NhbF9u
ZXQgPSAiMTkyLjE2OC4wLjAvMTYiIAkjIElQIGFkZHJlc3NlcyB1c2VkIGludGVybmFsbHkKCnRh
YmxlIDxicnV0ZWZvcmNlPiBwZXJzaXN0IGZpbGUgIi92YXIvZGIvc3NoLWJydXRlZm9yY2UiICMg
VGFibGUgb2YgSVAgYWRkcmVzc2VzIGJsb2NrZWQgYnkgYnJ1dGVmb3JjZQoKc2V0IHNraXAgb24g
bG8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A0OTE2MDo0OTMwMCB0byBhbnkga2VlcCBzdGF0ZSBxdWV1ZSB0b3JyZW50
ICNURgoKIyBQYXNzIHRyYWZmaWMgb3JpZ25pYXRpbmcgZnJvbSB0aGUgZmlyZXdhbGwgb3V0CnBh
c3Mgb3V0IGxvZyBvbiAkZXh0X2lmIGZyb20gKCRleHRfaWYpIHRvIGFueSBrZWVwIHN0YXRlCnBh
c3Mgb3V0IGxvZyBvbiAkaW50X2lmIGZyb20gYW55IHRvICRsb2NhbF9uZXQga2VlcCBzdGF0ZQoK
IyBUQ1AgQUNLIHBhY2tldHMKcGFzcyBvdXQgb24gJGV4dF9pZiBpbmV0IHByb3RvIHRjcCBmcm9t
ICgkZXh0X2lmKSB0byBhbnkgZmxhZ3MgUy9TQSBrZWVwIHN0YXRlIHF1ZXVlIChsYW4sIHRjcF9h
Y2spCgojIEROUyBxdWVyaWVzIHRoYXQgZ2V0IHBhc3NlZCBvdXQuIE5vdGUgdGhhdCB3ZSBydW4g
bmFtZWQgaW4gYSBjYWNoaW5nIG1hbm5lci4KcGFzcyBvdXQgb24gJGV4dF9pZiBpbmV0IHByb3Rv
IHsgdGNwLCB1ZHAgfSBmcm9tICgkZXh0X2lmKSB0byBhbnkgcG9ydCBkb21haW4ga2VlcCBzdGF0
ZSAjcXVldWUgZG5zCnBhc3MgaW4gb24gJGludF9pZiBpbmV0IHByb3RvIHsgdGNwLCB1ZHAgfSBm
cm9tICRsb2NhbF9uZXQgdG8gKCRpbnRfaWYpIHBvcnQgZG9tYWluIGtlZXAgc3RhdGUKCiMgRW5k
IG9mIFJ1bGVzZXQK
------=_Part_92843_24281312.1171469812832--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ee9ca710702140816q260f3f6fp1c971e5ddc9b75eb>