Hi, I've got two public IP addresses, default for Proxmox and the other for PfSense. I followed this tutorial. https://dominicpratt.de/hetzner-and-proxmox-pfsense-as-gateway/
These ip addresses 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 are the subnet for setting the virtual lan ip address in pfSense? For the next VM in Proxmax?
Virtual wan address is created from the additional IP address? Firewall Virtual IPs? Assignment then in NAT 1:1? Thank You
In pfSense I have
WAN vtnet0 78.xx.xx.93
LAN 192.168.1.1
The connection works, I just don't know how to correctly assign WAN and LAN in pfSense for VMs so that they can be reached from the Internet and each their own IP address for DNS
auto lo
iface lo inet loopback
auto enp4s0
iface enp4s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 78.xx.xx.139/32 - default IP
gateway 78.xx.xx.129
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
pointopoint 78.xx.xx.129
up ip route add 192.168.0.0/16 via 78.xx.xx.93 dev vmbr0 additional IP
up ip route add 172.16.0.0/12 via 78.xx.xx.93 dev vmbr0
up ip route add 10.0.0.0/8 via 78.xx.xx.93 dev vmbr0
up sysctl -w net.ipv4.ip_forward=1
up sysctl -w net.ipv4.conf.eth0.send_redirects=0
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
These ip addresses 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 are the subnet for setting the virtual lan ip address in pfSense? For the next VM in Proxmax?
Virtual wan address is created from the additional IP address? Firewall Virtual IPs? Assignment then in NAT 1:1? Thank You
In pfSense I have
WAN vtnet0 78.xx.xx.93
LAN 192.168.1.1
The connection works, I just don't know how to correctly assign WAN and LAN in pfSense for VMs so that they can be reached from the Internet and each their own IP address for DNS
auto lo
iface lo inet loopback
auto enp4s0
iface enp4s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 78.xx.xx.139/32 - default IP
gateway 78.xx.xx.129
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
pointopoint 78.xx.xx.129
up ip route add 192.168.0.0/16 via 78.xx.xx.93 dev vmbr0 additional IP
up ip route add 172.16.0.0/12 via 78.xx.xx.93 dev vmbr0
up ip route add 10.0.0.0/8 via 78.xx.xx.93 dev vmbr0
up sysctl -w net.ipv4.ip_forward=1
up sysctl -w net.ipv4.conf.eth0.send_redirects=0
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
Last edited: