Sunday, June 9, 2013

Route host traffic through vmware guest pfSense firewall.

I was able to route windows 7 host traffic through vmware guest pfSense firewall.


Windows 7 64bit.
Vmware workstation 8.

pFsense has 2 interfaces.
WAN interface is bridged(vmnet0) get IP using DHCP from homeLAN router. (198.168.0.0/24)
LAN interface static IP  is in "host only"(vmnet1)network with IP 192.168.125.2.
ipconfig -a on Host should show you vmnet1 interface with IP 192.168.125.1 .This
interface is created by vmware.You might have different IP's based on your config.

When windows Host gets IP from wireless it gets IP from homeLANrouter.
Host-->198.168.0.10, gw 198.168.0.1
pfSense is bridged WAN interface gets it IP from homeLANrouter
pfSesne (WAN)-->198.168.0.11, gw 198.168.0.1

PfSense (LAN)-->192.168.125.2, gw:none.

In the above setup pFsenseWAN and host-ethernet are in same 198 subnet with both default GW 198.168.0.1

For Host to sent traffic to pfSense LAN interface change Host default GW to 192. 168.125.2

 route print


route  add 0.0.0.0 mask 0.0.0.0 198.168.126.2
route delete 0.0.0.0 mask 0.0.0.0 198.168.0.1.

It took 30 seconds for host to start sending traffic through pfSense LAN interface .
You could always revert back homeLan default gateway.
 

You should also change Host DNS to 192.168.125.2.
Guests in NAT wont work when routing traffic through pfSense.



 



No comments:

Post a Comment