veer0001 / 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

Broadcast IP assigned to interface tap0 #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure a bridged openvpn
2. copy the files to the android device
3. install and startup the VPN

What is the expected output? What do you see instead?
expected:  IPAddress: 192.168.122.67

output of:  busybox ifconfig tap0

tap0      Link encap:Ethernet  HWaddr 86:87:E5:E5:30:D3  
          inet addr:192.168.122.67  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::8487:e5ff:fee5:30d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:468 errors:0 dropped:372 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:27998 (27.3 KiB)  TX bytes:984 (984.0 B)

instead I get:
tap0      Link encap:Ethernet  HWaddr 86:87:E5:E5:30:D3  
          inet addr:192.168.122.255  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::8487:e5ff:fee5:30d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:468 errors:0 dropped:372 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:27998 (27.3 KiB)  TX bytes:984 (984.0 B)

What version of the product are you using?
    0.4.12  

Which Android phone are you using?
on Jellybean on Nexus S and on icecream on Galaxy S3

Which firmware version are you using?
gsg3: imm76d.i9300xxblfb
nxs:jro03e

Please provide any additional information below.
I fixed that, i made a shellscript named ovpn.sh which its in:

busybox ifconfig tap0 192.168.122.67 255.255.255.0

then the interface is having the correct IP and I am in.

I installed the latest busybox 1.20.2 from the busybox installer on the market.

my config Files are the following:

client
float
dev tap
script-security 2
#MTU
tun-mtu 1492
#fragment 1300
mssfix

#device name, unter linux nicht mehr auskommentieren (# löschen)
#dev-node vsn-device

#tcp oder udp
proto udp

#Server IP
remote <my-server> 1194

#force authentication
#WICHTIG: hier den COMMON Name vom Server Zertifikat nehmen!
tls-remote server

ca ca.crt
cert <mycrt>.crt
key <mykey>.key

auth SHA1
cipher aes-256-cbc
nobind
comp-lzo
persist-key
persist-tun
verb 4

# Nach dem Verbindungsaufbau wird eine Route zum lokalen Netz vom Server aus 
aufgebaut
# AUSKOMMENTIERT
# Beispiel: Subnetz 192.168.2.0/24
#route 192.168.1.0 255.255.255.0

# Default route ueber VPN
# AUSKOMMENTIERT
#route remote_host 255.255.255.255 net_gateway
#route 0.0.0.0 0.0.0.0 vpn_gateway 

Original issue reported on code.google.com by jai.kish...@gmail.com on 17 Aug 2012 at 11:06

GoogleCodeExporter commented 9 years ago
What address is the server pushing? Can you attach a logcat for this case?

Original comment by lekenst...@gmail.com on 7 Jul 2013 at 9:04

GoogleCodeExporter commented 9 years ago
Duplicate of #134?

Original comment by lekenst...@gmail.com on 7 Jul 2013 at 9:05

GoogleCodeExporter commented 9 years ago
hello,

I flashed in the meantime cyanogen 10.1, there is openvpn preinstalled, with 
that it works fine.

Only if I install openvpn with you openvpn-installer tool in a stock rom, than 
I always have the issue.

Original comment by jai.kish...@gmail.com on 8 Jul 2013 at 5:49