Advertisement
sb2014

Untitled

Jan 10th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. auto vmbr1
  2. iface vmbr1 inet static
  3. address 10.10.10.1
  4. netmask 255.255.255.0
  5. bridge_ports none
  6. bridge_stp off
  7. bridge_fd 0
  8.  
  9. post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  10. post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
  11. post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
  12.  
  13. iface vmbr1 inet6 static
  14. address 2000::2
  15. netmask 64
  16. gateway fe80::1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement