XDA+GPRS+FREEBSD - Networking

Anyone tried to use the wmodem function through serial or irda with FreeBSD and PPP?
I connected succesfully to my GPRS in windows, but now I want my freebsd machine to get online with my xda. I tried following some instructions on http://www.freebsd.cz/listserv/archive/users-l/2004-July/010255.html, but this did not work. Anyone else has experience with it?
regards

I managed to connect through a serial cable to the XDA and tried connecting with ppp. This is the output of my logs:
Aug 22 16:03:19 fubar ppp[23837]: Phase: Using interface: tun0
Aug 22 16:03:19 fubar ppp[23837]: Phase: deflink: Created in closed state
Aug 22 16:03:19 fubar ppp[23837]: tun0: Phase: PPP Started (interactive mode).
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: /dev/tty: dial gprs
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set device /dev/cua00
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set speed 115200
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set timeout 180
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set ctsrts off
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set accmap 0x000a0000
Aug 22 16:03:21 fubar ppp[23837]: tun0: Command: gprs: set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 10 "" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\\"IP\\",\\"portalmmm.nl\\" OK AT+CGATT=1 OK \\dATDT\\T TIMEOUT 40 CONNECT
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: set logout ABORT BUSY ABO
RT ERROR TIMEOUT 30 "" +++ATH OK-ATH-OK AT+CGATT=0 OK
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: set phone *99#
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: set authname
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: set authkey
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: set ifaddr 10.0.0.1/0 10.
0.0.2/0 255.255.255.0 0.0.0.0
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: add default HISADDR
Aug 22 16:04:14 fubar ppp[22525]: tun0: Command: gprs: enable dns
Aug 22 16:04:14 fubar ppp[22525]: tun0: Phase: bundle: Establish
Aug 22 16:04:14 fubar ppp[22525]: tun0: Phase: deflink: closed -> opening
Aug 22 16:04:14 fubar ppp[22525]: tun0: Phase: deflink: Connected!
Aug 22 16:04:14 fubar ppp[22525]: tun0: Phase: deflink: opening -> dial
Aug 22 16:04:14 fubar ppp[22525]: tun0: Chat: Phone: *99#
Aug 22 16:04:14 fubar ppp[22525]: tun0: Chat: deflink: Dial attempt 1 of 1
Aug 22 16:04:14 fubar ppp[22525]: tun0: Chat: Send: AT\^M
Aug 22 16:04:14 fubar ppp[22525]: tun0: Chat: Expect(10): OK
Aug 22 16:04:24 fubar ppp[22525]: tun0: Chat: Expect timeout
Aug 22 16:04:24 fubar ppp[22525]: tun0: Chat: Send: AT\^M
Aug 22 16:04:24 fubar ppp[22525]: tun0: Chat: Expect(10): OK
Aug 22 16:04:34 fubar ppp[22525]: tun0: Chat: Expect timeout
Aug 22 16:04:34 fubar ppp[22525]: tun0: Warning: Chat script failed
Aug 22 16:04:34 fubar ppp[22525]: tun0: Phase: deflink: dial -> hangup
Aug 22 16:04:34 fubar ppp[22525]: tun0: Phase: deflink: Disconnected!
As you can see, my phone does not react to the AT command. I then connected manually to the phone with the 'cu' command, and AT or ATZ all gave a 0 as reply. (whichs means he does not understand the command).
I captured a session of Windows making a GPRS connection, and i noticed they also used the AT command? Anyone has an idea?

Ok, for who wants to know this:
first use the ATE0V1 command, and then the rest of your AT commands to dial into GPRS. Then this will work like a charm.
grtz

Related

SQUAT failed to open index file

