Port forwarding behind two routers

Jakub T jakub.tlck at gmail.com
Sat Nov 15 09:49:43 PST 2008

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:

    ADSL router
 wan : xx.xx.xx.xx                          FreeBSD box (wired)
 lan :                          ip:
        |                 laptop            gateway:
        |                 (wireless)                |
   [internet plug]        ip:         |
  Wireless router         gateway:      |
  lan :  . . . . . :                    |
   [ethernet plug]                                  |
        |                                           |

The wireless router software configured the router like this:

Destination     LAN IP Subnet   Mask Gateway    Interface     WAN (Internet)     LAN & Wireless     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 netmask"

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 ( just to forward 4662
port to, doesn't work.

Then, I tried this: router: forward 4662 to router: forward 4662 to

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, 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,

More information about the freebsd-questions mailing list