Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: shani on January 04, 2006, 06:37:44 AM
-
HI I am using Fedora Core 4 and i have followed the script mentioned in the tutorial i.e
[[[[[[[[[[[
# 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 ]]]]]]]]]]]]]]
where eht1 is external interfae and eth0 is internal interface, but it is not working while i have done this on my RED hat llinux 8
what should i do in this please guide me
thanks in adavance.
regard
Akmal
-
could any reply me or not?
shani
-
good day,
what NAT do you want to do sir?
-
i want to use NAT to make this machine as router for my private network.
so that all the private trafic will use this machine as gateway for internet.
thanks
-
try to run those command on shell.. and see hw many of them executed successfully.. and then give the result..
meanwhile u can also try firestarter to do NAT.. it will be easier for u.