Routing Woes

Monkeyfoahead jordanbhandy at
Sun Sep 4 01:44:14 UTC 2011

	I have a question that I thought that you could probably answer. I have setup a freebsd seedbox in my apartment.  This box has two internet connections (multi-homed server.). One is an ethernet connection behind a firewall that is connected to a Comcast modem. The other is my apartment's wifi. I desire to use the wifi for torrenting and my connection for http,ftp, and ssh access. The proper ports have been forwarded to the freebsd server from the firewall on the Comcast connection.  My problem is when the default route is set to go over the wifi, i cannot access the server from the comcast modem address. When my default route is set to go over the modem, my server is accessible to the outside world.

Due to the nature of the torrent-dameon i am using. I must have the default route go over the wifi connection. Is there a route i can add that will fix my problem? 

Thanks for your help.

ifconfig output:
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:12:3f:a4:59:ef
	inet netmask 0xffffff00 broadcast
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
	inet6 ::1 prefixlen 128 
	inet netmask 0xff000000 
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:1e:e5:ff:1d:49
	inet netmask 0xffffff00 broadcast
	media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11g
	status: associated
	ssid "Elms D South" channel 9 (2452 MHz 11g) bssid 00:16:01:59:e4:c0
	regdomain FCC indoor ecm authmode OPEN privacy ON deftxkey 1
	wepkey 1:40-bit txpower 27 bmiss 7 scanvalid 450 bgscan
	bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
	wme burst roaming MANUAL
The boxes routing table is as follows:

Destination        Gateway            Flags    Refs      Use  Netif Expire
default              UGS      2245   253352  wlan0				<-------- Wireless         link#5             U           1      421  wlan0          link#5             UHS         0        0    lo0        link#2             U           2     6098   fxp0           link#2             UHS         0        0    lo0					<--------- Comcast          link#4             UH          0       34    lo0

Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UH          lo0
fe80::%lo0/64                     link#4                        U           lo0
fe80::1%lo0                       link#4                        UHS         lo0
ff01:4::/32                       fe80::1%lo0                   U           lo0
ff02::%lo0/32                     fe80::1%lo0                   U           lo0

More information about the freebsd-questions mailing list