Pls,
I have install fedora core 2 and connected its to the internet and it working perfectly but my problem is, I want to share the connection with my client computer without using a proxy server. Can somebody help me out?
Thank You
Kwame Amoah.
Create the script as below and follow the instruction in same
# Defines the location of iptables executables.
iptables=/sbin/iptables
#Clears if any old iptable rules/ policies are there.
iptables --flush -t nat
# Now we will do Masquerading ie. we are doing NAT.
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
# Enabling packet forwarding.
echo 1 > /proc/sys/net/ipv4/ip_forward
# Copy this file to /etc/rc.d/rc.nat
# make it executable : chmod 7555 /etc/rc.d/rc.nat
# Now add following lines in rc.local
# /etc/rc.d/rc.nat
# this will allow to set your machine as gateway at every startup