Date: Mon, 12 Jan 2004 19:50:27 -0600 From: "Budec" <budec@qwest.net> To: "'FreeBSD-questions list'" <freebsd-questions@freebsd.org> Subject: Port forwarding Message-ID: <DIEOLEPNIDLIJHMBILKJAEFBDIAA.budec@qwest.net> In-Reply-To: <20040113015258.GDTN3322.fed1mtao01.cox.net@SAMBA>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello,
I have been trying to get this working for days and am obviously doing
something wrong and was wondering if any Guru's out there could give a
little guidance. Basically I'm looking to run a game server behind a
FreeBSD firewall. Here is my setup:
{internet} <-> [public address] - Firewall <-> (internal address) Game
server
Lets say public address is 1.2.3.4 and private address is 192.168.17.25
port is 5122
In the /etc/rc.conf I set the firewall policy to "OPEN" and enabled natd, I
gave it the natd options of "-f /etc/natd.conf"... for "ipnat" I have that
set to "NO" (not sure what it does)
In the natd.conf file I have this:
redirect_port tcp 192.168.17.25:5122 5122
redirect_port udp 192.168.17.25:5122 5122
I restart natd and theatrically everything that hits 1.2.3.4 on port 5122
should be automatically redirected to 192.168.17.25 port 5122, right?
I have also tried this (since the public interface is aliases (has more than
one public address associated with it)):
redirect_port tcp 192.168.17.25:5122 1.2.3.4:5122
redirect_port udp 192.168.17.25:5122 1.2.3.4:5122
Which doesn't seem to work either. Any ideas?
Regards,
Jack
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DIEOLEPNIDLIJHMBILKJAEFBDIAA.budec>
