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.
Hello
Today i installed redhat linux because I lost my windows 2000 cd when i was moving. So far i think linux Is great. But now i need to share my internet connection to windows xp computers. So can any 1 help me setup DHCP and interenet connection sharing on redhat 9?
P.S I'm a newbie to linux so please can you say it in easy word.
To access administration tools, go to the Main Menu Button (on the Panel) => System Settings.
I don't remember if RedHat has an Internet Connection Sharing wizard.
If you can't find it, I can tell you how to set it up manually.
I will need to know if your Linux has two network cards
or are you using a router ?
Network Layout ?
thanks for your relpy. sorry i cant find the administration tools. I have got two NIC cards installed and connected. all my computers are connected using a 5-port switch. ANd i have given all my computers static ip address from 192.168.0.5-192.168.0.10
The following commands will create new rules for your system.
Code:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
NOTE: In this case, eth0 connects to the internet and eth1 connects to the local network.
You may need to switch eth0 and eth1.
The ifconfig command will give you more information.
To save iptables modifications, at the command line, type service iptables save.
IPtable rules are located in the /etc/sysconfig/iptables file.
if all you get is output with rows of column headers with no rules underneath it isn't turned on. If you went throught the exact procedure above thus saving the rules
/etc/init.d/iptables start
then
chkconfig --level 35 iptables on
which turns them on automtically at boot
of course this only relates to if they're turned on or not nothing else
also assumes you've rebooted at some point and the tables have been flushed since you initially applied the rules
Last edited by Looking_Lost; 07-28-2003 at 05:34 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.