Hi,
Running WhiteRussian RC6.
I have recently changed my setup and can't get port forwarding to work the way it used to.
My main XP box used to be plugged directly into the openwrt router and port forwarding worked fine.
Now I have introduced a FreeBSD NAS server in the way. It has 2 NICs. The 100Mbit/s is plugged into the OpenWRT
router and the gigabit goes to the XP box. It's all just to get gigabit access to my NAS without a gigabit switch:
ADSL modem
|
| (fast ethernet)
|
OpenWRT router
| 192.168.1.1
|
| (fast ethernet)
|
| 192.168.1.2
FreeBSD NAS server
| 192.168.0.1
|
| (gigabit)
|
| 192.168.0.2
XP box
Adding a static route on OpenWRT to 192.168.0/24 via 192.168.1.2 gets traffic passing through the FreeBSD server
and back to the XP box.
However, port fowarding doesn't work the way it used to.
When the XP box was directly connected to the router and had IP 192.168.1.127, I used the following
in /etc/config/firewall:
forward:dport=59287:192.168.1.127
Now I thought the following would work, but it doesn't:
forward:dport=59287:192.168.0.2
I guess this is something to do with the XP box not being directly connected to the router,
but I'm not really up on linux.
Anyone know why this forwarding doesn't work?
Many thanks from a FreeBSD admin.
