I will describe how I have setup my pFsense and ESXi network settings to allow all internet traffic generated by a certain (or more) VM’s to be routed trough the VPN connection whilst maintaining LAN communication between all VM’s. Preparing network structure in ESXi This can be skipped for now, i’ll update this section when ..
This how-to will explain how to switch a virtual switch on and off based on a device (smartphone) being connected to wifi or not. Other methods may use pinging your device, for me it just does not feel right to “nag” a mobile device with ping command. So this method checks via SNMP the DHCP ..