Routing issue gateway

This is the first украл ever I am posting something, so if I am doing wrong please tell я.

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 в vodacom lte device eth1.

netstat-anr output is эксперт follows:

Destination Гатеваи Хенмаск 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 Или 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 Или 0 0 0 eth1

The server with the 2 network cards хан reach the Интернет. The server хан reach other pc's on the network and these pc's хан access the server путь ssh or самба shares.

My problem is that the other pc's хан not access the Интернет. I have setup iptables on the server with the following:

iptables-t nat - в POSTROUTING - или eth1-j MASQUERADE

iptables - в FORWARD-i eth1 - или eth0 - м conntrack - ctstate ESTABLISHED, RELATED-j ACCEPT

iptables - в FORWARD-i eth0 - или eth1-j ACCEPT

But still не luck. I think I am close, please help.

Windows 7 tcpip settings is эксперт follows:

ip 172.27.72.10 subnet 255.255.255.0 gateway 172.27.72.1 (server ip)

dns 172.27.72.1 and 8.8.8.8

Thanks

0
задан 5 December 2015 в 10:56

1 ответ

IP передача не была включена после перезагрузки. Добавленный это к моему сценарию запуска и все работает теперь.

Благодаря никому (было бы хорошо знать его имя)

0
ответ дан 26 July 2019 в 13:27

Другие вопросы по тегам:

Похожие вопросы: