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

    OpenVPN Static Key

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    1 Posts 1 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.
    • F
      freebee
      last edited by

      I config a OpenVPN Static Key (site-to-site) with Key Share.
      In share key export menu, exported config archive (.zip).
      When import in OpenVPN in android 4.2 (google nexus 7), he give the message when try connect:

      "specify only one of –tls-server, --tls-client, or --secret " and not connect

      The .ovpn file generated by pfsense:

      dev tun
      persist-tun
      persist-key
      proto udp
      cipher AES-128-CBC
      client
      resolv-retry infinite
      remote xxx.xxx.xxx.xxx 1197
      route xxx xxx
      ifconfig xxx xxx
      keepalive 10 60
      ping-timer-rem
      secret xxx.secret
      comp-lzo

      The "client" line must not be specify in same config file where secret line is.
      The openvpn from android 4.2 now working ok.

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