From owner-freebsd-net Thu Mar 15 22:50:20 2001 Delivered-To: freebsd-net@freebsd.org Received: from nimbus.superior.net (nimbus.superior.net [216.238.144.3]) by hub.freebsd.org (Postfix) with ESMTP id 3BEAC37B719 for ; Thu, 15 Mar 2001 22:50:18 -0800 (PST) (envelope-from miker@superior.net) Received: from SHIVA (cthulu.superior.net [216.238.130.251]) by nimbus.superior.net (8.9.3/8.9.3/RB) with SMTP id BAA24859 for ; Fri, 16 Mar 2001 01:50:16 -0500 (EST) Message-ID: <003d01c0ade5$d043e380$0200a8c0@SHIVA> From: "Mike" To: "'freebsd-net@freebsd.org'" References: <710709BB8B02D311942E00606744181054429B@MELEXC01> Subject: translate from iptables Date: Fri, 16 Mar 2001 01:53:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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