Pfsense VM to proxmox host internet access

kbhatt

New Member
Dec 3, 2023
2
1
3
Hello there,

I am trying to setup my proxmox host (No internet) from Tplink WAN and then trying setup to pfsense VM LAN with OPT1 linked WAN VLAN.
So I got internet access inside Pfsense VM.

Here is pic setup
Screenshot from 2023-12-02 18-02-34.png
1) Setup TP-Link WAN ethernet ens33 to linux bridge vmbr0.
2) Setup vmbr1 DHCP from pfsense LAN to proxmox host (no internet but pfsense website gateway IP is working)
3) Setup pfsense VM OPT1 linked to WAN VLAN for internet access inside VM.

So I wanted to ask you how to access internet from pfsense VM (Vmbr1 LAN) to proxmox host but still no internet access.


Please help me.
I am waiting for your response.
 
Last edited:
No one is replying me on this post.

So I got Updated:- 10 Dec..

Here is i have disabled firewall from pve > pfsense > Hardware > Network Device (Net1) Vmbr1 > Edit: Network Device > Untick Firewall > OK.

I have successfully access with internet connection from pfsense VM to proxmox host.

Then i have added some network rules from etc/network/interface

Code:
auto lo
iface lo inet loopback

auto enol
iface enol inet manual

auto ens33 #Ethernet From Tplink WAN (No internet connection)
iface ens33 inet manual



auto vmbr1 # pfsense VM from LAN (OPT1 linked to WAN VLAN Ethernet) Internet successfully access.
iface vmbr1 inet dhcp
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 192.168.1.0/24 -o vmbri - MASQUERADE post-down iptables -t nat -D POSTROUTING-S 192.168.1.0/24 -o vmbri-J MASQUERADE
post-up iptables -t raw I PREROUTING -1 fwbr] CT-zone 1
post-down iptables -t raw-D PREROUTING -1 fwbr] CT-zone 1



auto vmbr0
iface vmbr0 inet dhcp
bridge-ports ens33 # From ethernet to linux bridge ( No internet connection)
bridge-stp off
bridge-fd 0


And then add route to default gateway vmbr1 from pfsense VM.
Code:
sudo route add default gw 192.168.1.1 dev vmbr1

Volia , internet connection working right now from pfsense VM to proxmox host.
 
  • Like
Reactions: popescu

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!