You are not logged in.
Edit:
Okay, it works now, the device kept trying to loading wifi connection that had to be web-authenticated before it worked, blocking the routing.
Hi,
I'm trying to use my laptops ethernet connection to share internet with my phone (nokia n900). I've got the phone and the laptop pinging each other just fine, but I can't ping the outside world with the phone, though I can with the laptop.
The phone's ip is 192.168.2.15, and it's using 192.168.2.14 as a gateway
the following files are all from the laptop
I'm using iptables, here is some output:
sudo iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
MASQUERADE all -- 192.168.2.15 anywhere
MASQUERADE all -- anywhere anywhere
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
sysctl.conf
#
# Kernel sysctl configuration
#
# Disable packet forwarding
net.ipv4.ip_forward=1
# Disable the magic-sysrq key (console security issues)
kernel.sysrq = 0
# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1
ifconfig n900
n900 Link encap:Ethernet HWaddr BA:AD:3F:5C:25:48
inet addr:192.168.2.14 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::b8ad:3fff:fe5c:2548/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1793 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:107555 (105.0 Kb) TX bytes:1448 (1.4 Kb)
/etc/udev/rules.d/99-nokia-n900.rules
SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_ether", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900"
SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_phonet", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900pn"
lines out of rc.conf
n900="n900 192.168.2.14 netmask 255.255.255.255.0"
DAEMONS=(syslog-ng cpufreq netfs crond sensors hal alsa wicd sshd cups iptables)
Last edited by tdphys (2010-01-29 18:27:45)
Offline