This is the first time ever I am posting something, so if I am doing wrong please tell me.
My issue is that I have an ubuntu server with 2 network cards.
One is connected into the internal network 172 ... eth0 and another connected to a vodacom lte device eth1.
netstat -anr output is as follows:
Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1 172.27.72.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
The server with the 2 network cards can reach the internet. The server can reach other pc's on the network and these pc's can access the server via ssh or samba shares.
My problem is that the other pc's can not access the internet. I have setup iptables on the server with the following:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A FORWARD -i eth1 -o eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
But still no luck. I think I am close, please help.
Windows 7 tcpip settings is as follows:
ip 172.27.72.10 subnet 255.255.255.0 gateway 172.27.72.1 (server ip)
dns 172.27.72.1 and 22.214.171.124