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

    VPN up Gateway up - No Internet

    Scheduled Pinned Locked Moved OpenVPN
    43 Posts 5 Posters 7.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.
    • A
      Apsis-IM @vMAC
      last edited by Apsis-IM

      @vmac right on... I thought it was worth a mention... I literally did it to myself an hour before I came to read the boards. I deleted one of the LAN to TUN firewall rules that I actually needed and mistakenly built it from one of the existing rules that had the tagging and ended up blocking unintended traffic.

      NAT's there the LAN>WAN / LAN>VPN rules are as they should be; it "should" work.

      Let's try to establish a known good. When these devices you're adding now aren't added to your LAN>VPN Rule are those devices able to get out? I'm assuming they are.

      If this is the case I'd say it's worth taking a look at your LAN>VPN Rule (or all that's applicable o those IPs) They may have an unintended setting OR those IPs match another rule that applies before the pass rule you're expecting the IPs to use.

      v/r,

      JG

      Edit:
      You did mention the known good; sorry. just stepping through it in my head... again, I'm not that savvy.

      V 1 Reply Last reply Reply Quote 0
      • A
        Apsis-IM
        last edited by Apsis-IM

        Sticky Connections: Do you have that on? It was suggested in a guide for multi-wan/VPN setups. It didn't function as I expected; it prevents devices from using the new available states as they became available (until the states expire they're stuck using the old/down/blocked stuff). I would have to reset states or reboot the firewall to get the traffic to flow after I made changes.

        it's:

        system > advanced > misc > load balancing

        v/r,

        JG

        1 Reply Last reply Reply Quote 0
        • V
          vMAC @Apsis-IM
          last edited by vMAC

          @apsis-im said in VPN up Gateway up - No Internet:

          @vmac right on... I thought it was worth a mention... I literally did it to myself an hour before I came to read the boards. I deleted one of the LAN to TUN firewall rules that I actually needed and mistakenly built it from one of the existing rules that had the tagging and ended up blocking unintended traffic.

          NAT's there the LAN>WAN / LAN>VPN rules are as they should be; it "should" work.

          Let's try to establish a known good. When these devices you're adding now aren't added to your LAN>VPN Rule are those devices able to get out? I'm assuming they are.

          If this is the case I'd say it's worth taking a look at your LAN>VPN Rule (or all that's applicable o those IPs) They may have an unintended setting OR those IPs match another rule that applies before the pass rule you're expecting the IPs to use.

          v/r,

          JG

          Edit:
          You did mention the known good; sorry. just stepping through it in my head... again, I'm not that savvy.

          So they way I have this setup is that I created an Alias "VPN_Devices". When I want to add a device to go out of the VPN I add it's IP address to the Alias. When I do that it will reload the filter. After that is done I can then verify it is going out the VPN by doing a quick bounce to what is my ip. The devices work perfectly fine prior to me adding them to this alias. Once I add them to the alias the Internet immediately drops. Don't know if that answered your question though. It looks like this:

          c17a130a-af10-4fae-8d6c-5ef4b50e6b78-image.png

          Also to you other post, no I don't have Load Balancing checked.

          A 1 Reply Last reply Reply Quote 0
          • A
            Apsis-IM @vMAC
            last edited by Apsis-IM

            @vmac my configuration is similar (naming aside), just with a couple more tunnels and aliases to bypass/utilize the different tunnels ...

            There are fewer rules than I imagined. So, with only one rule to contend with and no sticky connections we can move on...

            Does your DNS lookup/Resolver/Forwarder continue to function for the VPN traffic when those devices are added to your alias? That would hamstring the test scenario you described.

            does whatsmyIP simply not load? I'm going to try and recreate what you're seeing...

            edit:

            I'm at a loss, lol! Are we certain that the vpn_devices firewall rule is set to pass and pointed at a gateway that exists/is up? I deleted a gateway to rename it earlier today and the LAN>VPN rules that used it were set to "default"; that hosed me for a while.

            V 1 Reply Last reply Reply Quote 0
            • V
              vMAC @Apsis-IM
              last edited by

              @apsis-im

              It should. I have the DNS resolver working on all interfaces.

              yes it doesn't load when I try it. Nor can I ping any IP (ex. 8.8.8.8)

              I don't know what firewall rule other than the above would be necessary. The gateway that should pass it is showing up and green. Nevermind the 3rd gateway which shows down but works fine smh...

              cceadcba-433b-428a-91b4-92bfb6f2a543-image.png

              A 2 Replies Last reply Reply Quote 0
              • A
                Apsis-IM @vMAC
                last edited by Apsis-IM

                @vmac said in VPN up Gateway up - No Internet:

                I don't know what firewall rule other than the above would be necessary. The gateway that should pass it is showing up and green. Nevermind the 3rd gateway which shows down but works fine smh...

                None should be... I'm just biased by my configuration and I wanted to make it clear that that's why I had even expected more.

                This is weird... your rule has states and you're not getting rejects in the logs.

                I was unsuccessful in breaking my configuration in a way applicable to your situation. Someone's having a similar problem on another new post. They're not using NordVPN (wireguard), but they suspect the VPN isn't up as all the statuses indicate. They tore their configuration down to the barebones to test and still can't pass traffic.

                this discussion is here if you want to follow:

                https://forum.netgate.com/topic/160378/wg-not-routing-or-sending-traffic

                What does the traffic shaper do? Would it play a role?

                edit:

                Wait; there are no states... Hmmm... gonna google stuff, lol

                and his issue is not similar in anyway... wireguard isn't an openvpn service...

                1 Reply Last reply Reply Quote 0
                • A
                  Apsis-IM @vMAC
                  last edited by Apsis-IM

                  @vmac said in VPN up Gateway up - No Internet:

                  cceadcba-433b-428a-91b4-92bfb6f2a543-image.png

                  This does show the gateway up...

                  Have we verified that this is the gateway VPN _Devices rule is set to?

                  edit:

                  Duh you have... sorry.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Apsis-IM
                    last edited by

                    Do you have alternate servers you can try? maybe there's an issue with the one your client is connected to?

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      vMAC @Apsis-IM
                      last edited by

                      @Apsis-IM
                      Yes tried multiple.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Apsis-IM @vMAC
                        last edited by

                        @vmac is your traffic shaper configured? Perhaps considerations for your tunnel need appropriate configurations.

                        v/r
                        JG

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          vMAC @Apsis-IM
                          last edited by

                          @apsis-im
                          I removed the shaper on both the WAN and NORDVPN and it still is blocking.
                          I'm at a loss too, was hoping someone had some insight on what i might need to try.

                          A 2 Replies Last reply Reply Quote 0
                          • A
                            Apsis-IM @vMAC
                            last edited by

                            @vmac seems we both took L's last night... I failed miserably at my little project for 10 hours straight. There's a lot of action on these boards... Someone may come through and grace this thread with some knowledge.

                            1 Reply Last reply Reply Quote 0
                            • A
                              Apsis-IM @vMAC
                              last edited by

                              @vmac may try seeing how this plays out?

                              https://forum.netgate.com/topic/160257/lan-connection-drops-when-openvpn-client-connected/4

                              There are several apparently informed individuals helping this person out. The problem seems similar to yours.

                              V 1 Reply Last reply Reply Quote 0
                              • V
                                vMAC @Apsis-IM
                                last edited by

                                @johnpoz @viragomann
                                Can either of you help here?

                                V 1 Reply Last reply Reply Quote 0
                                • V
                                  viragomann @vMAC
                                  last edited by

                                  @vmac
                                  I don't know, how you've configured the DNS on the affected machines, but since your LAN rules don't allow DNS requests to internal servers, they can only access external ones, but must be configured to do so or you do some forwarding to an external server.
                                  So check if you can resolve hostnames on a computer which belongs to the VPN_devices alias.

                                  V 1 Reply Last reply Reply Quote 1
                                  • V
                                    vMAC @viragomann
                                    last edited by

                                    @viragomann I'm confused what you are stating here.
                                    Here is a copy of my current LAN rules. Doesn't the last rule allow access from any device on my LAN vLAN to any device?

                                    6cc92fa1-4fc9-4346-8900-533ef057b4c7-image.png

                                    Are you stating that I need to add another rule to allow DNS traffic?

                                    V 1 Reply Last reply Reply Quote 0
                                    • V
                                      viragomann @vMAC
                                      last edited by

                                      @vmac
                                      Yes, it does. But this rule will never be applied, since that one above matches to any traffic and directs it to the vpn gateway.

                                      Rules are processed from the top downwards. If one matches it is applied and other rules are ignored.

                                      Still don’t know, how you do DNS resolution. But assumed it“s done by pfSense, add a pass rule to the top of the rule set for TCP/UDP, dest. „This Firewall“, port DNS. So this ruhe only is applied for DNS access to pfSense, all other traffic is still directed to the vpn.

                                      1 Reply Last reply Reply Quote 0
                                      • V
                                        vMAC
                                        last edited by vMAC

                                        @viragomann
                                        I'm confused as to what you mean about the order. since VPN devices would only match specific devices. However, I made the change and still can't get any Internet when VPN connected:

                                        a254157f-f7af-42f2-97d6-2a6b69959d04-image.png

                                        To answer your other question, I have my pfSense resolving all DNS queries:

                                        9ce69d46-055f-4b03-a710-0a27e2a522a3-image.png

                                        V 1 Reply Last reply Reply Quote 0
                                        • V
                                          vMAC
                                          last edited by

                                          I'm starting to wonder if it has something to do with the Automatic Outbound NAT not working.
                                          When I check the OpenVPN logs I see this noted:
                                          5123c7f4-7fd8-487a-90b2-d928a49fc0a7-image.png

                                          When I go to Outbound NAT I don't see this interface in the "automatic" generated outbound.

                                          3d033646-3cf9-43b9-9f71-646a87a5bd9e-image.png

                                          Could this be the issue?

                                          1 Reply Last reply Reply Quote 0
                                          • V
                                            viragomann @vMAC
                                            last edited by

                                            @vmac said in VPN up Gateway up - No Internet:

                                            I'm confused as to what you mean about the order. since VPN devices would only match specific devices. However, I made the change and still can't get any Internet when VPN connected:

                                            To answer your other question, I have my pfSense resolving all DNS queries:

                                            The question is if your VPN devices are configured to resolve host names. If they are set to use pfSense you need this rule, otherwise DNS requests are directed to the VPN provider, while the destination address is pfSense and resolution fails.
                                            Since the rule shows some matches I assume the devices are set to use pfSense for DNS resolution.

                                            @vmac said in VPN up Gateway up - No Internet:

                                            I'm starting to wonder if it has something to do with the Automatic Outbound NAT not working.
                                            When I check the OpenVPN logs I see this noted:

                                            When I go to Outbound NAT I don't see this interface in the "automatic" generated outbound.

                                            I cannot find what's really wrong there. The virtual interface port is ovpnc3. This one you should have assigned to NordVPN in interfaces > assignments.

                                            The only weird thing in the outbound NAT is in the automatically generated rules: 192.168.3.1/26 and 192.168.3.0/26. No idea where the .1 is from.

                                            Your VPN devices may be in 192.168.1.0/24 and 192.168.3.0/24? However, the latter may not really be defined on your system, since it isn't shown in automatic rules.

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