I'd recommend Firestarter for a painless config: <a href="http://www.fs-security.com/docs/connection-sharing.php">http://www.fs-security.com/docs/connection-sharing.php</a> It is a very capable GUI for configuring anything iptables-related.
<br><br>If you still want to tinker with iptables, I recommend you use this site: <a href="http://easyfwgen.morizot.net/gen/">http://easyfwgen.morizot.net/gen/</a> It basically generates a script personalized for your settings.
<br><br>Good luck with these!<br>Chris<br><br><div class="gmail_quote">On Nov 14, 2007 4:41 PM, Matt Morgan <<a href="mailto:minxmertzmomo@gmail.com">minxmertzmomo@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Nov 14, 2007 7:36 AM, Shu Hung (Koala) <<a href="mailto:koalay@gmail.com">koalay@gmail.com</a>> wrote:<br>> Hello all,<br>><br>> I'm using GPRS on my notebook. And I want to share my internet with some
<br>> computers on the same switch. I made a script with reference to wiki. But it<br>> didn't work. After running the script, other PCs can ping my notebook from<br>> <a href="http://192.168.40.1" target="_blank">
192.168.40.1</a> but not any external IPs. While my notebook can visit external<br>> websites normally.<br>><br>> The below is my script. Please tell me what's wrong with it. Thanks!!!!<br>><br>><br>> Koala Yeung
<br><br></div>[snip]<br><br>Sorry, I don't know enough about iptables to answer your question<br>directly. But whenever I've set up routing, I've followed the<br>instructions at<br><br><a href="http://www.brennan.id.au/06-Firewall_Concepts.html" target="_blank">
http://www.brennan.id.au/06-Firewall_Concepts.html</a><br><br>It's written for Fedora, but is probably identical (or nearly so) in Ubuntu.<br><font color="#888888"><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">
ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></font>
</blockquote></div><br><br clear="all"><br>-- <br>Chris