1. Разрешаем форвардинг пакетов :
sysctl -w net.ipv4.ip_forward=1
2. Добавляем построут для пакетов :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # eth0 - интерфейс интернета
Tags: CentOS, Debian, linux, nat
This entry was posted on Среда, 7 октября, 2015 at 23:54 and is filed under Новости.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.