the following network configuration is not working, can anyone help me solve it?
# /etc/network/interfaces
auto lo
iface lo inet loopback
# public network
iface enp2s0 inet static
address [public IP]
hwaddress XX:XX:XX:XX:XX:XX
netmask 255.255.255.255
pointopoint [gateway public IP]
gateway [gateway public IP]
up route add -net [gateway public IP - 1] netmask 255.255.255.255 gw [gateway public IP] dev enp2s0
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address [public IP]
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up route add -host [extra public IP] dev vmbr0
# private network
auto vmbr99
iface vmbr99 inet static
address 10.0.0.1
netmask 255.255.255.0
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.0.0.0/24' -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
# /etc/network/interfaces
auto lo
iface lo inet loopback
# public network
iface enp2s0 inet static
address [public IP]
hwaddress XX:XX:XX:XX:XX:XX
netmask 255.255.255.255
pointopoint [gateway public IP]
gateway [gateway public IP]
up route add -net [gateway public IP - 1] netmask 255.255.255.255 gw [gateway public IP] dev enp2s0
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address [public IP]
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up route add -host [extra public IP] dev vmbr0
# private network
auto vmbr99
iface vmbr99 inet static
address 10.0.0.1
netmask 255.255.255.0
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.0.0.0/24' -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1