View Single Post
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#7
Originally Posted by ivanrajkovic View Post
Thanks, I just have a question:

If I would only want to connect to my N900 with wifi but without using it as a hot-spot (so, without gprs0), I guess I would just need to take out these lines:

HOSTIDEV="gprs0"
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o $HOSTIDEV -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

would I need to keep:
iptables -t nat -F

I would say that I don't need iptables at all, is that right?

i.
Yes, you could just leave the iptables alone if you just want to connect to N900 without a tethering need.

And you don't need that modprobe ipt_MASQUERADE as well.

However, one thing you must note that if you're using Windows PC to connect to any WiFi, it always tries to make it as the default route, i.e. all internet traffice request would go to WiFi. Unless you made change to this default behaviour, you might not be able to go to internet via your private network of your PC when you're connecting to WiFi.

Last edited by 9000; 2011-05-27 at 02:27.
 

The Following User Says Thank You to 9000 For This Useful Post: