Amirale47 / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

ccd file, ifconfig-up directive #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 0.4.8b effectively closes issue 6.

Now, when i have a ccd file (server side) for an android client, it always 
remembers the ifconfig-up line disregarding server restart or ccd file change. 
(i've cleaned the cache too, just in case)

Another issue is that trying to recconect after this error returns an "Address 
already in use" error. i have to clean memory (trought application manager) and 
re-open openvpn client to at least get to the point when it complainns about 
the  IP address (even when the ccd file it's empty) it bails with: "Cannot make 
sense of x.x.x.x and x.x.x.x as a local IP with CIDR netmask. assuming second 
address is peer address of remote. Using /32 netmask for local IP"

All ip addresses are valid (i even tried with the /30 Win32 limitation pairs)

Original issue reported on code.google.com by roliveri...@gmail.com on 5 May 2012 at 4:48

GoogleCodeExporter commented 9 years ago
I have the same issue. I am allocated 10.8.0.21, the server has .22. This falls 
neatly into the 10.8.0.20/30 subnet.

Likewise with the hang.

Original comment by jon@sprig.gs on 5 May 2012 at 10:26

GoogleCodeExporter commented 9 years ago
I am having the same issue.  Using "ifconfig-push 10.39.0.17 10.39.0.18" 
directive in ccd dir. 
- This IS working, if I use this from my windows client machine and IS a vaild 
10.39.0.0/30 net
- This WAS working with an older build of ics-openvpn (updated by market 
yesterday.. - probably I shouldn't ...)

Original comment by tho.hir...@googlemail.com on 6 May 2012 at 2:42

GoogleCodeExporter commented 9 years ago
Do you get the android vpn connected screen? Does the show information output 
of the log window look right? (Under menu or in the action bar)

Original comment by arne@rfc2549.org on 6 May 2012 at 3:01

GoogleCodeExporter commented 9 years ago
It never completes the connection. It hangs in the log screen after the log 
line above. Pressing the X to terminate the connection will sometimes fix the 
issue, but not always. There's nothing in the action bar. The only time 
anything about being connected occurs is a toast just after starting the 
connection process.

Happy to provide server config if required to duplicate the issue.

Original comment by jon@sprig.gs on 6 May 2012 at 8:39

GoogleCodeExporter commented 9 years ago
Yes I think it would be good if you can provide me the server config. as I am 
puzzeld what is causing this. You can mail me the server config in private you 
do not want to post it here.

Original comment by arne@rfc2549.org on 6 May 2012 at 8:44

GoogleCodeExporter commented 9 years ago
This is on a Fon 2.0n, where the OpenVPN process is started by command line 
rather than using a config file. It is slightly tweaked from normal, as I've 
added a TCP and a UDP server.

/usr/sbin/openvpn --syslog openvpn-u(openvpn) --writepid 
/var/run/openvpn-openvpn.pid --client-to-client --comp-lzo --persist-key 
--persist-tun --ca /etc/openvpn/keys/ca.crt --cert /etc/openvpn/keys/Fonera.crt 
--dh /etc/openvpn/keys/dh1024.pem --ifconfig-pool-persist /tmp/ipp.txt --key 
/etc/openvpn/keys/Fonera.key --max-clients 64 --port 1194 --status 
/tmp/openvpn.clients 15 --status-version 2 --verb 3 --pushroute 10.8.0.0 
255.255.254.0 --port 1194 --dev tun-ovpn-u --server 10.8.0.0 255.255.255.0 
--proto udp --client-config-dir /etc/openvpn/ccd/udp

root@Fonera:~# cat /etc/openvpn/ccd/udp/Jon_Phone
ifconfig-push 10.8.0.21 10.8.0.22

Original comment by jon@sprig.gs on 6 May 2012 at 9:30

GoogleCodeExporter commented 9 years ago
I got my current version to crash rather than to do nothing. But still, there 
is a bug if neither the server nor the user sets any dns information. I will 
upload fixed version to the market shortly.

Original comment by arne@rfc2549.org on 6 May 2012 at 9:43

GoogleCodeExporter commented 9 years ago
I am closing the issue since the ifconfig hang should be fixed in 0.4.10. The 
other hang on reconnection is discussed in issue #12

Original comment by arne@rfc2549.org on 8 May 2012 at 11:04