Hi,
everytime I try to connect to my Postfix Server (with Cyrus IMAP) I get the following "error"
Code:
/var/log/mail.log
Apr 21 02:49:47 h137XXXX cyrus/imap[11563]: accepted connection
Apr 21 02:49:51 h137XXXX cyrus/imap[11563]: client id: "vendor" "Microsoft" "os" "Windows Mobile" "os-version" "5.2" "os-revision" "0.7.2" "guid" "294b479XXXXb91003c10fcXXXXb5f4a20a657c09"
Apr 21 02:49:52 h137XXXX cyrus/imap[11562]: seen_db: user XXX opened /var/lib/cyrus/user/c/XXX.seen
Apr 21 02:49:52 h137XXXX cyrus/imap[11562]: open: user XXX opened INBOX
Apr 21 02:49:53 h137XXXX cyrus/imap[11563]: login: 16.106.113.82.net.de.o2.com [82.113.106.16] XXX plaintext User logged in
Apr 21 02:49:54 h137XXXX cyrus/imap[11562]: SQUAT failed to open index file
Apr 21 02:49:54 h137XXXX cyrus/imap[11562]: SQUAT failed
Any idea what is going wrong? Using a Prophet with Windows Mobile 6 (Shadow 1.0).
I know its more or less a Linux question, but an XDA is involved
(/usr/lib/cyrus/bin/reconstruct -r user.XXX - had no effect at all)

[Q] VPN on NAND Android

Good morning,
have installed on my HD2 Android (MDJ 2.2) in the NAND. Now I want to create VPN.
OpenVPN settings downloaded. Superuser downloaded.
Linkages of the ifconfig and route to / system / bin / ifconfig to / system / xbins / bb / ifconfig
created.
OpenVPN binary is / system / xbins / openvpn
OpenVPN Settings settings: insmod = / system / lib / modules / tun.ko
Now I start a terminal session and run VPN:
# Openvpn - config /sdcard/openvpn/config.conf > /sdcard/openvpn/debug.txt
debug.txt file in the route and all the tun0 interface are created successfully.
Code:
Thu Jan 6 08:45:40 2011 us = 717 712 PUSH: Received control message: 'PUSH_REPLY, route
192.168.12.0 255.255.255.0 vpn_gateway route 192.168.18.0 255.255.255.0 vpn_gateway, route
10.40.7.1, ping 10, ping-restart 120, ifconfig 10.40.7.6 10.40.7.5 '
Thu Jan 6 08:45:40 2011 us = 717 956 OPTIONS IMPORT: timers and / or timeouts modified
Thu Jan 6 08:45:40 2011 us = 718 048 OPTIONS IMPORT: --ifconfig/up options modified
Thu Jan 6 08:45:40 2011 us = 718 170 OPTIONS IMPORT: route options modified
Thu Jan 6 08:45:40 2011 us = 719 238 ROUTE DEFAULT_GATEWAY = xx.xx.xx.xx
Thu Jan 6 08:45:40 2011 us = 724 090 TUN / TAP device tun0 opened
Thu Jan 6 08:45:40 2011 us = 724 304 TUN / TAP TX queue length set to 100
Thu Jan 6 08:45:40 2011 us = 724 517 /system/xbins/bb/ifconfig tun0 10.40.7.6 10.40.7.5 pointopoint
mtu 1500
Thu Jan 6 08:45:40 2011 us = 741 912 /system/xbins/bb/route add-net 192.168.12.0 netmask
255.255.255.0 gw 10.40.7.5
Thu Jan 6 08:45:40 2011 us = 749 176 /system/xbins/bb/route add-net 192.168.18.0 netmask
255.255.255.0 gw 10.40.7.5
Thu Jan 6 08:45:40 2011 us = 756 195 /system/xbins/bb/route add-net 10.40.7.1 netmask
255 255 255 255 gw 10.40.7.5
Thu Jan 6 08:45:40 2011 us = 762 023 Initialization Sequence Completed
The traffic stops at 0.02Kbyte. And I get no ping to the outside network. Does anyone have an idea?
When I had Android on SD card it worked just fine with the same settings.
Many thanks also
Mfg
Ok OpenVPN Settings DNS Fixes will clear the Problem
mfg
android vpn
here is android vpn tutorial and connection that i am using now ....
android vpn ​

[Q] OpenVPN para Milestone 2

