longzuyuan / ics-openvpn

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

Config importer can't recognize ifconfig point-to-point tunnel #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Set up a static key configuration server as per 
http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-k
ey-mini-howto.html

2. Import or manually set up configuration in ics-openvpn, set the IPv4 Address 
setting to "10.8.0.2 10.8.0.1".

3. Check the generated config and notice that this has been set to "ifconfig 
10.8.0.2 10.8.0.1 255.255.255.255". Connect to the server to verify config 
works.

4. Export the generated config, delete the profile, then import it back from 
the generated config.

What is the expected output? What do you see instead?
Expect the configuration file to be successfully imported. Instead get an error 
stating the importer expects 2 arguments but got three. The importer needs to 
be able to recognize a point-to-point ifconfig setting.

What mobile phone are you using?
Galaxy Nexus (toro), Nexus 7 (grouper)

Which Android Version and stock ROM or aftermarket like cyanogenmod?
Galaxy Nexus stock 4.0.4, Nexus 7 stock 4.1.1

Please provide any additional information below.

Original issue reported on code.google.com by jas...@gmail.com on 20 Aug 2012 at 12:27

GoogleCodeExporter commented 9 years ago
When I do this I get the line ifconfig 10.8.0.2 255.255.255.255 in the 
generated config and no the one with 3 ips. Not that Openvpn for Android does 
not care about gateways/p2p partner ips. So the generated config of Openvpn for 
Android like likely not work on other Openvpn versions.

Original comment by arne@rfc2549.org on 20 Aug 2012 at 12:40

GoogleCodeExporter commented 9 years ago
The dialog box for ipv4 ip address asks for an address/netmask in CIDR format. 
It should allow instead a pair (local and remote) of ip addresses.

If I enter a pair of ip addresses, the generated config is wrong:

ifconfig 172.16.53.3 172.16.3.53 255.255.255.255

Original comment by niccolo....@gmail.com on 21 Aug 2012 at 9:04

GoogleCodeExporter commented 9 years ago
Yes if you enter a pair of IPs the config is wrong. Just enter only the first 
IP e.g. 172.16.53.3/32 The remote IP is not needed or being used.

Original comment by arne@rfc2549.org on 22 Aug 2012 at 7:33

GoogleCodeExporter commented 9 years ago
OK, if you enter the IP_address/32 it works, it also gets the correct remote 
p-t-p address, I suppose from the remote.

It is just annoying to see the warning message in the debug log.

Thanks.

Original comment by niccolo....@gmail.com on 22 Aug 2012 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by arne@rfc2549.org on 23 Aug 2012 at 8:21