Setting up a network and sharing internet

Chris Friedt Chfriedt-0jnyayh6ARPqzrOJbVgLALDks+cytr/Z at public.gmane.org
Thu Aug 18 21:31:35 UTC 2005


1) crossover, yes if connecting directly (w/o switch/hub)
2) NAT would be recommended, and in this case, IP Masquerading would be
useful
3) since the 2nd machine uses windows XP you would probably benefit
from using samba
4) iptables is quite easy to control, and with a little experience you
can tweak it, along with other userspace tools, to do practically
anything you like.

I'm going to post this as a gzipped tarball for you to download, since
it's quite lengthy
http://www.perpetual-notion.myftp.org/iptables_howto.tar.gz 

along with my howto, there are a few other scripts

1) the firewall_h.sh file, contains all of the bash functions utilized
throughout the actual script
- you may need to edit a few settings in this, and also edit the
filenames / where they're saved for your system
2) the firewall.sh file, contains the actual firewall script
3) /etc/init.d/firewall (may have . functions dependencies from gentoo)
starts / stops the firewall when necessary
i.e. /etc/init.d/firewall {start|stop|restart}
- you may need to edit a few settings in this, and also edit the
filenames / where they're saved for your system


njoy!

~/Chris


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list