Hi, guys.
I'm a fresh man to OpenVPN, so I'm trying the MOST Simple configuration called "static key sample", by steping the HowTo in here :
https://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html.
But I am always receiving a error message : ".....write to TUN/TAP : Invalid argument (code=22)
".
The version of OpenVPN on client side is 2.3.6 for OpenWRT;
and the version on server side is 2.3.2 x86_64.
I tried both of TCP and UDP, but the issue always exist.
I tried with "comp-lzo yes" or "comp-lzo no", but the issue always exist.
I have used the configuration in the mini HowTo doc in both side, so I guess that it is not because of my fault ?
This is the configuration of my server.
"
dev tun
local {}
port 7715
proto tcp-server
ifconfig 10.8.0.1 10.8.0.2
secret california.key
comp-lzo no
push "comp-lzo no"
"
and this is of my client:
"
dev tun
nobind
port 7715
proto tcp-client
remote {ip of my server}
ifconfig 10.8.0.2 10.8.0.1
secret california.key
comp-lzo no
"
Sorry about my incondite English, I'm a Chinese.
Thanks!