From owner-freebsd-questions@FreeBSD.ORG Sun Sep 4 01:44:14 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 003251065670 for ; Sun, 4 Sep 2011 01:44:13 +0000 (UTC) (envelope-from jordanbhandy@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id CEF1A8FC13 for ; Sun, 4 Sep 2011 01:44:13 +0000 (UTC) Received: by pzk33 with SMTP id 33so12338971pzk.18 for ; Sat, 03 Sep 2011 18:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=a/I9NxmRcQ75r1EBhkQkqbCNpZX8TghpHl9TrADA3I0=; b=Iqocp5c+eyIUopWYrw/gVB4PwuSRHPID8alW9DcaDQAZr4cmiazme5eI9aEiiLMK/i YwdjSe+NExvXOmIO42431i9Sj0CBd66mUKVHB0YFMHOeBCE3gX0iNpICm/VlUxyilIG3 wfaVQSCsvYfyJ+icdO1s9+Sah+P48FxPNgKPs= Received: by 10.68.20.197 with SMTP id p5mr1927053pbe.284.1315099007675; Sat, 03 Sep 2011 18:16:47 -0700 (PDT) Received: from [10.0.1.2] (c-98-202-122-208.hsd1.ut.comcast.net. [98.202.122.208]) by mx.google.com with ESMTPS id m1sm10148565pbf.3.2011.09.03.18.16.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Sep 2011 18:16:46 -0700 (PDT) From: Monkeyfoahead Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sat, 3 Sep 2011 19:16:44 -0600 Message-Id: To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: Routing Woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 01:44:14 -0000 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?=20 Thanks for your help. Jordan = --------------------------------------------------------------------------= ------------------------------------------------------------------ ifconfig output: fxp0: flags=3D8843 metric 0 mtu = 1500 options=3D2009 ether 00:12:3f:a4:59:ef inet 10.0.1.5 netmask 0xffffff00 broadcast 10.0.1.255 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4=20 inet6 ::1 prefixlen 128=20 inet 127.0.0.1 netmask 0xff000000=20 nd6 options=3D3 wlan0: flags=3D8843 metric 0 mtu = 1500 ether 00:1e:e5:ff:1d:49 inet 1.1.3.153 netmask 0xffffff00 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: Destination Gateway Flags Refs Use Netif = Expire default 1.1.3.1 UGS 2245 253352 wlan0 = <-------- Wireless=20 1.1.3.0/24 link#5 U 1 421 wlan0 1.1.3.153 link#5 UHS 0 0 lo0 10.0.1.0/24 link#2 U 2 6098 fxp0 10.0.1.5 link#2 UHS 0 0 lo0 = <--------- Comcast 127.0.0.1 link#4 UH 0 34 lo0 Internet6: 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 = --------------------------------------------------------------------------= ------------------------------------------------------------------