[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Options error: specify only one of --tls-server, --tls-client, or --secret


  • Subject: Re: [Openvpn-users] Options error: specify only one of --tls-server, --tls-client, or --secret
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Fri, 3 Sep 2004 14:54:48 +0200 (CEST)

On Fri, 3 Sep 2004, Terry Dooher wrote:

I get:

Options error: specify only one of --tls-server, --tls-client, or --secret

I _am_ only specifying --secret. The contents of test.config are below. My guess is that one of these options is implying tls, but I can't find which. If I comment out the secret line, I get:

Options error: You must define DH file (--dh)

---- test.config
local x.x.x.x

dev tun

proto tcp-server

server 192.168.120.0 255.255.255.0

"server" is a new "macro option" in beta11 which expands to: mode server tls-server ifconfig 192.168.120.1 192.168.120.2 ifconfig-pool 192.168.120.4 192.168.120.251 route 192.168.120.0 255.255.255.0 push "route 192.168.120.1"

and "mode server" can only be used with "tls-server", that's why --secret is invalid, and you must specify --dh, --ca, --cert and --key (or --pkcs12).

--
_________________________________________________________
Mathias Sundman              (^)   ASCII Ribbon Campaign
NILINGS AB                    X    NO HTML/RTF in e-mail
Tel: +46-(0)8-666 32 28      / \   NO Word docs in e-mail

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users