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

    OpenVPN connection reset

    OpenVPN
    1
    1
    4.8k
    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.
    • B
      BerSerK
      last edited by

      Hi,

      I know it's not the first thread about this but I can't find any solid solution.

      I configured OpenVPN on pfsense 1.2, it went fine for about 1 week then all clients have their connection reset every 5 seconds.

      I have only 4 clients, each with their own certificate build with 'build-key-pass'.

      I was running openvpn on tcp 1194 when the problem appeared, now I switched to udp 1194 and the problem went away…

      Here's my server config file

      writepid /var/run/openvpn_server0.pid
      #user nobody
      #group nobody
      daemon
      keepalive 10 60
      ping-timer-rem
      persist-tun
      persist-key
      dev tun
      proto udp
      cipher BF-CBC
      up /etc/rc.filter_configure
      down /etc/rc.filter_configure
      server 10.0.10.0 255.255.255.0
      client-config-dir /var/etc/openvpn_csc
      push "route 172.20.0.0 255.255.0.0"
      lport 1194
      push "dhcp-option DOMAIN TDA.local"
      push "dhcp-option DNS 172.20.0.51"
      push "dhcp-option DNS 172.20.0.52"
      ca /var/etc/openvpn_server0.ca
      cert /var/etc/openvpn_server0.cert
      key /var/etc/openvpn_server0.key
      dh /var/etc/openvpn_server0.dh
      comp-lzo
      persist-remote-ip
      float
      
      

      Here's a sample client config

      float 
      port 1194 
      dev tun 
      dev-node ovpn 
      proto udp
      remote xxx.xxx.xxx.xxx 1194 
      ping 10 
      persist-tun 
      persist-key
      tls-client 
      ca ca.crt 
      cert yannickg.crt 
      key yannickg.key 
      ns-cert-type server 
      comp-lzo
      pull 
      verb 4
      
      

      Any help will be appreciated!

      Thanks
      Bye

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