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

    connected but cant access vpn lan after upgrade to 2.4.4 p1

    Scheduled Pinned Locked Moved OpenVPN
    35 Posts 6 Posters 3.0k 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.
    • N
      netblues @Derelict
      last edited by

      Just assign interfaces to openvpn tunnels.
      DON'T put ip's there, it will happen automaticaly by openvpn.

      chpalmerC 1 Reply Last reply Reply Quote 0
      • chpalmerC
        chpalmer @netblues
        last edited by

        @netblues said in connected but cant access vpn lan after upgrade to 2.4.4 p1:

        Just assign interfaces to openvpn tunnels.
        DON'T put ip's there,

        Just like Derelict said..

        What does assigning tunnels to interfaces get over just building the tunnel on the router and not assigning them to interfaces? Just curious..

        Triggering snowflakes one by one..
        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

        N 1 Reply Last reply Reply Quote 0
        • N
          netblues @chpalmer
          last edited by

          @chpalmer said in connected but cant access vpn lan after upgrade to 2.4.4 p1:

          Just assign interfaces to openvpn tunnels.
          DON'T put ip's there,

          It creates the interfaces so you can policy route, add rules, monitor traffic, etc...

          1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            Thanks!

            From your list the only thing it seems I don't have is the ability to monitor with the graphs.. you would have to elaborate on the ect..

            But just curious..

            Triggering snowflakes one by one..
            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

            N 1 Reply Last reply Reply Quote 0
            • N
              netblues @chpalmer
              last edited by

              @chpalmer https://www.netgate.com/docs/pfsense/book/openvpn/assigning-openvpn-interfaces.html

              chpalmerC 1 Reply Last reply Reply Quote 0
              • chpalmerC
                chpalmer @netblues
                last edited by

                @netblues said in connected but cant access vpn lan after upgrade to 2.4.4 p1:
                https://www.netgate.com/docs/pfsense/book/openvpn/assigning-openvpn-interfaces.html

                Thanks! Ive been wondering but never asked.

                Adds a firewall tab under Firewall > Rules
                

                We have this. Maybe past incarnations did not..??

                Adds reply-to to rules on the VPN interface tab to help with return routing
                Adds a Gateway entry for the far side of the VPN for policy routing
                Allows the interface to be selected elsewhere in the GUI and packages
                Allows more fine-grained control of Port Forwards and Outbound NAT for the VPN
                

                Good to know.

                Triggering snowflakes one by one..
                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                N 1 Reply Last reply Reply Quote 0
                • N
                  netblues @chpalmer
                  last edited by

                  @chpalmer said in connected but cant access vpn lan after upgrade to 2.4.4 p1:

                  Adds a firewall tab under Firewall > Rules
                  

                  We have this. Maybe past incarnations did not..??

                  Now you have one for each tunnel.
                  If you are just using one tunnel, then you can get away without assigning an interface
                  (it will be happening dynamicaly behind the scenes).
                  In more complex scenarios an assigned interface comes handy.
                  Say, remote client with no split tunnel accessing specific site using nat which happens at another remote client connected via another openvpn tunnel.
                  One use for that is geolocation bypass.
                  Another is using a vps host in a datacenter as a static ip gateway.

                  1 Reply Last reply Reply Quote 0
                  • chpalmerC
                    chpalmer
                    last edited by

                    Thanks!

                    On my OpenVPN tab I simply make a rule for each VPN subnet Im controlling. I have ten different tunnels coming into this location alone besides a roadwarrior setup..

                    I do think the OP could simplify his setup a bit in this fashion.

                    from one of our spur sites.. 0_1544631267960_VPNRules.jpg

                    Ive since tightened up the road warrior rule and thus done away with all the blocking rules.

                    Triggering snowflakes one by one..
                    Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      netblues @chpalmer
                      last edited by netblues

                      @chpalmer So the question is, in your setup can 172.19.1.0/24 ping 127.30.10.0/24 if you change the block into pass?

                      chpalmerC 1 Reply Last reply Reply Quote 0
                      • chpalmerC
                        chpalmer @netblues
                        last edited by chpalmer

                        @netblues

                        Yes. Because in my VPN config page I include any network I want the site to be able to access.

                        0_1544646132898_SiteVPNConfig.jpg

                        Triggering snowflakes one by one..
                        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                        1 Reply Last reply Reply Quote 0
                        • chpalmerC
                          chpalmer
                          last edited by

                          But say I have a site I want to pass though another..

                          Site 1 LAN 172.16.1.0/24
                          VPN to site 2
                          Remote Networks 192.168.254.0/24,172.19.1.0/24,172.22.22.0/24

                          Site 2 LAN 192.168.254.0/24
                          VPNs to sites 2 and 3
                          VPN1 Remote Networks 172.16.1.0/24

                          VPN2 Remote Networks 172.19.1.0/24,172.22.22.0/24

                          Site 3 LAN 1 172.19.1.0/24 LAN 2 172.22.22.0/24
                          VPN to site 2
                          Remote Networks 172.16.1.0/24,192.168.254.0/24

                          Triggering snowflakes one by one..
                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                          1 Reply Last reply Reply Quote 0
                          • chpalmerC
                            chpalmer
                            last edited by

                            I can have multiple LANs on site 1 but the only one routed to sites 2 and 3 will be what is entered in their respective OpenVPN config pages. And visa versa..

                            Triggering snowflakes one by one..
                            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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

                              sorry i was traveling and just got back.
                              i am completely lost. mine still doesnt work.
                              does anyone have a tutorial i can follow to make it work?
                              as soon as i assign the opvnvpn to an interface my vpn connections get lost.
                              do i then enable the interface?
                              this last part of add the rules in openvpn , i dont think i am doing it right. can you outline it step by step there are not that many options

                              1 Reply Last reply Reply Quote 0
                              • N
                                netblues
                                last edited by

                                It is expected for the vpn connection to stop functioning.
                                Restar openvpn service to recover from the change.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  joegeorge
                                  last edited by

                                  After the upgrade one of my alias which used hostnames stopped working which broke on of my OpenVPN tunnels. The others which were not using this alias were fine.

                                  @ariban99 is it possible you're experiencing the same issue?

                                  GertjanG 1 Reply Last reply Reply Quote 0
                                  • GertjanG
                                    Gertjan @joegeorge
                                    last edited by

                                    @joegeorge said in connected but cant access vpn lan after upgrade to 2.4.4 p1:

                                    After the upgrade one of my alias which used hostnames stopped working which broke on of my OpenVPN tunnels. The others which were not using this alias were fine

                                    The alias is used by a firewall rule.
                                    That firewall rule is used on the VPN interface tab.
                                    The VPN becomes non-reachable for this 'alias' (== IP).
                                    So this is more a "alias isn't updated" problem, nothing to do with OpenVPN.
                                    Right ? Yes ? No ? Missing info ?

                                    Check why the alias isn't resolved (should refresh every 300 sec). See logs if it didn't - won't do - can't - whatever.

                                    No "help me" PM's please. Use the forum, the community will thank you.
                                    Edit : and where are the logs ??

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      joegeorge
                                      last edited by

                                      @Gertjan Correct, I may have misunderstood @ariban99's issue when I read it first. Sounded like their connection came up but there was a "routing"/firewall issue.

                                      You're right, I should check my logs. Thanks.

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

                                        no i have a static ip so i am not using aliases.
                                        i just think i am doing it wrong.
                                        no one confirms if i am doing it right or wrong. can someone help. here is my exact setup and what i am doing

                                        openvpn server 192.168.1.0/24
                                        openvpn client 1 192.168.2.0/24 (tunnel 10.0.1.0/30)
                                        openvpn client 2 192.168.3.0/24 (tunnel 10.0.3.0/30)
                                        client 1 and 2 reach the server with NO issues

                                        but client 1 talking to 2 or 2 talking to 1, does NOT work. i can only reach from 1 or 2 to the main openvpn server

                                        so i was told to assign the 2 openvpn on the main server to an interface. then i enabled those 2 interfaces
                                        as soon as i do this.
                                        client 1 and client 2 lost their connection to the server

                                        then i was told to go to firewall rules, openvpn tab, create a new rule as follows:
                                        action: pass
                                        interface: openvpn
                                        address: ipv4
                                        protocol: any
                                        source: the assigned interface from client 1 openvpn
                                        destination: the assigned interface from client 2 openvpn
                                        i wrote a description and saved.
                                        but this does NOT do anything. i am still without connection to the main server openvpn from both clients. not sure what i am doing wrong!
                                        please advise

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