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

    New to openvpn - read the posts -Can't find a solution

    Scheduled Pinned Locked Moved OpenVPN
    15 Posts 6 Posters 1.4k 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.
    • P
      pjaneiro @Gertjan
      last edited by

      @gertjan Thanks, but as I've stated, I've read numerous posts, how to's and followed many videos and had help from other people on reddit, using the search on google shows me that sadly I am not the only one having this exact same issue, everything is configured properly, I see my routes being applied on the client side, my rules have been added automatically by the wizard and just to be sure, I also added them manually. problem still persists.

      I am only able to ping the pfsense firewall itself and not able to either ping/contact other vpn clients or my lan resources

      For the heck of it, I've changed my pfsense lan ip and changed the gateway ip on my lan servers and clients to the new gateway ip, changed my nat and port forwards and everything works from the web side, everything is accessible

      OpenVPN will not give me access to my lan resources no matter what I do

      The only time I get it going is if i change the IP settings for my lan interface and add itself as the gateway, which then brakes my local lan, but vpn works....euh.....WAAT ?

      so yeah, I am frustrated with wasting so much time, I was even thinking in purchasing the support package from netgate but after seeing what kind of service I got for help in choosing what type of hardware they had that would suit my needs I decided against it.

      But it all goes back into seeing soo many people with the exact same issue on numerous forums, either all these people are morons like me or there is clearly something broken in OpenVPN

      1 Reply Last reply Reply Quote 0
      • D
        deboerdn2000
        last edited by deboerdn2000

        if you dont have redirect all traffic then you need to setup the ip ranges that the tunnel has access to under ipv4 local network(s). and then the openvpn interface on your firewall rules should also have access to everything. I just use a source any to any destination. if your still having problems after that, you can also just message me directly and Ill see what I can do to help. its not the easiest to setup but if you do the above steps, it should work exactly like you want. I run tun btw so my vpn clients get their own subnet and then I use firewall rules to restrict it. and are you using dns or ip? its not broken as im using the exact same setup and everything works perfectly.

        P 1 Reply Last reply Reply Quote 0
        • P
          pjaneiro @deboerdn2000
          last edited by

          @deboerdn2000

          I've given up on TAP for now and just want to get access to my lan resources when connected to vpn

          My local LAN setup is like this

          servers are on 10.1.0.x
          switches are on 10.1.1.x (pfsense is also my router and it's IP is 10.1.1.1)
          computers are on 10.1.10.x
          printers are on 10.1.4.x

          right now the only way I got it working vpn side is adding it's own ip as the gateway on the lan interface which makes no sense

          9d43b364-f8cd-49ef-966b-3aeeb152778e-image.png

          here's the pfsense setup

          6d008bbb-3777-45b0-bf60-eea795489d97-image.png

          b46d0b4b-e202-49dc-ae1a-89b97b04c444-image.png

          4a2072f9-708e-438d-97d0-92bf7dac1d01-image.png

          1 Reply Last reply Reply Quote 0
          • T
            ThatGuy
            last edited by

            @pjaneiro said in New to openvpn - read the posts -Can't find a solution:

            But it all goes back into seeing soo many people with the exact same issue on numerous forums, either all these people are morons like me or there is clearly something broken in OpenVPN

            My vote goes for Morons. You know why? Because I, like so many other long time pfSense\OpenVPN users started as....you guessed it, Morons. So many pfSense users/admins were familiar with using something else and get frustrated when we can't figure out something new. So I guess the only real morons are the one's that give up and blame the software and not take responsibility for themselves. Yes, networking is HARD. Don't let anyone ever tell you otherwise.

            More than likely it is a firewall rule and/or you don't have the IPV4 Remote Network in the OpenVPN Server Configuration.

            Typically, in your IPV4 Remote Network of the OpenVPN Server it needs to be whatever you want those clients to be able to hit separated by commas. Looking at what you listed before, if you want OpenVPN clients to see everything it would look like this:

            10.1.0.0/8,10.1.1.0/8,10.1.10.0/8.10.1.4.0/8

            Keep in mind I'm going with your /8. You do have a /8 network, right? It shouldn't be /24 or something else, right?

            I would think your entry under the IPV4 Remote Network of 10.1.0.0/8 would get it. Try putting all of those other networks in there and see what happens.

            ThatGuy

            1 Reply Last reply Reply Quote 0
            • D
              deboerdn2000
              last edited by deboerdn2000

              what does a traceroute show? if you can print the routes you get from a client that would be the best. I also suspect openvpn doesnt like using /8 because it doesnt know how to route from multiple interfaces. you probably need to specify it as 10.1.0.0/24, 10.1.10.0/24 and so on. it looks the the firewall is passing the traffic based on your screenshots so now I think we are looking at a routing issue. what does pfsense say for your routing table. does your openvpn show up with a gateway. so mine for example is 10.0.200/28 with a gateway of 10.0.200.2(.2 is my device). also are you using ip address or domain name. if its domain name, you need to make sure you pass your dns server to it as well.

              P 1 Reply Last reply Reply Quote 0
              • P
                pjaneiro @deboerdn2000
                last edited by pjaneiro

                @deboerdn2000 If I try a traceroute it dies at the first step, i can only ping the firewall itself (if i don't add the gateway lan to ) in my gateways it shows all green

                I'm getting to the point where I'm thinking of becoming a dishwasher and throw away 25 years of doing this...

                I've asked a friend and he's also not experienced with this opensource stuff, but like he says networking is networking, he can't find anything wrong also

                instead of having the 10.1.0.0/8 i changed it for separate ones as you mentioned, same thing

                here are my routes when i connect openvpn

                e7de60ad-706d-4467-a5b6-6e52ab0878ac-image.png

                0524905c-ca87-4473-8c5d-f5e56e0d45a3-image.png

                1 Reply Last reply Reply Quote 0
                • T
                  ThatGuy
                  last edited by ThatGuy

                  Try this:

                  1. Log into pfSense
                  2. Go to Interfaces-->WAN
                  3. At the bottom, are there checkmarks for Block private networks and loopback addresses and Block bogon networks? If they are, take them out and Save and Apply settings.
                  4. Try pinging something on your LAN.

                  Note: You may need to reset your firewall states after you make these changes to know for sure if they work. You do this by going to Diagnostics-->States-->Reset States-->Reset the firewall state table (checkbox) and then hit the Reset button. You will lose access to the Internet and pfSense for a few seconds while the states reset,

                  Lastly, are you testing this stuff over the VPN outside the LAN? Obviously, it's best to test things that way.

                  ThatGuy

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

                    Yeah, I'm stumped.... I think pfsense is not routing properly, I added a level3 switch in teh mix and changed all my pc's to use that switch ip's as the gateway also added that ip as the lan gateway on pfsense and boom everything works

                    but obviously i don't want that, i want my pfsense firewall to be the gateway for all the computers

                    so any ideas ? where i should start to look ?

                    bingo600B 1 Reply Last reply Reply Quote 0
                    • bingo600B
                      bingo600 @pjaneiro
                      last edited by bingo600

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • P
                        pjaneiro
                        last edited by

                        Ok, anyone knows if I were to pay for support netgate would help me on this ?

                        my LAN dhcp server is assigning adresses from 10.1.10.1 to 10.1.10.255
                        subnet with mask 255.255.0.0 and the gateway 10.1.1.3 (pfsense server)

                        all my lan switches are in the 10.1.1.0 subnet with mask 255.255.0.0 and their gateway is pointing at 10.1.1.3

                        all my servers are in the 10.1.0.0 subnet and mask 255.255.0.0 and their gateway is pointing at 10.1.1.3

                        my printers are in the 10.1.4.0 subnet mask 255.255.0.0 and their gateway is pointing at 10.1.1.3

                        on the openvpn server settings

                        the ipv4 tunnel network is 10.1.5.0/24 I tried going 10.1.5.0/16 and it would fail to give me an ip adress from the openvpn server

                        my ipv4 local network(s) is 10.1.0.0/16

                        as i stated previously, if I don't add a gateway on my pfsense lan adress (10.1.1.1) which is a layer 3 cisco switch I can't connect to my lan ressources from the vpn

                        I've added more screenshots

                        In the openvpn status I see the target network being the ip assigned for each user connected, on my sonicwall this would've been my 10.1.0.0/16 network, is this good for openvpn ?

                        729ee8f4-9726-4df7-bbd5-b2a684b656f9-image.png

                        76fd2d58-1870-454b-9101-b3a1f39976ad-image.png

                        9260d808-50a0-4434-8b7b-5c05f6fddaad-image.png
                        I really would appreciate help on this,

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