i searched he internet and got some overall idea of the procedure but i will just have one chance to set them up cause i do not have a monitor so i will use my frieds monitor both box are redhat 9.0 one laptop and my new box pc fallowing is the steps i found on the internet are there any problems is it going to work or do you know a easier and more secure way if i do these can i add some firewall rules to thx.... Manual Setup for RedHat or Mandrake
Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1. code:# Controls IP packet forwarding net.ipv4.ip_forward = 1 In order for the changes to take effect, at the command line, type: service network restart Now you need to setup IP forwarding and Masquerading. First, you need to flush the old rules. So open a console window and at the command line, type: code:service iptables stop service iptables save 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 -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. Don't forget to start iptables: service iptables start -- Nurullah Akkaya [EMAIL PROTECTED] Registered Linux User #301438 What lies behind us and what lies before us are tiny matters compared to what lies within us. "If at first an idea is not absurd, there is no hope for it" Albert Einstein -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list