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

How to only connect through OpenVPN?

Scheduled Pinned Locked Moved OpenVPN
2 Posts 2 Posters 1.3k Views
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 Sep 19, 2012, 9:32 PM Sep 19, 2012, 9:30 PM

    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
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Sep 20, 2012, 2:34 AM

      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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received