LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2011, 08:11 PM   #1
leonardo1989
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
gateway server by using RedHat5.4


I want to config gateway server by RedHat 5.4.
Inbound ipaddress is 192.168.5.0/24 and outbound ipaddress is 172.16.5.0/24.
RedHat server has two ether card- 192.168.5.1 and 172.16.5.1 .

Help me, please.
 
Old 07-02-2011, 01:35 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You will need to turn on FORWARDing;

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
If you want this to be turned on from a reboot you need to edit /etc/sysctl.con and change the following line as listed below;

Code:
net.ipv4.ip_forward = 1
This will get the box to do routing for you. You will have to setup iptables to block unwanted traffic and do your masquerading for traffic leaving your system. Take a look at this TUTORIAL.
 
  


Reply



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
REDHAT5.1 Networking evilwhisperz Linux - Newbie 3 02-24-2010 05:26 PM
gethostbyname on Redhat5.4 ccli301 Linux - Server 2 12-07-2009 09:15 AM
how i can access ym webcam via proxy server redhat5 space_beyond Linux - General 1 07-08-2009 06:11 AM
How i can access ym webcam via proxy server redhat5 space_beyond Linux - Newbie 0 07-08-2009 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:38 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
Open Source Consulting | Domain Registration