Ubuntu: Difference between revisions

14 bytes added ,  5 years ago
Line 429:
# sysctl -a | grep ip_forward
net.ipv4.ip_forward = 1 ==> Copy this line
 
 
# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1 ==> Paste it at the end of this file
 
IPtables rules:
 
iptables -t nat -A POSTROUTING -o ens192 -j MASQUERADE
iptables -A FORWARD -i ens193 -o ens192 -j ACCEPT