Alguem já consegui instalar e usar o OpenVPN no milestone 2 com android 2.2 ? podem explicar como fizeram ?
Obrigado
Um. Yah. Might try English.
Sent from my DROID2 using XDA App
I believe he's looking for an explanation on how to use OpenVPN for the milestone 2 or he wants to know how it's made. not sure which. It is Portuguese though.
Sorry,
I am unable to use the openvpn milestone in February with android 2.2
I installed openvpn and openvpn sentings install, busybox.
The options are
Load kernel module tun
lsnmod 'system / lib / modules / tun
Path to configurations
/ sdcard / openvpn
Path to binary openvpn
/ system / xbin / openpvn
client.conf
client
fast-io
dev tun
proto tcp
nobind
remote XXX.XXX.XXX.XXX: 1194
route-method exe
route-delay 2
resolv-retry infinite
persist-key
persist-tun
auth-user-pass
ca / sdcard / openvpn / turquesa.cer
comp-lzo
verb 3
Status / sdcard / openvpn / openvpn_status.log
log-append / sdcard / openvpn / openvpn.log
The error is this
Sun Feb 13 14:38:18 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Feb 13 14:38:18 2011 NOTE: --fast-io is disabled since we are not using UDP
Sun Feb 13 14:38:18 2011 LZO compression initialized
Sun Feb 13 14:38:18 2011 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sun Feb 13 14:38:18 2011 MANAGEMENT: >STATE:1297618698,RESOLVE,,,
Sun Feb 13 14:38:18 2011 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Sun Feb 13 14:38:18 2011 Local Options hash (VER=V4): '69109d17'
Sun Feb 13 14:38:18 2011 Expected Remote Options hash (VER=V4): 'c0103fa8'
Sun Feb 13 14:38:18 2011 Attempting to establish TCP connection with 189.71.249.81:443 [nonblock]
Sun Feb 13 14:38:18 2011 MANAGEMENT: >STATE:1297618698,TCP_CONNECT,,,
Sun Feb 13 14:38:18 2011 MANAGEMENT: CMD 'bytecount 0'
Sun Feb 13 14:38:19 2011 MANAGEMENT: CMD 'bytecount 0'
Sun Feb 13 14:38:20 2011 TCP connection established with XXX.XXX.XXX.XXX:1194
Sun Feb 13 14:38:20 2011 Socket Buffers: R=[131072->131072] S=[131072->131072]
Sun Feb 13 14:38:20 2011 TCPv4_CLIENT link local: [undef]
Sun Feb 13 14:38:20 2011 TCPv4_CLIENT link remote: XXX.XXX.XXX.XXX:1194
Sun Feb 13 14:38:20 2011 MANAGEMENT: >STATE:1297618700,WAIT,,,
Sun Feb 13 14:38:20 2011 MANAGEMENT: CMD 'bytecount 0'
Sun Feb 13 14:38:20 2011 MANAGEMENT: >STATE:1297618700,AUTH,,,
Sun Feb 13 14:38:20 2011 TLS: Initial packet from XXX.XXX.XXX.XXX:1194, sid=9e42ad84 c9a371e6
Sun Feb 13 14:38:20 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Feb 13 14:38:20 2011 MANAGEMENT: CMD 'bytecount 0'
Sun Feb 13 14:38:21 2011 VERIFY OK: depth=1, /C=IT/O=efw/CN=efw_CA
Sun Feb 13 14:38:21 2011 VERIFY OK: depth=0, /C=IT/O=efw/CN=127.0.0.1
Sun Feb 13 14:38:23 2011 WARNING: 'dev-type' is used inconsistently, local='dev-type tun', remote='dev-type tap'
Sun Feb 13 14:38:23 2011 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1544', remote='link-mtu 1576'
Sun Feb 13 14:38:23 2011 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
Sun Feb 13 14:38:23 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Feb 13 14:38:23 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Feb 13 14:38:23 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Feb 13 14:38:23 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Feb 13 14:38:23 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sun Feb 13 14:38:23 2011 [127.0.0.1] Peer Connection Initiated with 189.71.249.81:443
Sun Feb 13 14:38:24 2011 MANAGEMENT: >STATE:1297618704,GET_CONFIG,,,
Sun Feb 13 14:38:24 2011 MANAGEMENT: CMD 'bytecount 0'
Sun Feb 13 14:38:26 2011 SENT CONTROL [127.0.0.1]: 'PUSH_REQUEST' (status=1)
Sun Feb 13 14:38:26 2011 PUSH: Received control message: 'PUSH_REPLY,route-gateway 192.168.0.0,route 192.168.0.0 255.255.255.0,route-gateway 192.168.0.0,ping 8,ping-restart 30,ifconfig 192.168.0.240 255.255.255.0'
Sun Feb 13 14:38:26 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:2: route (2.1.1)
Sun Feb 13 14:38:26 2011 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:6: ifconfig (2.1.1)
Sun Feb 13 14:38:26 2011 OPTIONS IMPORT: timers and/or timeouts modified
Sun Feb 13 14:38:26 2011 OPTIONS IMPORT: route-related options modified
Sun Feb 13 14:38:26 2011 Note: Cannot open TUN/TAP dev /dev/tun: No such file or directory (errno=2)
Sun Feb 13 14:38:26 2011 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Sun Feb 13 14:38:26 2011 MANAGEMENT: Client disconnected
Sun Feb 13 14:38:26 2011 Cannot allocate TUN/TAP dev dynamically
Sun Feb 13 14:38:26 2011 Exiting
Thiago
You might want to put. " CODE /CODE " (with brackets around both without perenths) tags around that for readability and space.
Sent from my DROID2 using XDA App

