[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT--firewall help



On Fri, Jan 10, 2003 at 01:25:33PM -0500, Brad Cramer wrote:
> I am trying to use Xbox live on my home network and I can't seem to get
> through firewall. I have a computer running debian woody that acts as
> gateway/router/firewall. Has anyone done this and if so can they offer some
> advice?
> TIA
> Brad Cramer
> bcramer@callahanfuneralhome.com

If you want to forward all traffic on a port to the xbox, you should be
able to do something similar to the following:

/sbin/iptables -t nat -A PREROUTING -i ppp0 -p UDP --dport eeee -j DNAT
--to aaa.bbb.ccc.ddd:eeee
/sbin/iptables -A FORWARD -i ppp0 -p TCP --dport eeee -j ACCEPT

In this case, the firewall should directly forward UDP traffic coming in on
port eeee directly to the XBox on ip address aaa.bbb.ccc.ddd. You will have
to do a pair for each port you want forwarded. (actually, thinking about
it, you may be able to do a range of ports, e.g. --dport eeee-gggg.


-- 
--Brad
============================================================================
Bradley M. Alexander                |
Debian Developer, Security Engineer |   storm [at] tux.org
Debian/GNU Linux Developer          |   storm [at] debian.org
============================================================================
Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E  E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A  C8 9C F0 93 75 A0 01 34
============================================================================
"...But a great looking ship, that. Looks like a fish, moves like a fish,
steers like a cow."
							--Ford Prefect



Reply to: