Why was I always receiving "Invalid argument (code=22)" ???

Weekly dev snapshots are available for testing.
We talk about them here. Testing features in the dev snapshot helps the features make it to stable.
Forum rules
Please report your experience with testing branch. Include what you were using and how
If there is a problem, the more info the better!
evilroach
OpenVPN User
Posts: 12
Joined: Sat Oct 10, 2015 8:56 pm

Why was I always receiving "Invalid argument (code=22)" ???

Postby evilroach » Sat Oct 10, 2015 9:25 pm

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-sour ... 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!

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: Why was I always receiving "Invalid argument (code=22)"

Postby Traffic » Tue Oct 13, 2015 11:53 am

evilroach wrote:version on server side is 2.3.2 x86_64
Worth updating ..

evilroach wrote:version of OpenVPN on client side is 2.3.6 for OpenWRT
Note for xWRT: Option --comp-lzo is called comp_lzo ..

Please see this report:
https://community.openvpn.net/openvpn/ticket/128#comment:15

evilroach
OpenVPN User
Posts: 12
Joined: Sat Oct 10, 2015 8:56 pm

Re: Why was I always receiving "Invalid argument (code=22)"

Postby evilroach » Fri Oct 16, 2015 1:40 pm

Traffic wrote:
evilroach wrote:version on server side is 2.3.2 x86_64
Worth updating ..

evilroach wrote:version of OpenVPN on client side is 2.3.6 for OpenWRT
Note for xWRT: Option --comp-lzo is called comp_lzo ..

Please see this report:
https://community.openvpn.net/openvpn/ticket/128#comment:15


Thank you very much.
I tried with "comp_lzo" directive in the conf of client, but I had been rejected, and received a prompt looked like "can not recognise comp_lzo directive....."

Maybe I should update my server's openvpn.

thanks again!

evilroach
OpenVPN User
Posts: 12
Joined: Sat Oct 10, 2015 8:56 pm

Re: Why was I always receiving "Invalid argument (code=22)"

Postby evilroach » Sun Oct 18, 2015 8:08 am

Traffic wrote:Worth updating ...

I have upgraded to 2.3.8_x64 on the server side, but I'm still receiving such warning.

Traffic wrote:Note for xWRT: Option --comp-lzo is called comp_lzo ...

I saw the topic you mentioned before, so I tried both of two directives, not only "comp-lzo", but also "comp_lzo".
But the problem is always occuring !

evilroach
OpenVPN User
Posts: 12
Joined: Sat Oct 10, 2015 8:56 pm

Re: Why was I always receiving "Invalid argument (code=22)"

Postby evilroach » Mon Oct 26, 2015 4:09 pm

Why was not my reply displayed ???

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: Why was I always receiving "Invalid argument (code=22)"

Postby Traffic » Tue Nov 24, 2015 12:27 am

Moderation problems .. :roll:


Return to “Testing branch”

Who is online

Users browsing this forum: No registered users and 1 guest