LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2004, 11:00 AM   #1
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Rep: Reputation: 15
NAT problem with RH9


hello,

I am trying to implement a NAT box with Redhat 9 version. i used to do it with following script on redhat 6.2:

echo 1 > /proc/sys/net/ipv4/ip_forward

ipchains -F
ipchains -A forward -s 192.168.0.0/24 -d 0.0.0.0/0.0.0.0 -j MASQ


I used to keep this script at /etc/rc.d/rc.local and it worked just very fine...

but i can't do the same on redhat 9 version...

Can anybody tell me whats the reason ??

*** ok, another thing to ask...whats the difference between IP MASQ and NAT ??

Thanks,

Last edited by sixth_sense; 03-30-2004 at 11:16 AM.
 
Old 03-30-2004, 11:32 AM   #2
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
ipchains is deprecated and has been replaced with iptables

have a look at:
http://www.tldp.org/HOWTO/IP-Masquer...WTO/index.html
 
Old 03-31-2004, 12:09 AM   #3
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Original Poster
Rep: Reputation: 15
Actually i did also tried with following script at /etc/rc.d/rc.local on RedHat -9 box:

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -A forward -s 192.168.0.0/24 -d 0.0.0.0/0.0.0.0 -j MASQ

unfortunately it didn't worked... Any idea ?
 
Old 05-06-2004, 04:23 PM   #4
boym1
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
Hello,


Sorry to bug you but did you figure this one out? I am having a problem like it..


Thanks,
Michelle
 
Old 05-08-2004, 12:57 PM   #5
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Original Poster
Rep: Reputation: 15
Angry

no, not yet !
 
Old 05-10-2004, 11:38 AM   #6
boym1
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
Sorry to hear that - I have not found anything good out yet myself
 
Old 05-11-2004, 03:44 PM   #7
boym1
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
Hello,


Well found this on the net and it works at least for me to be able to have one external ip hooked up on a system then my internal ip address can get to the internet and stuff.. hope it might be of a little help..

Go to this site and look for the script for your verison of Redhat that is the simple firewall configuration


the one I used started with

#!/bin/sh
#
# rc.firewall-2.4
FWVER=0.75
#
# Initial SIMPLE IP Masquerade test for 2.4.x kernels
# using IPTABLES.



http://www.e-infomax.com/ipmasq/


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT in RH9 mazzo Red Hat 2 11-29-2004 02:54 PM
RH9 - pptp-conntrack-nat.patch mightym Red Hat 1 10-15-2004 08:22 AM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 06:50 AM
NAT with default RH9 /etc/sysconfig/iptables - how? BattleWolf Red Hat 2 12-31-2003 02:07 AM
NAT / Router RH9 kdd281 Linux - Networking 3 11-24-2003 03:02 PM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration