LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2005, 02:10 AM   #1
ammaralroz
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
linux as router (between 3 LAN)


Dear all
I have 3 LAN (172.27.113.* and 11.*.*.* and 10.*.*.*)
I want to add (Linux fedora core 3) as a Router between them
How can I do it?
Thanks
 
Old 08-17-2005, 02:29 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
That's a fairly simple setup. I've got my FC4 box running as a router between my dialup connection and my LAN and wireless LAN, and that setup is slightly more complex as it involves NAT, but yours should bee fairly straightforward.

Install FC3 on your machine of choice (any particular reason why FC3 and not FC4?). Edit /etc/sysconfig/network and change the line reading

Code:
FORWARD_IPV4=FALSE
to read

Code:
FORWARD_IPV4=TRUE
That's all there is to it. You may also want to configure the firewall a bit - the default RedHat firewall configuration out-of-the-box leaves the FORWARD chain (which is the chain used for routed packets) with a policy of ALLOW, which is a bit insecure, so you may want to tie that down a bit, particularly any of these machines has access to the internet - you may for example want to set it so that packets with a state of ESTABLISHED or RELATED are always permitted, and packets from your 3 LAN networks are permitted out to the internet, packets between LAN networks are permitted, but any other packets in from the internet are dropped.

By the way, you do know that 11.0.0.0/8 isn't a privately-assigned IP range? So if you ever wanted to access a website that had an 11.0.0.0 address you wouldn't be able to because you're using the subnet as your local LAN.

Last edited by cdhgee; 08-17-2005 at 03:13 AM.
 
Old 08-17-2005, 05:49 AM   #3
ammaralroz
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
i will try it

but i want to tell you my structure


.............................internet
--------------------------------------------------------
|..............................|.................................|
VPN1.......................VPN2..........................VPN3
DHCP.......................DHCP....................... DHCP
172.27.113.1........11.1.1.1.....................10.1.1.1
255.255.0.0..........255.0.0.0..................255.0.0.0
|...........................|................................|
>>>>>>>>>>>router<<<<<<<<<<<<


I want to add router between this LANs
And VPN's server is windows

note: dots is spaces

thanx

Last edited by ammaralroz; 08-17-2005 at 05:57 AM.
 
Old 08-17-2005, 06:18 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Yeah, that should work fine. You'll need three network cards on the router box, and you'll either need to set each DHCP to use the router as the default gateway, or you'll need to put static routes in on each machine on each subnet to send traffic to the other two subnets via the router. Either way it's a bit messy because of your network topology.
 
  


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
Linksys Router behind a Linux LAN ysa475 Linux - Wireless Networking 0 07-05-2004 09:06 PM
Using a linux router to put an xbox on a wireless lan brenan99 Linux - Wireless Networking 2 01-25-2004 09:51 AM
etech router --> lan --> linux server --> wifi mrmadalex Linux - Wireless Networking 0 12-27-2003 07:47 AM
adding linux to a windows lan, using a linksys router lucky_1811 Linux - Networking 12 12-19-2003 04:13 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:04 AM.

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