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

    All VLan Traffic over an OpenVPN Tunnel (Cyber Ghost)

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 521 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.
    • B
      billsecond
      last edited by

      I have created a VPN connection to Cyber Ghost VPN and it is connected to my router. It is working just fine when I perform a traceroute from the router. But when I connect a VM to that VLAN 6 and I google "Whats my IP," i get my IP address. I know the traffic is not going over the VPN then. Do you have any guides, or steps on how to do this?

      JKnottJ 1 Reply Last reply Reply Quote 0
      • M
        marvosa
        last edited by

        Your provider should have some guides actually. At a high level, you need to assigned the VPN to an interface, policy route the traffic sourced from that VM over the VPN gateway, create a NAT on the VPN interface

        B 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @billsecond
          last edited by

          @billsecond

          When you say VLAN traffic, are you saying you're trying to send VLAN tagged frames over the VPN? If so, it won't work, as VPNs, in TUN mode, won't pass any Ethernet frames.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • B
            billsecond @marvosa
            last edited by

            @marvosa Perfect, I did get it with Policy Route VPN. I was trying to do this before, but I was missing the gateway, I had already created it for my VLAN, but didn't realize I also needed one for this VPN. Once added that and configured everything it all worked!!!

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