From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 17:49:43 2008 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 C5F8B1065676 for ; Sat, 15 Nov 2008 17:49:43 +0000 (UTC) (envelope-from jakub.tlck@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.230]) by mx1.freebsd.org (Postfix) with ESMTP id 8028D8FC0A for ; Sat, 15 Nov 2008 17:49:43 +0000 (UTC) (envelope-from jakub.tlck@gmail.com) Received: by qb-out-0506.google.com with SMTP id f30so1728792qba.35 for ; Sat, 15 Nov 2008 09:49:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=27fXXucYztSOvpaC+stbDmZXBBo8gdzDvZY301UCBq8=; b=DsGX0oC68lxeoG+adRuQvpvsjLVEgF6anKqnHBZ/baABfIz1Nwa+9qusifBUpzm0xB k/39/83Couc5RVA2nsGkftWK30U7XbmYZzbeqXdHohXdrGy7qgnstZO987XAfUPJjxka i18Jd5nfF7S0NLFwLyGV0S/tvvO5ZDN1Y1lXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=OlBeSjaZa/IocMLPuImPNBJf9OHak+ObZVXcuGGCoZGJq8JgZqsi8cwUCAUW4tff/y Regaln62kCjOF5zUPno50U+wuuVJgP/i+8v1kfXZgdmK8JVX2nvPH1jagUezCeG13Rmo ZBZoP34EnQB2tQeScOnMfVFsO0oVHVi+pSj1E= Received: by 10.142.246.19 with SMTP id t19mr1020237wfh.309.1226771382343; Sat, 15 Nov 2008 09:49:42 -0800 (PST) Received: by 10.142.187.7 with HTTP; Sat, 15 Nov 2008 09:49:42 -0800 (PST) Message-ID: <42b840be0811150949i1a8e0251tea94d8824cf4458f@mail.gmail.com> Date: Sat, 15 Nov 2008 18:49:42 +0100 From: "Jakub T" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Port forwarding behind two routers 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: Sat, 15 Nov 2008 17:49:43 -0000 Good day people, I'm trying to get wireless Internet access for my laptop and to use this wireless router as a switch for my FreeBSD box at the same time. This wireless router has one Internet plug and for Ethernet plugs for wired boxes. Now I have this situation: INTERNET | telephone/adsl-wire | | ADSL router wan : xx.xx.xx.xx FreeBSD box (wired) lan : 192.168.1.1 ip: 192.168.0.102 | laptop gateway: 192.168.0.1 | (wireless) | [internet plug] ip: 192.168.0.101 | Wireless router gateway: 192.168.0.1 | lan : 192.168.0.1 . . . . . : | [ethernet plug] | | | +-------------------------------------------+ The wireless router software configured the router like this: Destination LAN IP Subnet Mask Gateway Interface 0.0.0.0 0.0.0.0 192.168.1.1 WAN (Internet) 192.168.0.0 255.255.255.0 192.168.0.1 LAN & Wireless 192.168.1.0 255.255.255.0 192.168.1.2 WAN (Internet) ... so it works as a switch for two boxes and as a router at the same time. The FreeBSD box is configured like this: ifconfig_XXX0="inet 192.168.0.102 netmask 255.255.255.0" defaultrouter="192.168.0.1" Now I have Internet connection on both computers. However, I can't get aMule and other apps that need port forwarding working on FreeBSD box. First, I tried to configure ADSL router (192.168.1.1) just to forward 4662 port to 192.168.0.102, doesn't work. Then, I tried this: 192.168.1.1 router: forward 4662 to 192.168.0.1 192.168.0.1 router: forward 4662 to 192.168.0.102 not working again. I have a feeling that I'm missing something very simple, but can't figure out what. (A note: before I acquired a wireless router, forwarding with one router was just working, with FreeBSD box configured as 192.168.1.101, so that side of things is ok. And, no, it's not possible to use just wireless router because I can't plug telephone wire in it.) Can anyone help me? Should I post more details? TIA, Jakub