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

    ubuntu 22 openvpn server to pfsense connects but no traffic

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 2 Posters 228 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
      ariban99
      last edited by

      Hi
      i have a pbx in teh cloud and i installed openvpn using https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh
      after opening port 1194 in iptables, and importing the ovpn file into pfsense, i have a successful connection, but nothing is accessible over the vpn tunnel back to the pbx server.
      if i take the SAME exact ovpn file and import it into openvpn in android app, then i have full access using the vpn tunnel back to the server.
      can anyone help me with this? attached is the ovpn file (ip address removed)

      on the server side, changes were made to only route client VPN traffic through the OpenVPN server.
      as follows:
      sed -e '/redirect-gateway d/s/^/#/' -i openvpn-install.sh
      sed -e '/redirect-gateway ipv6/s/^/#/' -i openvpn-install.sh
      sed -i 's|tls-client|tls-client\npull-filter ignore "redirect-gateway"|' openvpn-install.sh

      Thank you for your help.
      Ben haiku.txt

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

        @ariban99 can anyone help with this?

        1 Reply Last reply Reply Quote 0
        • E
          eagle61
          last edited by

          What are your rules in Firewall / Rules / OpenVPN

          No according rules, no traffic

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

            @eagle61 i have the rule, see attached screenshot!Screenshot 2024-08-14 095514.png

            E 1 Reply Last reply Reply Quote 0
            • E
              eagle61 @ariban99
              last edited by

              @ariban99

              Is ufw activated on your ubuntu-Server?

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

                @eagle61 no its inactive.
                i did whitelist in iptables the port 1194 and the tunnel 10.8.0.0/24
                also as mentioned, in android phones with the client app openvpn, it works perfect! its only on pfsense client that its not working! so its not a firewall or port issue!

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

                  just checking back if anyone knows why the connection works perfectly in android but wont work at all in pfsense firewall?

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