Advertisement
Guest User

Untitled

a guest
May 20th, 2022
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # /etc/sysctl.conf, will be added on next reboot
  2. net.ipv4.ip_forward = 1
  3. net.ipv6.ip_forward = 1
  4.  
  5. # enable routing NOW, then load netfilter modules
  6. echo "1" > /proc/sys/net/ipv4/ip_forward
  7. echo "2" > /proc/sys/net/ipv6/ip_forward
  8. modprobe ip_tables
  9. modprobe ip_conntrack
  10.  
  11. # add a nat-entry masquerading source addresses to eth1 interface addresses
  12. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement