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

    Can I use one of my 6 physical network ports to be a vpn port?

    Scheduled Pinned Locked Moved OpenVPN
    55 Posts 3 Posters 9.8k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      @mbc0 said in Can I use one of my 6 physical network ports to be a vpn port?:

      I have tried setting the ip of the source network to 192.168.2.1

      Why are you trying to set an IP... You would NOT set an ip on a vpn client connect to some vpn service..

      Their guides are written by idiots for their idiot users.. Sorry but that is my personal opinion of these nonsense service..

      Point to me in their guide where it says to set an IP on your interface???

      Lets say you where required to set a static on the interface - you still can not have the same network locally as your tunnel network.. You can not use 192.168.2/24 on one of your networks, and 192.168.2/24 as your tunnel to the vpn service..

      Where is your gateway??? You manually created that gateway pointing to your own local interface on 192.168.2.1??

      So you didn't follow there guide at all!! Is what your saying - your just saying you did... Because no where in there does it say to do that...

      What I would suggest is just remove ALL the settings for any vpn anything... Switch to normal automatic and then get this new network working... Then setup 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

      M 1 Reply Last reply Reply Quote 0
      • M
        mbc0 @johnpoz
        last edited by mbc0

        Hi,

        Firstly, I understand your frustration and I totally get it! I am an engineer of 30 years and find it very frustrating explaining things to people that just cannot understand what I am explaining. Please remember I am a complete novice trying my best to understand and follow what I thought was an official guide from PIA which has in it's defence worked for all my interfaces but I need it to work for just one interface, the guide does not cover that.

        > Why are you trying to set an IP... You would NOT set an ip on a vpn client connect to some vpn service..]

        I was doing this as unless I specified an IP it just stays at dynamic and does not show an IP
        a2fe0028-cdf6-4ae5-bc9e-75bc8e27d7c3-image.png

        > Their guides are written by idiots for their idiot users.. Sorry but that is my personal opinion of these nonsense service..]

        I understand your opinion :-)

        > Point to me in their guide where it says to set an IP on your interface???

        It does not say this anywhere in the guide as their guide is only to put all interfaces behind the vpn which as I previously stated works, I cannot find any guide or understand any way to do this for just one interface.

        > Lets say you where required to set a static on the interface - you still can not have the same network locally as your tunnel network.. You can not use 192.168.2/24 on one of your networks, and 192.168.2/24 as your tunnel to the vpn service..

        I am so sorry I am not fully understanding this, I have 4 interfaces in use
        wan
        lan - I set an IP of 192.168.0.10
        Unifi - I set an IP of 192.168.1.5
        PIAVPN - I set an IP of 192.168.2.1

        > Where is your gateway??? You manually created that gateway pointing to your own local interface on 192.168.2.1??

        0fa0e06f-196c-4ea4-aec6-dd2ee41875bf-image.png

        So you didn't follow there guide at all!! Is what your saying - your just saying you did... Because no where in there does it say to do that...

        Yes I did follow the guide completely and it worked perfectly but for all interfaces, I need this to be on just one interface.

        What I would suggest is just remove ALL the settings for any vpn anything... Switch to normal automatic and then get this new network working... Then setup your vpn!

        I have had this interface working fine the whole time and have been using it for some months before trying to get OpenVPN working.

        In a nutshell
        All interfaces have been working fine for some time now.
        I followed the PIA Guide and all worked great for all interfaces then the problem is trying to get it to work just on one interface.

        Again, I really am genuinly sorry as I know how frustrating this must be.

        Thanks

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

          Dude... You can do this with 1 interface, 100 interfaces... Doesn't matter its a simple policy route... You have gateway that is the vpn connection... creat a rule that sends who you want when they want go X out the gateway... its that freaking simple..

          All that is required for you to do this, is follow their stupid guide and don't pull the routes. Then nobody will be using the vpn

          Other than their nonsense about deleting your wan outbound nats as their kill switch.. OMG!!!

          Now create a rule that points either the whole network or a specific IP out the gateway...

          That is ALL there is too it... Have you read the policy routing documentation?

          https://docs.netgate.com/pfsense/en/latest/routing/directing-traffic-with-policy-routing.html

          edit: Here... I just created a firewall rule to point my client out the vpn.. Its as simple as changing the gateway from default to the vpn.. That is all there is too it... When you pull the routes, they change your DEFAULT to use the vpn... For anything to no use the vpn you would have to force it out your wan gateway..

          policyroute.jpg

          Reason the other site for IP is different, is I didn't want to flush my states, so I went somewhere different (not google) to create a new state on the firewall and use the vpn connection, vs the previous states that were using my wan.

          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
          • M
            mbc0
            last edited by

            Thank you, I can see now I was on the wrong path and overthinking.

            I believe I am understanding this (mostly) now and have been through what you said and the Policy Routing Configuration many times, I have mostly started again but cannot get my vpn gateway to register an IP.

            803a1c93-006f-4bba-b2f0-f7ad9a443a09-image.png

            I cannot get anything other than dynamic to show for my Gateway

            3fbd7be5-6897-48ce-886e-9a342f35fe6a-image.png

            ba9653b1-7cb0-4393-a8a9-3d8a646ff562-image.png

            e15578c6-2d32-43b8-a30d-1a50938cdd86-image.png
            Do I need a rule for this interface?

            08b286b6-5ad4-40cb-a68a-cd68c09391a9-image.png

            b8a45e86-440d-4223-b7e2-e95dc33b9970-image.png
            I have been over and over and feel I have things setup right now, I just cannot see why the gateway is stuck on dynamic?

            1 Reply Last reply Reply Quote 0
            • M
              mbc0
              last edited by mbc0

              AHA!

              A Break Through!!!

              I now have an IP!

              In the firewall rules I had the vpn interface selected instead of the physical interface!

              All I have to do now is work out how to get any devices on the interface to the correct gateway as there is no internet on the physical port (IPCONFIG shows the gateway as 192.168.2.1 which is the address of the physical port) but this is so close now :-)

              Thank you SOOO much for your help and I hope I never caused you to lose too much hair :-D

              d0a9ab33-4294-4da4-b78c-f675714469e3-image.png

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

                @mbc0 said in Can I use one of my 6 physical network ports to be a vpn port?:

                (IPCONFIG shows the gateway as 192.168.2.1 which is the address of the physical port) but this is so close now :-)

                Huh?? When you create a new network on pfsense there would be NO GATEWAY set.. When you do that it becomes a WAN..

                So in pfsense you would have an interface

                192.168.2.1/24 for example.. NO GATEWAY!!! NONE!!!

                Here is one of my network..

                none.jpg

                Clients on this network, say your box you want to use your vpn would use pfsense IP as "their" gateway 192.168.2.1 for example if that is what you set pfsense to be, or example mine is 192.168.4.253..

                What I suggest you get this network working going out your normal wan - than Policy route it out 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

                M 1 Reply Last reply Reply Quote 0
                • M
                  mbc0 @johnpoz
                  last edited by

                  @johnpoz

                  edffe15a-fef1-43ba-9a4e-a78e0b8540f6-image.png

                  Mine is the same,

                  yes I will get it working on the normal wan first,

                  Thank you :-)

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

                    Now with your nat set to auto any clients on this network should work.. You created a any any rule on this interface right?

                    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
                    • M
                      mbc0
                      last edited by

                      hmmm with nat set to auto, Windows changes from no internet shown on the connection to showing internet is now available but there is no response to the outside world, the other LAN & UNIFI interfaces are working fine

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mbc0 @mbc0
                        last edited by

                        I have a Windows 10 Laptop solely connected to the vpn interface FYI

                        And yes I do have an any rule

                        aa52c507-0b72-43c7-9cae-f7351f74bc20-image.png

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mbc0 @mbc0
                          last edited by

                          I removed the gateway from the interface but still the same, no internet

                          f6d0a753-4401-4d66-809a-fa5d570d1631-image.png

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

                            well how is internet going to work with just TCP... dns is UDP... to lookup www.internet.com you need to be able to talk UDP.

                            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

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mbc0 @johnpoz
                              last edited by

                              @johnpoz

                              A schoolboy error.. no idea how that happened!

                              I have just put everything back and its working!! I am so relieved! and yes it is so bloody easy now I know how it all comes together, you must have been pulling your hair out! I am going to do this again on another server just to prove to myself how easy it is :-)

                              All I have now is a dns leak but have seen plenty of info on how to resolve that!

                              Thanks so so much!

                              1 Reply Last reply Reply Quote 0
                              • M
                                mbc0
                                last edited by

                                One think I have noticed though, although everything is working (apart from the DNS Leak)

                                The VPN Gateway is showing as offline?

                                e010ec7c-4f1e-4adb-8b41-e33df1a69a7e-image.png

                                34ba950f-ce23-4d24-ab04-865813715f41-image.png

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

                                  What version are you running? That is not current version..

                                  Oh your in the status section.. Thats why it looks different.. Restart the vpn instance.

                                  Really dude your hiding a 10 address?

                                  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
                                  • M
                                    mbc0
                                    last edited by

                                    haha, yes, I did hide the 10 address but not intentionally! :-D

                                    519c11a5-895d-4562-a137-26c81487a9aa-image.png

                                    f8fd5bb1-e822-4f21-a400-29f4e4d397f5-image.png

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

                                      That is not current.. current is
                                      2.4.4-RELEASE-p3 (amd64)
                                      built on Thu May 16 06:01:19 EDT 2019
                                      FreeBSD 11.2-RELEASE-p10

                                      Well now 2.4.5 is, it just dropped..

                                      Version 2.4.5 is available.
                                      Version information updated at Thu Mar 26 11:19:06 CDT

                                      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
                                      • M
                                        mbc0
                                        last edited by

                                        hmmm ok...

                                        I run pfsense (for nearly 2 years now) as a vm on a HP Microserver running unraid, I wonder why it doesn't update automatically? I will look to see how to update now, are there any pitfalls I should be aware of jumping from 2.4.3 to 2.45?

                                        Thank you

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

                                          Well 2.4.5 just dropped like maybe an hour a ago.. at best... So prob wouldn't update just yet... Oh but your on a VM... Oh then just take a snapshot and click the button... Use to do that all the time when running on vm.. Even daily snapshots I would run - because could just rollback to the snapshot took before I clicked upgrade..

                                          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

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            mbc0 @johnpoz
                                            last edited by

                                            @johnpoz

                                            ok, I wonder why 2.4.4 or 2.4.5 are not showing as availble for me?

                                            6b0f9438-424f-48d7-9902-2435ccec42cd-image.png

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