Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # network interface settings; autogenerated
- # Please do NOT modify this file directly, unless you know what
- # you're doing.
- #
- # If you want to manage parts of the network configuration manually,
- # please utilize the 'source' or 'source-directory' directives to do
- # so.
- # PVE will preserve these directives, but will NOT read its network
- # configuration from sourced files, so do not attempt to move any of
- # the PVE managed interfaces into external files!
- source /etc/network/interfaces.d/*
- auto lo
- iface lo inet loopback
- iface lo inet6 loopback
- auto eno1
- iface eno1 inet static
- address 95.216.247.175/26
- gateway 95.216.247.129
- up route add -net 95.216.247.128 netmask 255.255.255.192 gw 95.216.247.129 dev eno1
- #route 95.216.247.128/26 via 95.216.247.129
- iface eno1 inet6 static
- address 2a01:4f9:2b:29d0::2/64
- gateway fe80::1
- auto vmbr0
- iface vmbr0 inet static
- address 95.216.247.175/32
- bridge-ports none
- bridge-stp off
- bridge-fd 0
- bridge_maxwait 0
- pre-up brctl addbr vmbr0
- up ip route add 95.216.247.148/32 dev vmbr0
- up ip route add 95.216.247.160/32 dev vmbr0
- auto vmbr1
- iface vmbr1 inet static
- address 10.20.30.1/24
- bridge-ports none
- bridge-stp off
- bridge-fd 0
- post-up echo 1 > /proc/sys/net/ipv4/ip_forward
- post-up iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o eno1 -j MASQUERADE
- post-down iptables -t nat -D POSTROUTING -s '10.20.30.0/24' -o eno1 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement