Installing debian - kernel - internet access on phone

Eric Smith es at fruitcom.com
Tue May 24 16:19:33 CEST 2011


Thanks Timo.

Timo Juhani Lindfors said:
> 1) How about
> 
> iptables -nvL
> iptables -nvL -t nat
> 
> on the PC?

eric at debian:~$ sudo iptables -nvL
WARNING: All config files need .conf: /etc/modprobe.d/libpisock9, it 
will be ignored in a future release.
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

eric at debian:~$ sudo iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

 
> 2) And /etc/resolv.conf on the phone?

root at om-gta02 ~ # cat /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220


> 3) Try "ping -n 192.168.4.200" on the phone?


root at om-gta02 ~ # ping -n 192.168.4.200
ping: invalid option -- 'n'
BusyBox v1.18.4 (2011-05-19 22:07:46 CEST) multi-call binary.

Usage: ping [OPTIONS] HOST

Send ICMP ECHO_REQUEST packets to network hosts

Options:
	-4,-6		Force IP or IPv6 name resolution
	-c CNT		Send only CNT pings
	-s SIZE		Send SIZE data bytes in packets (default:56)
	-I IFACE/IP	Use interface or IP address as source
	-W SEC		Seconds to wait for the first response 
(default:10)
			(after all -c CNT packets are sent)
	-w SEC		Seconds until ping exits (default:infinite)
			(can exit earlier with -c CNT)
	-q		Quiet, only displays output at start
			and when finished

root at om-gta02 ~ # ping 192.168.4.200
PING 192.168.4.200 (192.168.4.200): 56 data bytes
<tick tock>  ^C
--- 192.168.4.200 ping statistics ---
106 packets transmitted, 0 packets received, 100% packet loss

oot at om-gta02 ~ # ping 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: seq=0 ttl=64 time=0.000 ms
64 bytes from 192.168.0.200: seq=1 ttl=64 time=0.000 ms
^C




More information about the community mailing list