Advertisement
MuadDiib

Untitled

Apr 14th, 2024
820
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # network interface settings; autogenerated
  2. # Please do NOT modify this file directly, unless you know what
  3. # you're doing.
  4. #
  5. # If you want to manage parts of the network configuration manually,
  6. # please utilize the 'source' or 'source-directory' directives to do
  7. # so.
  8. # PVE will preserve these directives, but will NOT read its network
  9. # configuration from sourced files, so do not attempt to move any of
  10. # the PVE managed interfaces into external files!
  11.  
  12. source /etc/network/interfaces.d/*
  13.  
  14. auto lo
  15. iface lo inet loopback
  16.  
  17. iface lo inet6 loopback
  18.  
  19. auto eno1
  20. iface eno1 inet static
  21.         address 95.216.247.175/26
  22.         gateway 95.216.247.129
  23.         up route add -net 95.216.247.128 netmask 255.255.255.192 gw 95.216.247.129 dev eno1
  24.         #route 95.216.247.128/26 via 95.216.247.129
  25.  
  26. iface eno1 inet6 static
  27.         address 2a01:4f9:2b:29d0::2/64
  28.         gateway fe80::1
  29.  
  30. auto vmbr0
  31. iface vmbr0 inet static
  32.         address 95.216.247.175/32
  33.         bridge-ports none
  34.         bridge-stp off
  35.         bridge-fd 0
  36.         bridge_maxwait 0
  37.         pre-up brctl addbr vmbr0
  38.         up ip route add 95.216.247.148/32 dev vmbr0
  39.         up ip route add 95.216.247.160/32 dev vmbr0
  40.  
  41. auto vmbr1
  42. iface vmbr1 inet static
  43.         address 10.20.30.1/24
  44.         bridge-ports none
  45.         bridge-stp off
  46.         bridge-fd 0
  47.         post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
  48.         post-up iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o eno1 -j MASQUERADE
  49.         post-down iptables -t nat -D POSTROUTING -s '10.20.30.0/24' -o eno1 -j MASQUERADE
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement