[SOLVED] Use specific interface for outbound connections

Unknown2k

Active Member
Jan 28, 2016
23
0
41
41
Good Morning.
I hope there is a networking Guru browsing the forums this morning. I have an issue that I just can't resolve.

I have a proxmox deployment with 2x physical NICs.

NIC-1 eth0 (vmbr0) is attached to the internet and has been assigned a static address.
NIC-2 eth1 (vmbr1) is attached to a local switch, with a few other servers.
Network Info 192.168.1.x

I have a Web-Server listening on NIC-1 and several additional VMs I am using as part of a load balancing node.

Web-Server (proxy, load balancing)
ETH0 Internet IP
ETH1 192.168.1.2

Web-Server Node1 VM
ETH1 192.168.1.3

Web-Server Node2 VM
ETH1 192.168.1.4

All the VM's can talk to each other via the 192.168.1.x addresses

The Web-Server itself is reachable via the Internet IP.

My trouble is, my Nodes can't get out to the internet.

Here is the route -n from one of the nodes.

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

My Question:
How do I route Internet requests from the nodes to ETH0 and out to the internet?
 
FIxed this. I setup Masquerade via one of the bridges and used that interface address as the gateway.
 

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!