- # 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 195.201.240.91/26
- gateway 195.201.240.65
- up route add -net 195.201.240.64 netmask 255.255.255.192 gw 195.201.240.65 dev eno1
- pointopoint 195.201.240.65
- up sysctl -w net.ipv4.ip_forward=1
- up sysctl -w net.ipv4.conf.eno1.send_redirects=0
- up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 443 -j DNAT --to 10.0.0.3:443
- up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 8080 -j DNAT --to 10.0.0.3:80
- up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 2222 -j DNAT --to 10.0.0.3:22
- # route 195.201.240.64/26 via 195.201.240.65
- iface eno1 inet6 static
- address 2a01:4f8:231:96::2/64
- gateway fe80::1
- up sysctl -w net.ipv6.conf.all.forwarding=1
- #iface eth0 inet manual
- auto vmbr0
- iface vmbr0 inet static
- address 195.201.240.91/26
- bridge_ports none
- bridge_stp off
- bridge_fd 0
- up ip route add 195.201.240.90/32 dev vmbr0
- iface vmbr0 inet6 static
- address 2a01:4f8:231:96::3/64
- up ip -6 route add 2a01:4f8:231:96::/64 dev vmbr0
- auto vmbr1
- iface vmbr1 inet manual
- address 10.0.0.2/24
- bridge-ports none
- bridge-stp off
- bridge-fd 0
- up iptables -t nat -A POSTROUTING -s '10.0.0.0/30' -o eno1 -j MASQUERADE
- down iptables -t nat -D POSTROUTING -s '10.0.0.0/30' -o eno1 -j MASQUERADE