Date: Fri, 16 Mar 2001 01:53:25 -0500 From: "Mike" <miker@superior.net> To: "'freebsd-net@freebsd.org'" <freebsd-net@FreeBSD.ORG> Subject: translate from iptables Message-ID: <003d01c0ade5$d043e380$0200a8c0@SHIVA> References: <710709BB8B02D311942E00606744181054429B@MELEXC01>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi all, I'm trying to move everything from my RH Linux box to FreeBSD. So far everything is great on BSD and I'm very glad I switched. The only thing I have left to get functioning is Bnetd, the starcraft/diablo server. I have it "working" but there is a problem with people playing behind the firewall with people on the outside. To make a long story short, the following snippet is from the iptables firewall on my Linux box. It is what solved the problem and got everything working great: ********************************************************************** iptables -t nat -A PREROUTING -p udp -d 216.238.130.251 --dport 63010 -j DNAT --to-destination 192.168.0.2:6112 iptables -t nat -A PREROUTING -p udp -d 216.238.130.251 --dport 63011 -j DNAT --to-destination 192.168.0.3:6112 iptables -t nat -A PREROUTING -p udp -d 216.238.130.251 --dport 63012 -j DNAT --to-destination 192.168.0.4:6112 iptables -t nat -A POSTROUTING -p udp -s 192.168.0.2 --sport 6112 -j SNAT --to-source 216.238.130.251:63010 iptables -t nat -A POSTROUTING -p udp -s 192.168.0.3 --sport 6112 -j SNAT --to-source 216.238.130.251:63011 iptables -t nat -A POSTROUTING -p udp -s 192.168.0.4 --sport 6112 -j SNAT --to-source 216.238.130.251:63012 *********************************************************************** What I'm hoping is that someone will be able to tell me a way to do this same thing using natd or ipfwd or something like that. Any hints or help would be much appreciated:) Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003d01c0ade5$d043e380$0200a8c0>