Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to only connect through OpenVPN?

    OpenVPN
    2
    2
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      McKajVah
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        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.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.