How to only connect through OpenVPN?



  • Hi, first post… ;D

    I've done quite a lot of digging in the forums, but can't seem to find a answer to my problems.

    I share my internet connection with my neighbors house and therefore have a "strange/complicated" network setup.

    The drawing was done in 5min. in Paint, so no complaints :)

    Now my problems...

    • In my current setup I want the virtual machines behind the OpenVPN Pfsense machine to only be able to access internet through the OpenVPN tunnel connection.
    • Not be able to see any other machines on the network other than those connected to the Virtual switch behind Pfsense.
    • When the OpenVPN connection fail, they should not be able to connect to anything other than the machines on the virtual switch behind Pfsense.

    I have set up the OpenVPN client in Pfsense and it is up and running normally (I think).

    Can anyone help?

    BTW: I'm running Pfsense 2.0.1-Release

    -Kaj
    ![Network map.jpg](/public/imported_attachments/1/Network map.jpg)
    ![Network map.jpg_thumb](/public/imported_attachments/1/Network map.jpg_thumb)


  • Rebel Alliance Global Moderator

    Well then setup your firewall rule on your vm pfsense box to prevent whatever you don't want.

    I for the life of me can not figure why you would want to do such a thing.. but hey, whatever floats your boat.

    I see a triple nat when I look at that setup, and for the life of me don't understand why you would need a firewall to specific vms behind a triple nat ;)  But sure again whatever floats your boat.

    Just set your rules on your pfsense to only allow access to your openvpn connection.


Locked