Access proxmox web interface from a vm

evilmonkey1987

New Member
Feb 8, 2017
2
1
1
37
Hello,

Is it possible to access the proxmox web interface from inside a vm? Here's my situation.

I am running proxmox on bare metal and have a pfsense vm set up. There are two physical nics on the proxmox box, one acts as lan and one as Wan inside pfsense. Pfsense works as the router and dhcp server, giving out 192.168.6.x IPs (it's successfully set up and connected to a hardware switch (unmanaged)). I want all Internet traffic to hit pfsense first, and all other machines, including proxmox, to be "behind" pfsense on the 192.168.6.x subnet.

I want to be able to access the proxmox web interface from a computer on the 192.168.6.x subnet. One suggestion I read was to get a third Nic and plug it into the switch, giving proxmox an ip in my subnet. I suppose I can do that, but I think there should be a way to avoid that with some kind of virtual bridge. I'm just not sure how. Suggestions appreciated. Thanks in advance.
 
I figured this out. The way to do this is to give vmbr1 (which is bridged with eth0, which is LAN on the pfsense vm) an IP in the 192.168.6.x subnet. After I did that, I can access proxmox controls from behind pfsense. If you do this with a proxmox box connected directly to the internet, make sure to block access to the proxmox web interface from all subnets other than 192.168.6.x.

Edit /etc/default/pveproxy on the proxmox host:

Code:
ALLOW_FROM="192.168.6.0/24"
DENY_FROM="all"
POLICY="deny"
 
  • Like
Reactions: acubed4
how do you enable it?

Also I didn't have an existing pveproxy file. Do I just create it?
 

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!