Hello,
I have a bare metal server at OVH with several FO IPs. I'm trying to change my current configuration of Proxmox to the following:
- PVE admin : 1.2.3.4
- OPNsense : 4.5.6.7
- VM1 : 4.5.6.8
- VM2 : 4.5.6.9
I also want to have a private LAN for the VMs and set up a VPN for administration (basically most of the port will be closed to outside). I can"t use NAT for VM2 in any case because on app doesn't support it. I think, Proxmox in a bridged mode is suitable for my case.
I looked at the forum and other website but couldn't find something working for me. Would you be able to help me getting working config files and IPtables rules, please?
PVE network file:
On OPNsen I have :
WAN : em0 : 4.5.6.7/24
LAN : em1 : 192.168.9.254/32
OPT1 : em2 non config
And I'm not sure for the VM's network config.
Many thanks in advance!
I have a bare metal server at OVH with several FO IPs. I'm trying to change my current configuration of Proxmox to the following:
- PVE admin : 1.2.3.4
- OPNsense : 4.5.6.7
- VM1 : 4.5.6.8
- VM2 : 4.5.6.9
I also want to have a private LAN for the VMs and set up a VPN for administration (basically most of the port will be closed to outside). I can"t use NAT for VM2 in any case because on app doesn't support it. I think, Proxmox in a bridged mode is suitable for my case.
I looked at the forum and other website but couldn't find something working for me. Would you be able to help me getting working config files and IPtables rules, please?
PVE network file:
Code:
# The loopback network interface
auto lo
iface lo inet loopback
iface eno1 inet static
auto vmbr0
iface vmbr0 inet static
address 4.5.6.7
netmask 255.255.225.0
gateway 4.5.6.254
#pointtopoint 4.5.6.7
broadcast 4.5.6.255
bridge_ports eno1
bridge_stp off
bridge_fd 0
network 4.5.6.0
# post-up route add 4.5.6.7 dev eth0
# post-up route add default gw 4.5.6.254
# pre-down route del 4.5.6.7 dev eth0
# pre-down route del default gw 4.5.6.254
#post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
auto vmbr1
iface vmbr1 inet static
address 192.168.9.1
netmask 255.2255.255.0
bridge_ports none
bridge_stp off
bridge_fdd 0
auto vmbr2
iface vmbr2 inet manual
bridge_ports dummy1
bridge_stp off
bridge_fd 0
On OPNsen I have :
WAN : em0 : 4.5.6.7/24
LAN : em1 : 192.168.9.254/32
OPT1 : em2 non config
And I'm not sure for the VM's network config.
Many thanks in advance!