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

Title: NAT in Fedora Core 4
Post 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
Title: NAT in Fedora Core 4
Post by: shani on January 05, 2006, 08:23:42 AM
could any reply me or not?


shani
Title: NAT in Fedora Core 4
Post by: ronaldjayr_jover on January 05, 2006, 08:31:29 AM
good day,

 what NAT do you want to do sir?
Title: NAT in Fedora Core 4
Post by: shani on January 05, 2006, 11:45:02 AM
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
Title: NAT in Fedora Core 4
Post by: Ricky on January 05, 2006, 05:19:58 PM
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.