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

    IPv4 Tunnel Network - OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 916 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.
    • E
      eurinoeperez
      last edited by

      Hello friends,

      First of all thanks to all the post, messages i read here and on internet i managed to configure the OpenVPN in my pfsense.

      So here's the thing:

      - I can connect to my OpenVPN server, but first i have to do  some manual things, i click the "connect button" and it says "Initialization Completed with
          errors" after look in to my pc i found out that the ip i was getting was 169.254.x.x but the one i got configured in my IPv4 Tunnel Network is
          "192.168.5.0/24"

      - When i look at the log i found out the pfsense gets succefully the ip "192.168.5.1 becouse i read pfsense gets the first IP and the client the next (so im
          supposed to get "192.168.5.2") ".

      - Then i tried something crazy after i click "Connect button" on OpenVPN client and get the error y mentioned, i go to the proper ethernet adapter and
          change the ip "169.254.x.x" to "192.168.5.2" and click "reconnect button" and thing works just fine, i have access to local area network and to
          internet.

      So my question here is how does my PC gets the "192.168.5.2" IP wihout me having to change it manually? any ideas?, becouse what i want to do is to set this on the house of my remote co - worker, and don't want to have him doing this tedious process everything.

      Thanks in advance,

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Normally, the remote IP is provided via the VPN.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

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

          Yeah but the VPN is not giving me the IP, i have to set it manually.

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

            Well guys i just found out the problem, it is related to the client side (If using windows).

            All i had to do to solve the problem is the next thing:

            -  Run this command as an administrator in windows prompt:      netsh winsock reset catalog
              -  Re - start the machine

            Apparently this happens when the winsock library gets damaged i found all the information in the next links:

            https://community.openvpn.net/openvpn/wiki/reset-network-tcp-ip-stack
            https://gastonoberti.wordpress.com/2014/01/14/winsock-que-es-y-como-repararlo/

            Bye !

            1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott
              last edited by

              Did your computer "walk barbarian"?  ;)

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

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