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

    OpenVPN/pfSense - route traffic through pfSense?

    OpenVPN
    2
    3
    842
    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.
    • P
      pacpac2015
      last edited by

      Hi, I have install pfSense on a VPS in country B and have configured both an OpenVPN client (IPv4 Tunnel Network 10.0.8.0/24) and and an OpenVPN server (IPv4 Tunnel Network 10.0.1.0/24) on pfSense. The OpenVPN client in pfSense connects OK to my OpenVPN server in country C, and the OpenVPN server in pfSense connects to my PC in country A.

      When I stop the OpenVPN client in pfSense, I can access the internet just fine when having the OpenVPN client on my PC connected to the OpenVPN server instance in pfSense, but when I start the OpenVPN client on pfSense, I can no longer access the internet from my PC.

      Would it be possible to connect my PC to pfSense OpenVPN server and have pfSense route all traffic through to my OpenVPN server in country C? This way:

      PC OpenVPN client (country A) –> pfSense OpenVPN server (country B) --> pfSense OpenVPN client (country B) --> OpenVPN server (country C) --> Internet

      How can I get this to work? Thanks.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        1)by making sure the correct routes are there along the way.

        2)if you want todo it purely routing (= no nat in between), then your pfsense in country C would need NAT rules for your 10.0.1.0 tunnel network on country-A

        1 Reply Last reply Reply Quote 0
        • P
          pacpac2015
          last edited by

          Hi, ref 1), advice on how would I do the correct routes? Thanks.

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