[wplug] Newbie Iptables question.

Wise, Jeremey WISEJ at PIOS.com
Thu Mar 6 13:24:03 EST 2003


Too little information. I will assume you are doing some form of NAT and
that the WAN side of the firewall is static (though dynamic would still work
the same). You will have to do port forwarding to the XP box. Allowing
outbound or inbound traffic on those ports would not forward requests from
the internet to your game server.

You may need to add something like this: <Snip>
# Check State
/sbin/iptables -A GOOD -m state --state ESTABLISHED,RELATED -j ACCEPT
# SSH from Internal LAN only
/sbin/iptables -A GOOD -i eth0 -p tcp --dport 22 -j ACCEPT

# Global Redirects & Packet Shaping
# Forward DNS
# /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 53 -j DNAT --to
10.10.10.200
# Forward inbound HTTP to WEB farm
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to
10.0.0.200

# Masquerade outgoing traffic Static IP
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 65.42.160.145


Happy fer walln'

Jeremey Wise (440)-519-6006
(CNE,MCSE,CSE)
Pioneer-Standard Electronics, Inc
wisej at pios.com
 

-----Original Message-----
From: Kubbie [mailto:squeakers2k at icqmail.com] 
Sent: Thursday, March 06, 2003 12:47 PM
To: wplug at wplug.org
Subject: [wplug] Newbie Iptables question.


I am trying to Host a game from a XP machine behind a Slackware
firewall/DHCP box.  However, my game is not being seen by those trying to
connect.  The game requires ports 2302-2304 UDP  to Host a game and ports
2300-2400 UDP to be open for normal game play.  I may not have type the
iptables in correctly.
What would be the correct command string to enter to let this machine
(10.x.x.x) host through the firewall?

Thanks in advance.


_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug



More information about the wplug mailing list