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

    VPN connection to different servers

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 646 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.
    • I
      Inxsible
      last edited by

      I use a vpn service and I have created an OPT1 that uses a particular server. This interface is used as the default route since I route all my traffic via the VPN interface except for my TV (netflix) and my work laptop(multiple VPNs slow down my work). However if I want to bypass the geo-blocking for certain websites, how would I do that?

      In other words how do I quickly switch the VPN server to connect to in case the server goes down or I wanted to access content from a different country? At the same time, I'd rather not have to move all my devices from 1 interface to the other each time I want to switch the VPN server.

      Would I have to create multiple OPTx interfaces for all the servers that I want to connect to? or is there a setting that will quickly allow me to connect to a different server?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • I
        Inxsible
        last edited by

        no one?

        anybody…...........somebody

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

          I'll tell you my scenario in hopes you can apply it to your needs.
          I utilize PfBlockerNG's GeoIP Listing capability to create an alias list of country's IPs.
          I have three VPN connections going, setup as Gateways (each own interface), in one Gateway Group.
          Then, a rule on LAN, that matches Source to the alias list created by PFBlockerNG, with gateway (under advanced settings) set to my Gateway Group.

          Any traffic destined for my country, goes out the VPN, and I can get around geo-blocking.

          1 Reply Last reply Reply Quote 0
          • I
            Inxsible
            last edited by

            Would you have some links to the detailed tutorials so that I can follow along?

            I am a novice when it comes to pfSense and networking in general and would really like it if there were a tutorial I could follow instead of messing something up without realizing it.

            Thanks.

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

              I'm not aware of any specific tutorial for your situation.
              I too was once a novice but over the last two years active on this forum and reddit.com/r/pfsense, I learned a lot.

              I recommend you start with pfBlockerNG and learn how it works. Learn how to create "Alias Match" GeoIP lists and then create some "match" type firewall rules to test how they work.

              E.G. create a "Europe" geo-list (all countries). Create firewall rule on LAN, set destination to your alias-list, then visit some Euro website and see if the packet is logged. If it works, then you would just set the VPN gateway as the default for this rule and all traffic would get routed over it.

              This link lhttps://www.reddit.com/r/PFSENSE/comments/6edsav/how_to_proper_partial_network_vpn_with_kill_switch/ has some pointers, until up to step 6), where you would have to construct your rule.

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

                Getting Started with PfBlockerNG https://forum.pfsense.org/index.php?topic=102470.msg684136#msg684136
                https://doc.pfsense.org/index.php/Pfblocker

                Read this too https://www.reddit.com/r/PFSENSE/comments/61nqso/guide_pfsense_with_private_internet_access_and/

                1 Reply Last reply Reply Quote 0
                • I
                  Inxsible
                  last edited by

                  Thank you bartkowski. I will look into these and see how I can accomplish what I need to do.

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