Guest User

Untitled

a guest
Apr 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. auto lo enp4s0 enp3s0 enp2s5
  2.  
  3. iface lo inet loopback
  4.  
  5.  
  6. iface enp4s0 inet dhcp (its need to be PPPoE)
  7.  
  8. allow-hotplug enp3s0
  9. iface enp3s0 inet static
  10. address 10.169.89.51
  11. netmask 255.255.255.0
  12. gateway 10.169.89.1
  13. dns-nameserver 8.8.8.8
  14.  
  15. allow-hotplug enp2s5
  16. iface enp2s5 inet static
  17. address 192.168.0.147
  18. netmask 255.255.255.0
  19.  
  20. pre-up iptables-restore < /etc/iptables.up.rules
  21. up route add -net 192.168.0.0 netmask 255.255.255.0 dev enp2s5
  22. up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp4s0
  23. up route add -net 0.0.0.0 netmask 255.255.255.255 dev enp3s0
  24. iptables -t nat -A POSTROUTING -o enp3s0 -j MASQUERADE
Add Comment
Please, Sign In to add comment