[Problem] [CM9] Cannot open TUN/TAP dev openvpn: No such file or directory (errno=2)

Hello!
I have installed app "OpenVPN Settings" to setup a VPN connection to my OpenVPN server.
When I start the app, I can see this in the corresponding client log:
Sat Jun 30 11:21:28 2012 OpenVPN 2.2.2 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Jun 24 2012
Sat Jun 30 11:21:28 2012 MANAGEMENT: TCP Socket listening on 127.0.0.1:26370
Sat Jun 30 11:21:28 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jun 30 11:21:28 2012 Need password(s) from management interface, waiting...
Sat Jun 30 11:21:31 2012 MANAGEMENT: Client connected from 127.0.0.1:26370
Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'state'
Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'state on'
Sat Jun 30 11:21:31 2012 MANAGEMENT: CMD 'bytecount 0'
Sat Jun 30 11:21:58 2012 MANAGEMENT: CMD 'password [...]'
Sat Jun 30 11:21:59 2012 WARNING: file '/sdcard/openvpn/mobile2.key' is group or others accessible
Sat Jun 30 11:21:59 2012 WARNING: file '/sdcard/openvpn/static.key' is group or others accessible
Sat Jun 30 11:21:59 2012 Control Channel Authentication: using '/sdcard/openvpn/static.key' as a OpenVPN static key file
Sat Jun 30 11:21:59 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jun 30 11:21:59 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jun 30 11:21:59 2012 LZO compression initialized
Sat Jun 30 11:21:59 2012 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Jun 30 11:21:59 2012 Socket Buffers: R=[110592->131072] S=[110592->131072]
Sat Jun 30 11:21:59 2012 MANAGEMENT: >STATE:1341048119,RESOLVE,,,
Sat Jun 30 11:21:59 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Jun 30 11:21:59 2012 Local Options hash (VER=V4): '13a273ba'
Sat Jun 30 11:21:59 2012 Expected Remote Options hash (VER=V4): '360696c5'
Sat Jun 30 11:21:59 2012 UDPv4 link local: [undef]
Sat Jun 30 11:21:59 2012 UDPv4 link remote: 77.2.182.171:1194
Sat Jun 30 11:21:59 2012 MANAGEMENT: >STATE:1341048119,WAIT,,,
Sat Jun 30 11:21:59 2012 MANAGEMENT: CMD 'bytecount 0'
Sat Jun 30 11:21:59 2012 MANAGEMENT: CMD 'bytecount 0'
Sat Jun 30 11:22:00 2012 MANAGEMENT: >STATE:1341048120,AUTH,,,
Sat Jun 30 11:22:00 2012 TLS: Initial packet from 77.2.182.171:1194, sid=6be307be 1c6229c8
Sat Jun 30 11:22:00 2012 MANAGEMENT: CMD 'bytecount 0'
Sat Jun 30 11:22:02 2012 VERIFY OK: depth=1, /C=DE/ST=BW/L=location/O=OpenVPN/OU=orga/CN=orga/name=orga/[email protected]
Sat Jun 30 11:22:02 2012 VERIFY OK: nsCertType=SERVER
Sat Jun 30 11:22:02 2012 VERIFY OK: depth=0, /C=DE/ST=BW/L=location/O=OpenVPN/OU=orga/CN=net1/name=orga/[email protected]
Sat Jun 30 11:22:08 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jun 30 11:22:08 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jun 30 11:22:08 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jun 30 11:22:08 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jun 30 11:22:08 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Jun 30 11:22:08 2012 [net1] Peer Connection Initiated with 77.2.182.171:1194
Sat Jun 30 11:22:09 2012 MANAGEMENT: >STATE:1341048129,GET_CONFIG,,,
Sat Jun 30 11:22:09 2012 MANAGEMENT: CMD 'bytecount 0'
Sat Jun 30 11:22:10 2012 SENT CONTROL [net1]: 'PUSH_REQUEST' (status=1)
Sat Jun 30 11:22:10 2012 PUSH: Received control message: 'PUSH_REPLY,route-gateway 192.168.178.1,route 192.168.178.0 255.255.255.0,route 192.168.178.1,ping 10,ping-restart 120,ifconfig 192.168.178.101 255.255.255.0'
Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: route options modified
Sat Jun 30 11:22:10 2012 OPTIONS IMPORT: route-related options modified
Sat Jun 30 11:22:10 2012 ROUTE default_gateway=10.66.180.1
Sat Jun 30 11:22:10 2012 Note: Cannot open TUN/TAP dev openvpn: No such file or directory (errno=2)
Sat Jun 30 11:22:10 2012 MANAGEMENT: >STATE:1341048130,ASSIGN_IP,,192.168.178.101,
Sat Jun 30 11:22:10 2012 /system/bin/ip link set dev up mtu 1500
Usage: ip link add [link DEV] [ name ] NAME
[ txqueuelen PACKETS ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
type TYPE [ ARGS ]
ip link delete DEV type TYPE [ ARGS ]
ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]
[ arp { on | off } ]
[ dynamic { on | off } ]
[ multicast { on | off } ]
[ allmulticast { on | off } ]
[ promisc { on | off } ]
[ trailers { on | off } ]
[ txqueuelen PACKETS ]
[ name NEWNAME ]
[ address LLADDR ]
[ broadcast LLADDR ]
[ mtu MTU ]
[ netns PID ]
[ netns NAME ]
[ alias NAME ]
[ vf NUM [ mac LLADDR ]
[ vlan VLANID [ qos VLAN-QOS ] ]
[ rate TXRATE ] ]
[ spoofchk { on | off} ] ]
[ master DEVICE ]
[ nomaster ]
ip link show [ DEVICE | group GROUP ]
TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can | bridge }
Sat Jun 30 11:22:10 2012 MANAGEMENT: Client disconnected
Sat Jun 30 11:22:10 2012 Linux ip link set failed: external program exited with error status: 255
Sat Jun 30 11:22:10 2012 Exiting
My understanding is that the tun-module is not used / loaded.
Checking on the device with lsmod, I get this output:
[email protected]:/ $ lsmod
Si4709_driver 17043 0 - Live 0xbf015000
j4fs 65970 1 - Live 0xbf000000 (P)
Is there a known problem or bug with tun-module with CM9?
I thought tun is not integrated in the kernel?
If this is wrong or simply not working, I assume I have to install a tun.ko on the device in /system/lib/modules. Where can I get this file?
Or is it advised to install another kernel?
If yes, which kernel is recommended?
THX
RESOLVED
Modification of client configuration:
comment out parameter
dev-node openvpn

