View Single Post
Posts: 1 | Thanked: 0 times | Joined on May 2010 @ Żarki
#4
Originally Posted by phedders View Post
You can simply do

Code:
iptables -D <rule> 2>/dev/null || true
iptables -A <rule>
Will make sure not to double the rules up.
Hello,

I also do not like to use PPP and yesterday I attempted to set up my N900 as a tether over USB cable.

I use Slackware 13 on my ACER. I set up the laptop's USB0 adapter to 192.168.2.14 address and it worked at once. I was able to ping both ways, ssh worked too.

Then I connected the phone to 3G network. I corrected the default route and the net worked from N900 console. I was also able to ping my laptop too. So, both interfaces gprs0 and usb0 are working at the same time.

However, the net did not work on the laptop. I set the gateway to N900 IP address, put correct DNS addresses and still no net. Apparently, my N900 is not routing the packets from my laptop. I checked if IP forwarding on N900 is on and it was set 1.

You make references to iptables on N900, but I was unable to find iptables on my N900. Where to get the iptables for N900?

Arachnist, can you write me some intructions how to make N900 route packets incoming from USB0 to GPRS0? Where is the script that sets the firewall?

I'd really appreciate any help, since I am new to N900, though I am a Linux veteran ;-)

Oliwer