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

    OpenVPN through home network to virtual enviroment

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 441 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
      Bachir
      last edited by

      So im writing a report on pfSense, to end my studies this summer.
      Ive created a enviroment in virtualbox, within my home router.
      My pfSense firewall is before my home router.

      So i was wondering, now when my VPN works on my home network, is it possible for me to make it work outside my home network. The enviroment has network acces. This might just be a lack of network knowledge from my side, but hope you guys can help me, i dont know if its possible with the OpenVPN software :)

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by

        Sure, you can have OpenVPN listen to any Interface you want.

        -Rico

        1 Reply Last reply Reply Quote 0
        • B
          Bachir
          last edited by

          Yeah, i do have it listening on the WAN interface. The problem is that my WAN connection is sat to my home network (private ip 192.168.87.1)

          In my understanding, as long as i havent specified a public ip, people on the real WAN cant connect.
          So i was wondering if i could manipulate the OpenVPN software to go for my real public ip address, and then forward it to the firewall :)

          (I know my setup is pretty stupid 😸 )

          1 Reply Last reply Reply Quote 0
          • RicoR
            Rico LAYER 8 Rebel Alliance
            last edited by Rico

            You don't need to "manipulate" anything, just make the traffic hit pfSense WAN. To do so forward the OpenVPN port from the upstream device (ISP router?) to the pfSense WAN IP.

            -Rico

            1 Reply Last reply Reply Quote 1
            • B
              Bachir
              last edited by

              Oh okay

              Thanks alot man! :) didnt think of that actually.

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