LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-06-2011, 10:44 PM   #1
neonate
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
Smile Linux router configuration


hi,im ramesh

i would like know how to configure the linux as a router?
 
Old 03-06-2011, 10:54 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
If it is Redhat/Fedora/Centos

Open the file /etc/sysctl.conf and change the value of net.ip_forwarding peramteres to 1 from 0. It will looks like given below



Ip_forward = 1



Run the following command to make changes in kernel for IP farwarding

#sysctl –p

If you want more from router like, to access internet, you have to setup it as NAT. I did it and explained it on my blog. Please visit

http://varinderjhand.wordpress.com/2...ated-firewall/
 
Old 03-07-2011, 08:51 PM   #3
Astarath
LQ Newbie
 
Registered: Sep 2007
Posts: 13

Rep: Reputation: 0
you only have to use NAT if you don't have a publically routable subnet on one side of your router, and it isn't inside a private network.

To give a meaningful answer to your question, OP, I'd need a more specific question.
 
  


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
Linux Router Configuration kool_kid LinuxAnswers Discussion 0 09-22-2007 10:22 AM
Netgear ADSL DG632 Modem-Router and Linux Configuration Issues miCRoSCoPiCeaRthLinG Linux - Networking 2 07-02-2005 06:12 AM
D-Link ADSL router/modem and SuSE Linux configuration sch Linux - Networking 2 06-11-2005 05:36 PM
Linux router configuration questions NoWone Linux - Networking 4 01-26-2005 01:09 PM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 02:52 AM

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

All times are GMT -5. The time now is 08:35 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