[Dorset] iptables question

2010-04-22 Thread John Carlyle-Clarke
Hi folks- I have an iptables question. I've tried a few things, but since this is my gateway/router I usually seem to end up killing internet access (or more strangely, slowing it right down for a time) when I try to work it out myself. Here is the setup. What I need to do is to open an

Re: [Dorset] iptables question

2010-04-22 Thread John Carlyle-Clarke
On 22/04/10 13:29, John Horne wrote: On Thu, 2010-04-22 at 12:48 +0100, John Carlyle-Clarke wrote: sysctl -w net.ipv4.ip_forward=1 iptables -P FORWARD ACCEPT iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE iptables --table nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j

Re: [Dorset] iptables question

2010-04-22 Thread Keith Edmunds
On Thu, 22 Apr 2010 12:48:11 +0100, j...@wormdrive.net said: I have an iptables question. There was a not-dissimilar question on the Hants LUG list only this week. This is the reply I posted there: Life is too

Re: [Dorset] iptables question

2010-04-22 Thread Nathan Baum
On 22/04/10 13:57, John Carlyle-Clarke wrote: What I need to add is to forward a few *incoming* ports, for example port 80 on the WAN side of the gateway to 10.0.0.254 (a server), or things like bittorrent ports to individual machines on my network and other similar cases where incoming