Hi Bud.
I am using DELL Latitude D600 With PC Linux OS 2008 MiniMe on it. I am connected to my Nokia N73 phone via bluetooth and dial it up with kppp as a
www.three.ie internet provider. I have 4 other laptops in ad-hoc wireless network and all of them are connected to my DELL as to the router/internet gate. All I have to do is use a few commands to change my DELL into the wireless internet router
Commands are:
First of all you have to log yourself as root. To do this type into konsole window:
su
and press enter
then type in roots password and press enter again
flush and delete existing firewall rules.
So flush rules by typing in terminal:
iptables -F
iptables -t nat -F
iptables -t mangle -F
Now delete these chains:
iptables -X
iptables -t nat -X
iptables -t mangle -X
Now it's time to save the iptables rules so type:
service iptables save
service iptables restart
Now all rules and chains have been cleared!
Now open /etc/rc.d/rc.local and insert the line:
echo "1" > /proc/sys/net/ipv4/ip_forward
And then save and close the file.
Now asuming that your internet interface is eth0 and the one that will be uses as a gate is called rausb0, type:
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o rausb0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i rausb0 -o eth0 -j ACCEPT
service iptables save
service iptables restart
Note: check if iptables is set to start during boot up.
Or check the status of your iptables service:
chkconfig –list iptables
If level 5 is on then it's ok othewise start the service at level 5 or level 2345.
I hope I have helped
Andy