Routing Woes

2011-09-03 Thread Monkeyfoahead
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.
Jordan


ifconfig output:
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
ether 00:12:3f:a4:59:ef
inet 10.0.1.5 netmask 0xff00 broadcast 10.0.1.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
options=3RXCSUM,TXCSUM
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet6 ::1 prefixlen 128 
inet 127.0.0.1 netmask 0xff00 
nd6 options=3PERFORMNUD,ACCEPT_RTADV
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:1e:e5:ff:1d:49
inet 1.1.3.153 netmask 0xff00 broadcast 1.1.3.255
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:

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default1.1.3.1UGS  2245   253352  wlan0 
 Wireless 
1.1.3.0/24 link#5 U   1  421  wlan0
1.1.3.153  link#5 UHS 00lo0
10.0.1.0/24link#2 U   2 6098   fxp0
10.0.1.5   link#2 UHS 00lo0 
- Comcast
127.0.0.1  link#4 UH  0   34lo0

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


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Routing Woes

2011-09-03 Thread Adam Vande More
On Sat, Sep 3, 2011 at 8:16 PM, Monkeyfoahead jordanbha...@gmail.comwrote:

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?


I believe you'll want to use fib's eg setfib(1) and assign your torrent
client to use the fib associated with your wifi.


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org