Security – XenServer 7 – Pass all public traffic to firewall solution

firewallforwardingSecurityxenserver

I have a server running with XenServer 7 installed.

Currently the XenServer only has a single VM (FW01) which is my Firewall solution and router, what i would like to do is connect the XenServer to the WAN over ETH0 and forward all traffic received on ETH0 directly to the FW01 VM without the XenServer itself looking at the packages received, so this VM can handle all security threaths without the XenServer itself being compromised.

Side note. The FW01 VM is also the Firewall for the XenServer itself, which is why it is important that the XenServer forwards all the packages received on ETH0 directly to the FW01 VM.

Or is their like an official XenServer way of archiving this?

description01

Best Answer

As typical with hypervisor networking, XenServer creates a Virtual Ethernet Switch that virtual machines connect to. These virtual switches essential act as a middleman between the physical NIC and the virtual NIC in your VM. Therefore, XenServer will attempt to inspect the packets and route them appropriately.

Since you are using a VM as your primarily firewall, a good solution would be to pick up a dual-port NIC, and use hardware passthrough directly to your FW01 VM. This would relinquish control of the entire NIC to the VM, and XenServer would not touch any of the incoming packets.

One port on the NIC would be served as an incoming WAN connection, and the other port would be used to loop back (with an ethernet cable or switch) to the XenServer host. With this setup, it is as if you have a dedicated Firewall appliance, instead of running as a VM.