May 04, 2024, 03:52:22 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: NAT in Fedora Core 4  (Read 3887 times)

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT in Fedora Core 4
« 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

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT in Fedora Core 4
« Reply #1 on: January 05, 2006, 08:23:42 AM »
could any reply me or not?


shani

Offline ronaldjayr_jover

  • Linux Noob !
  • *
  • Posts: 29
NAT in Fedora Core 4
« Reply #2 on: January 05, 2006, 08:31:29 AM »
good day,

 what NAT do you want to do sir?

Offline shani

  • Tux Awared
  • **
  • Posts: 36
NAT in Fedora Core 4
« Reply #3 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
NAT in Fedora Core 4
« Reply #4 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.