problems with network interfaces configuration

rcdominguez

New Member
Aug 30, 2018
2
0
1
38
Hi.
I have instaro proxmox version 5-2-8 updated everything works OK, my server has 4 network interfaces one for the wan, another for an external network with optical fiber and two for the lan, reading I saw that I can make a virtual private network and with the method Masquerading (NAT) with iptables.

I can make a kind of DMZ for my network of servers or my configuration is the following follow the steps of the documentation of proxmox 5-2

auto lo
iface lo inet loopback

iface enp2s0f0 inet manual

iface enp2s0f1 inet manual

iface enp7s0f0 inet static
address 192.168.0.X
netmask 255.255.255.0
#gateway 192.168.0.X

auto vmbr2
iface vmbr0 inet static
address 10.2.103.X
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.2.103.0/24’ -o enp7s0f0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ’10.2.103.0/24’ -o enp7s0f0 -j MASQUERADE

iface enp7s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.X
netmask 255.255.255.0
gateway 192.168.0.X
bridge-ports enp2s0f0
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 10.10.X.Y
netmask 255.255.255.248
bridge-ports enp7s0f1
bridge-stp off
bridge-fd 0



and it does not work, I'm getting an error when I reset the network interfaces
any suggestions
 
right now I can not put the error because I have the proxmox in production, but it does not start the interfaces I have to reconfigure the interfaces manually again on the server. I delete the virtual one with the iptables config and restart and it works again