marjenni
Hi,
I run these two commands from linux, and it creates a vpn connection to my remote server:
openvpn --ifconfig 10.200.0.2 10.200.0.1 --dev tun --secret secret.key --remote xxx.xxx.xxx.xxx --daemon --log /tmp/openvpnclient.log
route add -net 192.168.7.0/24 gw 10.200.0.1
Now I want to do the same thing from windows, ideally using the openvpn windows client. How do I achieve this?
Best regards
Mark
maikcat
hi there,
why dont you create a config file with these parameters and use it from GUI?
Michael.
marjenni
Hiya,
Well that was what I was having difficulty with. In the open vpn windows client I get the error message "OpenVPNClient start config_p4571: process started and then immediately exited: []"
This is my config file, I have the secret key file in the same directory. Any ideas?
client
dev tun
proto udp
local xxx.xxx.xxx.xxx
lport 1194
remote xxx.xxx.xxx.xxx
rport 1194
secret secret.key 1
ifconfig 10.200.0.2 10.200.0.1
route 192.168.7.0 255.255.255.0
persist-tun
persist-key
keepalive 10 60
ping-timer-rem
verb 5
daemon
maikcat
run the gui then right click on its icon in systray click connect
and post the log here...
Michael.
marjenni
I don't see any log files, all i see is the message
OpenVPNClient start config_p4571: process started and then immediately exited: []
maikcat
use the log directive to create a log...
marjenni
Hi,
This is the contents of the log file:
Options error: specify only one of --tls-server, --tls-client, or --secret
Use --help for more information.
Any idea what I need to do?
Many thanks
Mark
marjenni
Where should the secret.key file be located? I think I may have it in the wrong place.
Mark
maikcat
you can use absolute path to the secret.key file
Michael.
marjenni
Hi,
I have slightly modified the config file, but still getting the error:
Options error: specify only one of --tls-server, --tls-client, or --secret
Use --help for more information.
client
dev tun
proto udp
local xxx.xxx.xxx.xxx
lport 1194
remote xxx.xxx.xxx.xxx
rport 1194
secret c:\secret.key
ifconfig 10.200.0.2 10.200.0.1
route 192.168.7.0 255.255.255.0
persist-tun
persist-key
keepalive 10 60
ping-timer-rem
verb 5
Be grateful for any help!
maikcat
marjenni
So I have turned off my firewall, and simplified the config to:
remote xxx.xxx.xxx.xxx
dev tun
ifconfig 10.200.0.2 10.200.0.1
secret c:\\secret.key
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
But still get the error:
Options error: Parameter tls_exit can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is also specified.
It is not clear to me at all!
marjenni
Ah, works with openvpn-gui-1.0.3