AFTV stick (OS 5.2.1.0) and OpenVPN

Hello all,
I am trying to run openvpn on the aftv stick (OS 5.2.1.0) that has been rooted. There are reports of successes online (cannot post link apprently)
I performed the following steps:
1) Root the device using kingoroot
2) Installed the openvpn installer manually (could not do it through the GUI), that involved transferring the executable openvpn to /system/xbin
3) Installed BusyBox
4) Pushed my ovpn configuration files to /sdcard/openvpn
5) Installed the openVPN settings apk
6) Logged into abd shell and ran the following command:
Code:
# su
# openvpn --iproute /system/xbin/ip --config my_file.ovpn
I had to specify the iproute because openvpn looks for iproute2 in /sbin/ip and not /system/xbin/ip.
Although it connects, the public IP does not change..... FAIL
Here is the log of the command above:
Code:
Sat Jul 9 17:52:55 2016 OpenVPN 2.1.1 jc v0.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Aug 7 2015
Sat Jul 9 17:52:55 2016 WARNING: file 'pass.txt' is group or others accessible
Sat Jul 9 17:52:55 2016 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jul 9 17:52:55 2016 NOTE: --fast-io is disabled since we are not using UDP
Sat Jul 9 17:52:55 2016 LZO compression initialized
Sat Jul 9 17:52:55 2016 Attempting to establish TCP connection with 195.154.235.91:443 [nonblock]
Sat Jul 9 17:52:56 2016 TCP connection established with 195.154.235.91:443
Sat Jul 9 17:52:56 2016 TCPv4_CLIENT link local: [undef]
Sat Jul 9 17:52:56 2016 TCPv4_CLIENT link remote: 195.154.235.91:443
Sat Jul 9 17:52:56 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jul 9 17:52:57 2016 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1544', remote='link-mtu 1576'
Sat Jul 9 17:52:57 2016 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
Sat Jul 9 17:52:57 2016 [TG-OVPN-CA] Peer Connection Initiated with 195.154.235.91:443
Sat Jul 9 17:52:59 2016 TUN/TAP device tun0 opened
Sat Jul 9 17:52:59 2016 /system/xbin/ip link set dev tun0 up mtu 1500
Sat Jul 9 17:52:59 2016 /system/xbin/ip addr add dev tun0 local 10.8.0.14 peer 10.8.0.13
Sat Jul 9 17:52:59 2016 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
ip: RTNETLINK answers: No such process
Sat Jul 9 17:52:59 2016 ERROR: Linux route add command failed: external program exited with error status: 2
Sat Jul 9 17:52:59 2016 Initialization Sequence Completed
^CSat Jul 9 17:53:13 2016 event_wait : Interrupted system call (code=4)
Sat Jul 9 17:53:13 2016 /system/xbin/ip addr del dev tun0 local 10.8.0.14 peer 10.8.0.13
Sat Jul 9 17:53:13 2016 SIGINT[hard,] received, process exiting
iproute /system/xbin/ip --config TorGuard.France.ovpn <
Sat Jul 9 17:53:52 2016 OpenVPN 2.1.1 jc v0.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Aug 7 2015
Sat Jul 9 17:53:52 2016 WARNING: file 'pass.txt' is group or others accessible
Sat Jul 9 17:53:52 2016 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jul 9 17:53:52 2016 NOTE: --fast-io is disabled since we are not using UDP
Sat Jul 9 17:53:52 2016 LZO compression initialized
Sat Jul 9 17:53:52 2016 Attempting to establish TCP connection with 195.154.235.91:443 [nonblock]
Sat Jul 9 17:53:53 2016 TCP connection established with 195.154.235.91:443
Sat Jul 9 17:53:53 2016 TCPv4_CLIENT link local: [undef]
Sat Jul 9 17:53:53 2016 TCPv4_CLIENT link remote: 195.154.235.91:443
Sat Jul 9 17:53:53 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jul 9 17:53:54 2016 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1544', remote='link-mtu 1576'
Sat Jul 9 17:53:54 2016 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
Sat Jul 9 17:53:54 2016 [TG-OVPN-CA] Peer Connection Initiated with 195.154.235.91:443
Sat Jul 9 17:53:56 2016 TUN/TAP device tun0 opened
Sat Jul 9 17:53:56 2016 /system/xbin/ip link set dev tun0 up mtu 1500
Sat Jul 9 17:53:56 2016 /system/xbin/ip addr add dev tun0 local 10.8.0.14 peer 10.8.0.13
Sat Jul 9 17:53:56 2016 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
ip: RTNETLINK answers: No such process
Sat Jul 9 17:53:56 2016 ERROR: Linux route add command failed: external program exited with error status: 2
Sat Jul 9 17:53:56 2016 Initialization Sequence Completed
It seems that the key in the log are these two lines:
Code:
Sat Jul 9 17:53:56 2016 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
ip: RTNETLINK answers: No such process
Sat Jul 9 17:53:56 2016 ERROR: Linux route add command failed: external program exited with error status: 2
I guess this is a problem with the routing table, however this is the limit of my knowledge.
Although most people suggest using a DDWRT router for this, it seems strange to me that it won't work even on this highly modified version of android.
Any help would be very much appreciated
EDIT: OK I realised the cause of the error came from the fact that I was using a bad openvpn binary when I was installing it (step 2) (sorry no links because of xda policy) manually. It explains why I had to specify the --iproute since it was pointing to it in /sbin when it was in /xbin. The error is because it uses the native ifconfig, and we need it to use the busybox ifconfig
If I extract the correct one (with busybox bin) I get:
Code:
error: only position independent executables (PIE) are supported.[\CODE]
Apparently this is a new security feature from google. This means that openvpn needs to be compiled with PIE and the correct paths for the xbin ip and ifconfig.
Any one knows how to do that?
melclic said:
Hello all,
I am trying to run openvpn on the aftv stick (OS 5.2.1.0) that has been rooted. There are reports of successes online (cannot post link apprently)
I performed the following steps:
1) Root the device using kingoroot
2) Installed the openvpn installer manually (could not do it through the GUI), that involved transferring the executable openvpn to /system/xbin
3) Installed BusyBox
4) Pushed my ovpn configuration files to /sdcard/openvpn
5) Installed the openVPN settings apk
6) Logged into abd shell and ran the following command:
I had to specify the iproute because openvpn looks for iproute2 in /sbin/ip and not /system/xbin/ip.
Although it connects, the public IP does not change..... FAIL
Here is the log of the command above:
It seems that the key in the log are these two lines:
I guess this is a problem with the routing table, however this is the limit of my knowledge.
Although most people suggest using a DDWRT router for this, it seems strange to me that it won't work even on this highly modified version of android.
Any help would be very much appreciated
EDIT: OK I realised the cause of the error came from the fact that I was using a bad openvpn binary when I was installing it (step 2) (sorry no links because of xda policy) manually. It explains why I had to specify the --iproute since it was pointing to it in /sbin when it was in /xbin. The error is because it uses the native ifconfig, and we need it to use the busybox ifconfig
If I extract the correct one (with busybox bin) I get:
Code:
error: only position independent executables (PIE) are supported.[\CODE]
Apparently this is a new security feature from google. This means that openvpn needs to be compiled with PIE and the correct paths for the xbin ip and ifconfig.
Any one knows how to do that?[/QUOTE]
Instalar
Click to expand...
Click to collapse
Jael1 said:
Instalar
Click to expand...
Click to collapse
Cheers for the reply. Care to elaborate?
Hi got some News?
hi,
iam connected, but my ip is the same ?
i got some errors:
Authenticate/Decrypt packet error: packet HMAC authentication failed
any ideas?
I had the same problem.
Just installed the "OpenVPN Connect" Client, works like a charm!
LeBroesel said:
I had the same problem.
Just installed the "OpenVPN Connect" Client, works like a charm!
Click to expand...
Click to collapse
how do u installed it?
i only have a .ca & .ovpn file
cant connect .-(
got fragment error
when I run Open-VPN-Connect, it connects but then the Fire TV Stick says it does not have network connection anymore.
same with app from my VPN Provider.
when trying to run OpenVPN-Installer-app it keeps failing to install...
Is it possible to install openvpn in kodi as a plugin?
I think it is not possible to get openvpn workbon the stick as apk.
Mayby in kodi?
On openelec it works!
But Android is a little bit different.
Some suggestions?
I sideloaded the Apk from APKDownloader.
I have a rooted FireTV 2 with OS 5.2.
And I also sideloaded and installed BusyBox.
On firetv2 it's working but not on the stick.

Categories

Resources