Linux masquerade
Enable IPv4 forwarding
echo net.ipv4.ip_forward=1>/etc/sysctl.d/11-ipv4-forward.conf
sysctl --system
Enable masquerading of outgoing traffic through the eth0 interface
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Enable IPv4 forwarding
echo net.ipv4.ip_forward=1>/etc/sysctl.d/11-ipv4-forward.conf
sysctl --system
Enable masquerading of outgoing traffic through the eth0 interface
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Comentarii
Trimiteți un comentariu