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

Open VPN problem

Scheduled Pinned Locked Moved OpenVPN
3 Posts 2 Posters 420 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.
  • R
    Robert2020
    last edited by Robert2020 Oct 5, 2020, 4:25 PM Oct 5, 2020, 4:18 PM

    There's two servers connected to the same VPN which is hosted in an OFF-SITE pfsense

    This is the problem:

    Server1.domain.local:
    If I ping server2 the packets go through the local router and I get the proper response from the server2 lan address.

    Server2.domain.local:
    If I ping Server1 the packet goes through the VPN and since the VPN server is offsite the packet never reaches the LAN address.

    I alrady checked the off-site pfsense openvpn server and it's "IPv4 Local network(s)" is empty so it shouldn't be doing this. This setting was incorrectly configured to the LAN network but it was later removed, which fixed the problem on the other server but not on server2.

    Config on the problematic server:
    dev tun
    persist-tun
    persist-key
    cipher AES-128-CBC
    ncp-ciphers AES-128-GCM
    auth SHA256
    tls-client
    client
    resolv-retry infinite
    remote <EXTERNALIP> 1194 udp4
    verify-x509-name "<CERTNAME>" name
    auth-user-pass password.txt
    pkcs12 pfSense-UDP4-1194-etfs2.p12
    tls-auth pfSense-UDP4-1194-etfs2-tls.key 1
    remote-cert-tls server

    how can I fix this?

    V 1 Reply Last reply Oct 6, 2020, 11:16 AM Reply Quote 0
    • V
      viragomann @Robert2020
      last edited by Oct 6, 2020, 11:16 AM

      @Robert2020
      Presumeably server2 has its default route poining to the VPN gateway.

      So check its routing table when the VPN is up and again when the VPN is down and also check the VPN logs to see if the routes are added by OpenVPN.

      1 Reply Last reply Reply Quote 0
      • R
        Robert2020
        last edited by Oct 7, 2020, 3:32 PM

        You were right, an entry on the routing table was off, for some reason, after deleting the ovpn client, user and custom client configs and re-doing them all, it worked fine. Thanks.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received