Advertisement
finders2014

Untitled

Dec 28th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. auto lo
  2. iface lo inet loopback
  3.  
  4. auto enp4s0
  5. iface enp4s0 inet dhcp
  6.  
  7. auto vmbr0
  8. iface vmbr0 inet static
  9. address 10.0.0.1/24
  10. bridge-ports none
  11. bridge-stp off
  12. bridge-fd 0
  13. post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  14. post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o enp4s0 -j MASQUERADE
  15. post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o enp4s0 -j MASQUERADE
  16.  
  17. iface wlp5s0 inet manual
  18.  
  19. source /etc/network/interfaces.d/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement