longzuyuan / ics-openvpn

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

ifconfig line imported wrong #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When important a configuration, the following line should be imported as-is:

ifconfig 10.254.217.53 10.254.217.54

But somehow it's changed to:

ifconfig 10.254.217.53 255.255.255.255

If I then try to fix this in the UI, the resulting line ends up being:

ifconfig 10.254.217.53 10.254.217.54 255.255.255.255

Original issue reported on code.google.com by ni...@peen.net on 10 Jul 2012 at 11:57

GoogleCodeExporter commented 9 years ago
Yes. The VPN Service API does not care about the gateway. And a p2p config is 
converted to a /32 netmask. Openvpn does not need the gateway. 

Original comment by arne@rfc2549.org on 10 Jul 2012 at 4:57

GoogleCodeExporter commented 9 years ago
The one in the original config file works fine. The one below fails.

ifconfig 10.254.217.53 255.255.255.255

I understand your reasoning may be correct, but the result is that users import 
known-to-work config files and can't get it to work with ics-openvpn.

Original comment by ni...@peen.net on 10 Jul 2012 at 5:02

GoogleCodeExporter commented 9 years ago
The known working config should also work in ics-openvpn. I will if I can 
convert the netmask into a /31 or /30 but specifiying a p2p gateway makes no 
sense. It is ignored anyway.

Original comment by arne@rfc2549.org on 10 Jul 2012 at 5:15

GoogleCodeExporter commented 9 years ago
Understood. I checked again and it seems the warning can indeed be ignored. 
("Since you are using --dev tun with a point-to-point topology, the second 
argument to --config must be an IP address. You are using something 
(255.255.255.255) that looks more like a netmask. (silience this warning with 
--config-nowarn)".)

Original comment by ni...@peen.net on 10 Jul 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Ah well. Yes I will look into ignoring the warning.

Original comment by arne@rfc2549.org on 10 Jul 2012 at 5:36

GoogleCodeExporter commented 9 years ago
ifconfig-nowarn has been added to config

Original comment by arne@rfc2549.org on 19 Jul 2012 at 8:50