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

OpenVPN problems

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
17 Posts 4 Posters 6.8k 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.
  • J
    jimp Rebel Alliance Developer Netgate
    last edited by Jun 6, 2012, 8:25 PM

    What shows up in the actual openvpn server config in /var/etc/openvpn?

    And are these clients or servers in each of these cases?

    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

    Need help fast? Netgate Global Support!

    Do not Chat/PM for help!

    1 Reply Last reply Reply Quote 0
    • M
      mikesamo
      last edited by Jun 6, 2012, 8:30 PM Jun 6, 2012, 8:29 PM

      Client for me

      getting same message

      Jun 6 07:44:55  openvpn[49428]: Use โ€“help for more information.
      Jun 6 07:44:55  openvpn[49428]: Options error: โ€“client-connect requires --mode server

      1 Reply Last reply Reply Quote 0
      • P
        podilarius
        last edited by Jun 6, 2012, 8:33 PM

        It is a client for me as well.

        Here is the config on client1.conf โ€ฆ. client2 is exactly the same only with different IPs.

        dev ovpnc1
        dev-type tun
        tun-ipv6
        dev-node /dev/tun1
        writepid /var/run/openvpn_client1.pid
        #user nobody
        #group nobody
        script-security 3
        daemon
        keepalive 10 60
        ping-timer-rem
        persist-tun
        persist-key
        proto udp
        cipher AES-256-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 xx.xx.xx.xx
        lport 0
        management /var/etc/openvpn/client1.sock unix
        remote yy.yy.yy.yy 1194
        ifconfig zz.zz.zz.zz zz.zz.zz.aa
        route cc.cc.cc.cc 255.255.255.0
        secret /var/etc/openvpn/client1.secret 
        comp-lzo
        
        1 Reply Last reply Reply Quote 0
        • M
          mikesamo
          last edited by Jun 6, 2012, 8:34 PM

          dev ovpnc2
          dev-type tun
          tun-ipv6
          dev-node /dev/tun2
          writepid /var/run/openvpn_client2.pid
          #user nobody
          #group nobody
          script-security 3
          daemon
          keepalive 10 60
          ping-timer-rem
          persist-tun
          persist-key
          proto udp
          cipher AES-128-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 4.3.2.1
          engine padlock
          tls-client
          client
          lport 0
          management /var/etc/openvpn/client2.sock unix
          remote 1.2.3.4 1234
          ca /var/etc/openvpn/client2.ca
          cert /var/etc/openvpn/client2.cert
          key /var/etc/openvpn/client2.key
          tls-auth /var/etc/openvpn/client2.tls-auth 1
          comp-lzo
          resolv-retry infinite
          verb 5
          tun-mtu 1500
          keysize 128
          persist-key
          fragment 1389
          mssfix 1389

          1 Reply Last reply Reply Quote 0
          • M
            mikesamo
            last edited by Jun 6, 2012, 8:42 PM

            Ok I got it with comment theses 2 lines from the conf files

            #client-connect /usr/local/sbin/openvpn.attributes.sh
            #client-disconnect /usr/local/sbin/openvpn.attributes.sh

            1 Reply Last reply Reply Quote 0
            • M
              mikesamo
              last edited by Jun 6, 2012, 8:44 PM

              theses line are only for server config.

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Jun 6, 2012, 8:46 PM

                ok that's probably from the radius acl import that happened yesterday.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • P
                  podilarius
                  last edited by Jun 6, 2012, 8:49 PM

                  Commented the lines out myself and the VPN connects. Was there a commit that put those in there?

                  1 Reply Last reply Reply Quote 0
                  • P
                    podilarius
                    last edited by Jun 6, 2012, 8:51 PM

                    commit 1492e02 does this.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mikesamo
                      last edited by Jun 6, 2012, 8:53 PM

                      https://github.com/bsdperimeter/pfsense/commit/5b4ee05e58777606c988c099139adb25633b50c3

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by Jun 6, 2012, 8:58 PM

                        Fix commited, gitsync and it should be ok

                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • M
                          mikesamo
                          last edited by Jun 6, 2012, 9:08 PM

                          seem to work after reboot thx!

                          1 Reply Last reply Reply Quote 0
                          • P
                            podilarius
                            last edited by Jun 6, 2012, 9:12 PM

                            Thanks for fixing that. :-D

                            1 Reply Last reply Reply Quote 0
                            • C
                              Cino
                              last edited by Jun 7, 2012, 1:28 AM

                              Thanks Jim!

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