Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey, i'm running red-hat 8.0, and trying to share my net connection with an XP machine. The setup goes like this. Broadband connection into my eth0, and lan connection to the XP machine on my eth1. I've turned on ipv4 forwarding (i think), and pointed the XP machine's gateway/dns lookups at my red-hat machine. I have no clue where to go from here, any help would be greatly appreciated.
I would bow or something, but I just spent the last 2 hours trying to fix my own firewall after I screwed with it to come up with that answer...doh! Nothing better than iptables to teach some humility.
There are a couple of ways to do it. First you can just type each rule in from the command line one after another keeping in mind that your adding them to the bottom of the chain (-A means append). Then once your done do:
service iptables restart
Or you can put all these together in a firewall script. Just make a normal text file with your favorite text editor and save it as whatever name you like. Then have it run at startup, usually by adding an entry in /etc/rc.d/rc.local that points to the path of the script. Just make sure that the script is executable using the chmod command.
Probably a good idea to look at the howto's first to get an idea of what your doing and to get some other rules that you'll need for packet filtering. Whatever you do (and I stress whatever!) don't edit the actual iptables file in /etc/sysconfig/iptables. Bad things happen when you do this (see my previous post above).
HTH
Last edited by Capt_Caveman; 03-26-2003 at 09:44 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.