I do not know if there are any auto detection network stuff but it sounds like you could do this somehow with some firewall rules. You could have some block rules setup to block the VPN out through x network. It would still keep trying to connect but would not when it cannot get out because it is on blocked networks.
You could use separate interfaces. It looks like you can select which interface to use to connect out now with openvpn clients. After that I would think you should look at doing some scripting. It may be just simpler to figure out how to enable and disable clients via the command line/save settings and restart the openvpn service. You could setup a cronjob to check networks and act accordingly every 1 min..... On Tue, Feb 10, 2015 at 11:26 PM, Cheyenne Deal <deal.cheye...@gmail.com> wrote: > I am looking at making a ESX machine that I move from place to place at > times for lan parties. I use vsphere to manage the machine when it is > connected to my home and shop network. I would like to be able to have the > pfsense vm detect if it is on my home, shop or outside network and auto > connect a vpn to the other networks if it is not directly connected to the > said networks. > Is this possible? > > On Tue, Feb 10, 2015 at 10:27 AM, WebDawg <webd...@gmail.com> wrote: >> >> I had to do something like this at one point except my VPN box was >> separate. Using firewall rules to specify gateways to use with >> destination ips and such. >> >> You want to see what ip is on an interface first and then decide to >> connect or not? Please explain more. >> >> On Mon, Feb 9, 2015 at 11:05 PM, Cheyenne Deal <deal.cheye...@gmail.com> >> wrote: >> > Is there a way that pfsense can auto connect a VPN connection on >> > connection >> > of a specific network by seeing what ip address is assigned to it? >> > >> > _______________________________________________ >> > pfSense mailing list >> > https://lists.pfsense.org/mailman/listinfo/list >> > Support the project with Gold! https://pfsense.org/gold >> _______________________________________________ >> pfSense mailing list >> https://lists.pfsense.org/mailman/listinfo/list >> Support the project with Gold! https://pfsense.org/gold > > > > _______________________________________________ > pfSense mailing list > https://lists.pfsense.org/mailman/listinfo/list > Support the project with Gold! https://pfsense.org/gold _______________________________________________ pfSense mailing list https://lists.pfsense.org/mailman/listinfo/list Support the project with Gold! https://pfsense.org/gold