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

    VPN Client cannot connect to servers on VPN network…

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 2.2k 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.
    • T
      tass6773
      last edited by

      I have a PC with 2 NICs that I installed centos 6.4 with KVM.  I then installed pfsense 2.1 on its own VM.  Everything seems to be working fine.  I followed the steps below and setup open VPN using the wizard and client export.

      https://doc.pfsense.org/index.php/VPN_Capability_OpenVPN
      http://blog.stefcho.eu/?p=492

      Using Ubuntu and my iPad I was able to connect with OpenVPN to my pfsense VM.  I am able to surf the internet.  I can get to the pfsense internal IP address using https, ssh and ping.  I am not able to get to any other IP on the same subnet.

      I am new to all of this, but I am thinking I am missing a route between my Open VPN network and my local network.  I have tried pushing a route and that doesn't seem to help.

      push "route 192.168.20.0 255.255.255.0";
      push "route-gateway 192.268.20.1";
      push "redirect-gateway def1";

      Any ideas what I am missing?

      1 Reply Last reply Reply Quote 0
      • M
        marvosa
        last edited by

        Post your server1.conf.  And more details about your network.

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

          my internal net work is 192.168.20.0/24 my openvpn network is 192.168.23.0/24 .  I am not sure what other information about my network do you need?

          ./var/etc/openvpn/server2.conf
          dev ovpns2
          dev-type tun
          tun-ipv6
          dev-node /dev/tun2
          writepid /var/run/openvpn_server2.pid
          #user nobody
          #group nobody
          script-security 3
          daemon
          keepalive 10 60
          ping-timer-rem
          persist-tun
          persist-key
          proto udp
          cipher BF-CBC
          up /usr/local/sbin/ovpn-linkup
          down /usr/local/sbin/ovpn-linkdown
          client-connect /usr/local/sbin/openvpn.attributes.sh
          client-disconnect /usr/local/sbin/openvpn.attributes.sh
          local 71.238.88.86
          tls-server
          server 192.168.23.0 255.255.255.0
          client-config-dir /var/etc/openvpn-csc
          username-as-common-name
          auth-user-pass-verify /var/etc/openvpn/server2.php via-env
          tls-verify /var/etc/openvpn/server2.tls-verify.php
          lport 1194
          management /var/etc/openvpn/server2.sock unix
          max-clients 10
          push "route 192.168.20.0 255.255.255.0"
          push "dhcp-option DNS 192.168.20.1"
          push "dhcp-option DNS 75.75.76.76"
          push "dhcp-option DNS 75.75.75.75"
          ca /var/etc/openvpn/server2.ca
          cert /var/etc/openvpn/server2.cert
          key /var/etc/openvpn/server2.key
          dh /etc/dh-parameters.1024
          tls-auth /var/etc/openvpn/server2.tls-auth 0
          comp-lzo
          persist-remote-ip
          float
          push "route 192.168.20.0 255.255.255.0"

          push "route-gateway 192.268.20.1"

          push "redirect-gateway def1"

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

            This mysteriously started working.  The only thing I can think of is that I a reboot of my Ubuntu Laptop or pfSense server fixed the issue.

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