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

    VPN client to one Interface only

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 2 Posters 860 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.
    • A
      Anwes1
      last edited by

      Hello!

      I'm new to pfsense.

      This is how I'm trying to set things up.

      WAN
      LAN to switch.
      Opt1 VPN connection for computer. Only want vpn on this interface.
      Opt2 IP TV box.

      At the moment im using LAN directly to my computer, because I have problem setting vpn connection only for one interface.

      The IP Tv connection is not a priority.
      Anyone can lead my in right direction?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        So setup your vpn.. Then setup opt1 to use your vpn as its gateway. There is reason to break this out to its own interface. This is a simple policy route to have 1 client use the vpn.

        Make sure when you setup your vpn connection your not pulling routes.

        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.8, 24.11

        A 1 Reply Last reply Reply Quote 0
        • A
          Anwes1 @johnpoz
          last edited by

          @johnpoz

          Oh! I feel stupid! That sound so logic.

          Going to test it, hope i get it working.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            If you need pictures or something let me know - I have a vpn connection to one of my vpses just for this reason to help with vpn posts.

            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.8, 24.11

            A 1 Reply Last reply Reply Quote 0
            • A
              Anwes1 @johnpoz
              last edited by

              @johnpoz

              Yes that would be very helpful!

              I get the idea of connecting opt1 to vpn gateway, but cant really find the correct tab.

              The vpn is already setup long ago 😅

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                Do you have your vpn client pulling routes? If so you need to turn that off..

                Do you have your opt1 network created? If so just change the gateway to use your vpn as the gateway.

                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.8, 24.11

                1 Reply Last reply Reply Quote 0
                • A
                  Anwes1
                  last edited by

                  @johnpoz
                  I dont know if it is pulling routes. I followed the instructions from the VPN company according to Pfsense setup.
                  So I assume its not. How can I find out?

                  Here is some pictures, I got my LAN free from VPN. But i don't get any connection when using op1(MullvadVPN) with my ethernet cable.
                  3_1534963865207_vpn4.png 2_1534963865207_vpn3.png 1_1534963865207_vpn2.png 0_1534963865206_vpn1.png

                  Am I close? Or am I completly lost?

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by johnpoz

                    No your not close ;) So your forgetting the opt2 idea.. You don't have a network setup on it even.

                    Why are you using manual outbound nat and not hybrid?

                    Your rule to send out your vpn gateway - the source needs to be the IP on your lan that you want to use the gateway.. not your vpn net..

                    As to pulling routes - you have it check in your vpn client NOT to pull routes... Your sayng your current lan is not using your vpn..

                    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.8, 24.11

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