pfSense Forum

pfSense English Support => General Questions => Topic started by: J@l on March 06, 2018, 03:47:21 am

Title: pfSense as VM in vSphere Hypervisor ESXi 6.5: no connection to WAN gateway
Post by: J@l on March 06, 2018, 03:47:21 am
Hello to everybody

I am no well confident with networking, but I need to solve a problem. This is the scenario:

I installed VSphere ESXi 6.5 Hypervisor on a server machine connected to a LAN; then, from the VSphere ESXi 6.5 Hypervisor Interface, I set up the following addresses (Host, Gateway, DNS IPs are voluntarily changed)

Host IP20.30.40.50
Gateway IP20.30.40.1
DNS1 IP40.50.60.70
DNS2 IP40.25.60.70

the connection tested by the ESXi Hypervisor interface directly on the server works fine (all of Host, Gateway, DNS1 and DNS IP's are successfully pinged).

Then I registered five virtual machines on the Host (VM1 -> VM5), all connected using NAT; since VSphere ESXi 6.5 does not have a native NAT configuration, I googled and found that pfSense can do that; so I installed pFSense as a virtual machine (named pFsenseVM), then, according to the official documentation, I created two virtual switches WanVs and LanVs and two Port Groups WAN and LAN where

I started pFsenseVM and after booting, I set both WAN and LAN IP addresses in the following way (using pFSense terminal):

IPv4 address:
netmask (IPv4 subnet bit count): (24)
Gateway IPv4 address:
No IPv6 configured

IPv4 address:
No gateway set
DHCP enabled
Start IP address client range:
End IP address client range

on saving all these settings, no error message were displayed and could successfully access the WebConfigurator typing in the URL of a web browser.

Then I did some test connection by pFsense shell, getting the following results:

The following outputs, running commands by the terminal of VM1 (static IP:, were returned:

From each virtual machine VMi I cannot go to Internet.

I see it is up to the connection failure to WAN gateway, but what am I missing?

Thanks to anyone could help me