Question - Routing Table

Drthrax74

Well-Known Member
Apr 22, 2019
34
4
48
34
Hello,
following the installation of my network, I would like to update the routing table in my router to access my VMs



Code:
Network Router: 192.168.1.0/24


#Network Physic
iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  192.168.1.3
    netmask  255.255.255.0
    gateway  192.168.1.1
    bridge-ports enp4s0
    bridge-stp off
    bridge-fd 0


#Network Promox to PFsense (2 IP MAX)
auto vmbr1
 iface vmbr1 inet static
    address  10.0.0.1
    netmask  255.255.255.252
    bridge-ports WAN
    bridge-stp off
    bridge-fd 0
    #Reseau WAN - pfsense


#Network VM
auto vmbr2
 iface vmbr2 inet static
    address  192.168.10.1
    netmask  255.255.255.0
    bridge-ports LAN
    bridge-stp off
    bridge-fd 0
    #Reseau WAN - VM
 
Hi,

And what is the question?
 
Do we need to create to iptables in proxmox machine as well?

as proxmox is not able to access the vm behind the pfsense which is on vmbr60 and VM under the pfsense on VLAN of vmbr60. Please advise

auto enp4s0
iface enp4s0 inet static


auto vmbr50
iface vmbr50 inet static
address 89.xx.xx.xx/24
netmask 255.255.255.255
gateway 89.xx.xx.1
bridge_ports enp4s0
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr50/proxy_arp


auto vmbr60
iface vmbr60 inet static
address 10.10.60.1/24
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 4000-4050

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.60.0/24' -o vmbr50 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.60.0/24' -o vmbr50 -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
 
Is 10.10.60.1/24 the ip of pfSense on that subnet?

your full /etc/network/interfaces would be more helpful.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!