Hi, I am trying since a few days to setup iptables on my proxmox installation.
Since I have only one public IP address and I need pfSense installed I created a bridge between only the proxmox host and the pfSense guest.
My network cards are the following:
eno1 - Public IP address (XXX.XXX.XXX.XXX/24 with his gateway)
vmbr0 - Bridge for the eno1 card
vmbr1 - Bridged to a dummy card with IP 192.168.1.254/24
vmbr2 - Bridged to another dummy card with IP 172.16.0.0/16
The vmbr1 is used as the WAN for pfSense, and the vmbr2 as the LAN for all the VMs.
This is the configuration of my pfSense box:
WAN IP 192.168.1.1/24 gateway 192.168.1.254
LAN IP 172.16.255.254 and also configured to be the gateway for his lan
I've tried this on my proxmox host machine:
And also replacing the eno1 with vmbr0 but it doesn't works.
I could solve having a 2nd public IP for my pfSense box, but I can't buy it.
How can I solve this issue?
Since I have only one public IP address and I need pfSense installed I created a bridge between only the proxmox host and the pfSense guest.
My network cards are the following:
eno1 - Public IP address (XXX.XXX.XXX.XXX/24 with his gateway)
vmbr0 - Bridge for the eno1 card
vmbr1 - Bridged to a dummy card with IP 192.168.1.254/24
vmbr2 - Bridged to another dummy card with IP 172.16.0.0/16
The vmbr1 is used as the WAN for pfSense, and the vmbr2 as the LAN for all the VMs.
This is the configuration of my pfSense box:
WAN IP 192.168.1.1/24 gateway 192.168.1.254
LAN IP 172.16.255.254 and also configured to be the gateway for his lan
I've tried this on my proxmox host machine:
Code:
iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
iptables -A FORWARD -i vmbr1 -o eno1 -j ACCEPT
iptables -A FORWARD -i vmbr1 -o eno1 -m state --state RELATED,ESTABLISHED -j ACCEPT
And also replacing the eno1 with vmbr0 but it doesn't works.
I could solve having a 2nd public IP for my pfSense box, but I can't buy it.
How can I solve this issue?