network problem: internet sharing

Keith Antoine kantoine
Mon May 17 11:49:38 PDT 2004


On Sunday 20 July 2003 10:42 pm, David A. Bandel wrote:

> Ensure the Windoze box has the correct IP and matching subnet mask.
> Also that it lists your upstairs box as the gateway.  I'd also check the
> DNS addresses.

It has 192.168.1.2 as its IP
255.255.255.0
192.168.1.1 as GW
210.49.48.1 as DNS primary, this is all I have
I did notice it came up as 210.49.48.1.opt

> Then run:
> iptables -F
> iptables -X
> iptables -t nat -F
> iptables -t nat -X
> iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j SNAT
> --to-source 210.49.48.75
> iptables -N tcprules
> iptables -A tcprules -m state --state RELATED,ESTABLISHED -j ACCEPT
> iptables -A tcprules -p icmp --icmp-type echo-request -j ACCEPT
> iptables -A tcprules -m state --state NEW -i ! eth1 -j ACCEPT
> iptables -A tcprules -m state --state INVALID -j DROP
> iptables -A FORWARD -j tcprules
> iptables -A INPUT -j tcprules
> sysclt net.ipv4.ip_forward=1

Ran into trouble at last command, says sysclt 'command not found'.

> and try again.
>
> Ciao,
>
> David A. Bandel

I still tried it out but the failure of the last command may have stuffed it.
However no go. I have not rebooted as yet amd going to do so now. If it works 
will mail you pronto.

-- 
Keith Antoine (GANDALF) aka 'SKIPPY'
18 Arkana St, The Gap, Queensland 4061, Australia:: PH:61733002161
Practising Geriatric, Retired Electronics Engineer, Knowall, Brain in storage




More information about the Linux-users mailing list