OpenWRT VM port forwarding in Proxmox

amiruloque

New Member
Jan 3, 2023
3
0
1
Hi there. I'm currently setting up my Proxmox with Openwrt VM. Everything works fine except I was unable to port forward in Openwrt eventhough I've set up port forwarding in it. I've used Openwrt not in VM environment before on an old macbook which all the port forwarding works so definitely not my ISP blocking the port

Is there any configurations in Proxmox that I need to change so that I can use port forwarding function in Openwrt VM? Any help appreciated. Just starting to learn about Proxmox
 

Attachments

  • Screenshot 2023-01-03 164613.png
    Screenshot 2023-01-03 164613.png
    71.9 KB · Views: 36
  • Screenshot 2023-01-03 164806.png
    Screenshot 2023-01-03 164806.png
    103.6 KB · Views: 34
Hi,
how is your VM connected to the WAN? Do you forward all WAN traffic to the VM?
 
Hi,
how is your VM connected to the WAN? Do you forward all WAN traffic to the VM?
Hi there. Yes and its connected through PPPoE in the Openwrt VM.

I'm using only single network interface on my Proxmox system since I don't have extra NIC to passthrough for Openwrt. I'm assuming its using a virtual network interface for Openwrt
 

Attachments

  • Screenshot 2023-01-03 173320.png
    Screenshot 2023-01-03 173320.png
    12.2 KB · Views: 26
  • Screenshot 2023-01-03 173416.png
    Screenshot 2023-01-03 173416.png
    36.4 KB · Views: 27
I see only one virtual network interface in your vm config. How do you separate WAN from LAN traffic? Wouldn't it make more sense to create a bridge for your Proxmox managed services and attach that to your OpenWRT VM? And the other one for the WAN connection.
 
I see only one virtual network interface in your vm config. How do you separate WAN from LAN traffic? Wouldn't it make more sense to create a bridge for your Proxmox managed services and attach that to your OpenWRT VM? And the other one for the WAN connection.
I've attached rough sketch of my network setup. If I understand correctly with how I set it up, I'm using a switch to specify VLAN 500 required for my ISP to one of the port which I connect to the Proxmox server. After that, I configure VLAN 500 in Openwrt VM for it to connect using PPPoE for my ISP.

Sorry if I didn't explained it correctly.

Does this means I need to create another bridge and attach it to the Openwrt VM?
 

Attachments

  • Screenshot 2023-01-03 213841.png
    Screenshot 2023-01-03 213841.png
    14 KB · Views: 28
  • Screenshot 2023-01-03 215218.png
    Screenshot 2023-01-03 215218.png
    75.6 KB · Views: 29
  • Screenshot 2023-01-03 214804.png
    Screenshot 2023-01-03 214804.png
    58.8 KB · Views: 21
  • Screenshot 2023-01-03 214941.png
    Screenshot 2023-01-03 214941.png
    49.4 KB · Views: 20
  • Screenshot 2023-01-03 215041.png
    Screenshot 2023-01-03 215041.png
    50.8 KB · Views: 27
Okay, I'm not so sure about your network setup there. Maybe you can check with tcpdump (and/or firewall logging) on your PVE host as well as inside of your OpenWRT if your traffic is being routed correctly.
 

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!