Hi,
ich besitzte sei Weihnachten ein HTX Hero und wollte dieses nun als Modem am Laptop nutzen.
Ich habe dazu 2 Möglichkeiten gefunden:
1:
http://android-tests.blogspot.com/2009/1…c-hero-als.html
2:
http://code.google.com/p/azilink/
Möglichkeit 1:
Ich lade das Modul "rndis_host" und führe ein "dhcpcd usb0" aus.
|
Quellcode
|
1
2
3
4
5
6
7
8
|
dhcpcd usb0
dhcpcd: version 5.1.4 starting
dhcpcd: usb0: broadcasting for a lease
dhcpcd: usb0: offered 192.168.100.100 from 192.168.100.254
dhcpcd: usb0: acknowledged 192.168.100.100 from 192.168.100.254
dhcpcd: usb0: checking for 192.168.100.100
dhcpcd: usb0: leased 192.168.100.100 for 864000 seconds
dhcpcd: forking to background
|
/etc/resolv.conf
|
Quellcode
|
1
2
3
4
5
|
# Generated by dhcpcd from usb0
# /etc/resolv.conf.head can replace this line
domain local
nameserver 192.168.100.254
# /etc/resolv.conf.tail can replace this line
|
Ich komm aber nicht ins Internet. Ein "ping google.de" z.B. bringt keine Ausgabe.
ifconfig usb0:
|
Quellcode
|
1
2
3
4
5
6
7
|
usb0 Protokoll:Ethernet Hardware Adresse 0a:56:c8:b8:f2:2e
inet Adresse:192.168.100.100 Bcast:192.168.100.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:1152 (1.1 KiB) TX bytes:5354 (5.2 KiB)
|
Möglichkeit 2:
adp forward tcp:41927 tcp:41927 ausführen
Die /etc/resolv.conf editieren:
|
Quellcode
|
1
|
nameserver 192.168.56.1
|
Azilink auf dem Handy starten
Als root "openvpn azilink.ovnp ausführen.
azilink.ovnp
|
Quellcode
|
1
2
3
4
5
6
7
8
9
|
dev tun
remote 127.0.0.1 41927 tcp-client
ifconfig 192.168.56.2 192.168.56.1
route 0.0.0.0 128.0.0.0
route 128.0.0.0 128.0.0.0
socket-flags TCP_NODELAY
keepalive 10 30
dhcp-option DNS 192.168.56.1
|
openvnp:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
|
Wed Jan 6 20:17:41 2010 OpenVPN 2.1.0 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan 6 2010
Wed Jan 6 20:17:41 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Jan 6 20:17:41 2010 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
Wed Jan 6 20:17:41 2010 TUN/TAP device tun0 opened
Wed Jan 6 20:17:41 2010 /sbin/ifconfig tun0 192.168.56.2 pointopoint 192.168.56.1 mtu 1500
Wed Jan 6 20:17:41 2010 WARNING: potential route subnet conflict between local LAN [192.168.123.0/255.255.255.0] and remote VPN [128.0.0.0/128.0.0.0]
Wed Jan 6 20:17:41 2010 Attempting to establish TCP connection with 127.0.0.1:41927 [nonblock]
Wed Jan 6 20:17:41 2010 TCP connection established with 127.0.0.1:41927
Wed Jan 6 20:17:41 2010 TCPv4_CLIENT link local: [undef]
Wed Jan 6 20:17:41 2010 TCPv4_CLIENT link remote: 127.0.0.1:41927
Wed Jan 6 20:17:51 2010 Peer Connection Initiated with 127.0.0.1:41927
Wed Jan 6 20:17:52 2010 Initialization Sequence Completed
|
ifconfig tun0:
|
Quellcode
|
1
2
3
4
5
6
7
|
tun0 Protokoll:UNSPEC Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet Adresse:192.168.56.2 P-z-P:192.168.56.1 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:100
RX bytes:80 (80.0 B) TX bytes:428 (428.0 B)
|
ping google.de bringt keine Ausgabe.
Kernel ist 2.6.32-gentoo-r1 amd64
Hat jemand eine Idee an was es liegen kann?
dsiggi