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

    Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 2 Posters 819 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.
    • zenn bijiZ
      zenn biji
      last edited by

      Hi, so I recently set up an OpenVPN connection. the connection itself is successful.
      Screen Shot 1399-09-12 at 11.03.10 PM.png
      I made a new interface called OPT3 de2c3c13-d943-46e8-9429-98ec81d5792c-image.png
      However, when I try to ping something from the firewall using the OpenVPN interface, it fails.dfa1afad-41d8-4e0c-a96e-83db4f990fae-image.png
      Also tried setting the source address to OPT3. same result.
      here are my OVPN Tunnel settings edb0dc1d-fe99-4a05-bcf0-1edf9a50566c-image.png
      I was instructed by my provider to check dont pull routes I unchecked that, but then it completely broke my main internet connection (WAN). nothing was accessible.
      I understand that I need to create NAT rules for clients to access the OpenVPN interface. but, as far as I know, the firewall itself should be able to use the OpenVPN interface without additional NAT rules (currently set to hybrid).
      any ideas?

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

        @lordofpc734
        Not clear what's your real problem here and what you're trying to achieve.
        Do you want to direct the whole upstream traffic over that VPN or only specific?

        @lordofpc734 said in Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface:

        However, when I try to ping something from the firewall using the OpenVPN interface, it fails.
        Also tried setting the source address to OPT3. same result.

        Anyway, to ping a public IP you need an outbound NAT rule for the used source address.

        1 Reply Last reply Reply Quote 0
        • zenn bijiZ
          zenn biji
          last edited by

          only specific, I used to do this with plain L2TP, but I figured OVPN would be safer, and faster in my experience.3b67fba3-e658-451e-a7a4-3dfb77a18d95-image.png here are my NAT rules (the first one is for the PS4, second one is for accessing the modem, not relevant)
          do I need to just duplicate all of the auto created rules and set their interface to OpenVPN? is that what you mean?
          also, my issue is that as I said, I cannot ping anything from the firewall via the OVPN interface, hope this clears it up a bit

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

            The last two rules may for the source of LAN network. Copy these and change the interface to OPT3 which you have assigned to the VPN.

            To get the ping tool work to a public IP as you tried above, you also need a rule with the source 127.0.0.0/8 (pfSense itself). However, you may also need to route that public IP over the VPN.

            Since you only want to direct specific traffic over it, you may have to check "Don't pull routes" and add policy routing firewall rules to the LAN.

            1 Reply Last reply Reply Quote 1
            • zenn bijiZ
              zenn biji
              last edited by

              So I copied the LAN to WAN rules and changed them to OPT3, also tried to pay attention to the order of the rules. I made a firewall rule that redirects all traffic from my laptop to the OPT3 (ovpn) gateway.(ignoring the ping utility issue for now) it didn't work,i.e everything times out. I don't see any blocks in firewall logs.
              here are the new NAT rulesbd6ff046-5690-4bb0-beeb-c13ebb2337c2-image.png

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

                @lordofpc734 said in Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface:

                I don't see any blocks in firewall logs.

                So presumably the rule is working.
                The outbound NAT rule seem to be okay.

                @lordofpc734 said in Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface:

                I made a firewall rule that redirects all traffic from my laptop to the OPT3 (ovpn) gateway.

                Possibly an DNS issue?
                Consider that with that rule you also direct DNS requests to the VPN server, so you either have to configure your laptop to use a public DNS or redirect it by a NAT rule or add an additional firewall rule to allow DNS access to pfSense.

                zenn bijiZ 1 Reply Last reply Reply Quote 0
                • zenn bijiZ
                  zenn biji @viragomann
                  last edited by

                  @viragomann just tried 8.8.8.8 on the laptop, its not a DNS issue I believe, it just times out
                  also, unbound itself is acting weird, it keeps restarting itself... not sure what's going on here
                  might just give up and go back to L2TP, considering I don't have AES-NI anyways.

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

                    @lordofpc734 said in Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface:

                    just tried 8.8.8.8 on the laptop

                    How did you try? ping or http? If ping, does your rule allow it? You may post it here.

                    @lordofpc734 said in Cannot ping (or access) any host from clients or the firewall itself using the OpenVPN interface:

                    unbound itself is acting weird, it keeps restarting itself... not sure what's going on here

                    There should be hints in the log.
                    Possibly you have activated all outgoing interfaces in unbound. However, this will need a NAT rule for 127.0.0.1/8.

                    zenn bijiZ 1 Reply Last reply Reply Quote 0
                    • zenn bijiZ
                      zenn biji @viragomann
                      last edited by

                      @viragomann with ping, it works, but I'm almost certain that it's not being routed through the VPN as the ping time is exactly like connecting normally without a VPN, traceroute shows stars. and trying to load any webpage fails, times out. Also in unbound I have set the listening interface to LAN and outgoing to WAN so it shouldn't care about openvpn at all

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

                        You can use packet capture to check whether the packets are going out the VPN interface.

                        Also I'd recheck your firewall rules. Enable logging in all relevant rules and check the log to see which rule is applied.
                        Keep in mind the rule order and that floating rules and such ones on gateway group have advantage over interface rules.

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