Thread
:
Internet forwarding in N810
View Single Post
JasonWoof
2009-01-28 , 23:21
Posts: 6 | Thanked: 0 times | Joined on Jan 2009
#
7
Hi,
I also want to get NAT working on my tablet.
I've got my tablet and PC hooked up with the USB cable, and I'm running ethernet over USB there.
My tablet is online via wifi, and my laptop isn't. I've been running privoxy on the tablet so I can browse on my PC, but I'd like to get NAT working, so I can use other protocols, direct ssh, etc.
Thanks for the kernel modules and libs! I tried those, and loaded all the modules.
I don't understand much about iptables, so I googled for tutorials. I tried to follow this:
http://www.revsys.com/writings/quicktips/nat.html
which basically says to do this:
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
but on the n810 it wouldn't take the --state arg. I could run it without the -m state and --state options, but I don't think that works... Do I need another kernel module for state? Or should I be doing totally different iptables commands to set up NAT?
I tried all that stuff, but without the state options, and I don't get any response when I try to ping through it, or ssh through. here's my iptables -v -L:
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
2 168 ACCEPT 0 -- usb0 wlan0 anywhere anywhere
0 0 ACCEPT 0 -- wlan0 usb0 anywhere 192.168.2.0/24
Thanks!
Edit: oh, I added the -d 192.168.2.0/24 later, that didn't seem to help either.
Last edited by JasonWoof; 2009-01-28 at
23:24
. Reason: forgot one detail
Quote & Reply
|
JasonWoof
View Public Profile
Send a private message to JasonWoof
Find all posts by JasonWoof