padrevirtual / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

wrong ip address assigned to tap0 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In my vpn the server assign address in the range of 10.9.9.0/
255.255.255.248.

Then I have 10.9.9.0 (network) 10.9.9.1-6 (possible assignable ip range) and 
10.9.9.7 (broadcast).

When I connect successfully (always) an address is assigned to my G1 as 
reported by the server.

But if I check the tap0 settings I see that the broadcast address (10.9.9.7) is 
assigned to the interface instead of the right ip address, so I need to set 
manually in a second step.

Original issue reported on code.google.com by tomboli...@gmail.com on 6 Mar 2010 at 5:44

GoogleCodeExporter commented 8 years ago
I want explain better, the broadcast address is assigned as the ip address eg.:
# ifconfig tap0
tap0: ip 10.9.9.7 mask 255.0.0.0 flags [up broadcast running multicast]

but it should be
tap0: ip 10.9.9.3 mask 255.255.255.248 flags [up broadcast running multicast]

Original comment by tomboli...@gmail.com on 6 Mar 2010 at 7:01

GoogleCodeExporter commented 8 years ago
Sounds like an issue with the config. Does your config work when you start it 
from
the command line (e.g. via adb shell)?

Original comment by friedrich.schaeuffelhut on 6 Mar 2010 at 11:26

GoogleCodeExporter commented 8 years ago
This is a good point. I can confirm that I have the same behaviour.
So this is not a sw error, but a config error.
Thank you for your help.
But what is wrong? Can you help me a little more?

Original comment by tomboli...@gmail.com on 6 Mar 2010 at 11:42

GoogleCodeExporter commented 8 years ago
Would you mind posting your configs (client and server)?

Original comment by friedrich.schaeuffelhut on 7 Mar 2010 at 12:11

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 7 Mar 2010 at 12:14

GoogleCodeExporter commented 8 years ago
Can I post my configs to android-openvpn-settings@googlecode.com?

Original comment by tomboli...@gmail.com on 7 Mar 2010 at 8:51

GoogleCodeExporter commented 8 years ago
Yes.

Original comment by friedrich.schaeuffelhut on 7 Mar 2010 at 9:11

GoogleCodeExporter commented 8 years ago
I find that /system/bin/ifconfig is a link to toolbox and
/system/xbin/ifconfig is a link to busybox
should this difference be the cause of the problem?

Original comment by tomboli...@gmail.com on 7 Mar 2010 at 11:13

GoogleCodeExporter commented 8 years ago
Solved:
cp /system/bin/ifconfig /system/bin/ifconfig.bak 
cp /system/xbin/bb/ifconfig /system/bin

cp /system/bin/route    /system/bin/route.bak
cp /system/xbin/bb/route /system/bin

Reference:
http://forum.cyanogenmod.com/index.php?/topic/357-the-ifconfig-and-route-issue-i
n-cm-42151/

Original comment by tomboli...@gmail.com on 8 Mar 2010 at 12:02

GoogleCodeExporter commented 8 years ago
Just use OpenVPN-Installer to install the newest binary or download it from 

http://github.com/fries/android-external-openvpn/downloads

Original comment by friedrich.schaeuffelhut on 8 Mar 2010 at 12:19