LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2014, 10:46 AM   #1
andySMI
LQ Newbie
 
Registered: Feb 2012
Posts: 26

Rep: Reputation: Disabled
two dsl routers


Hello forum
I have a small corporate network. Internet access is provided by two dsl routers. Each dsl router has a public static IP address. I have a MS exchange 2003 mail server and a CentOS6 web / mail server. I am trying to configure the pinholes in the two routers.
Router 1 has pinhole for port 25 sent to CentOS6 server (mail gateway) and port 80 sent to MS exchange server. I've tried to set up a pinhole on router 2 to send port 80 to CentOS6 server. CentOS6 server has one network interface. The CentOS6 server does not seem to work with port 25 sent from one router and port 80 sent from the other router.
Can anyone help point me in the direction I need? Do I need A second network card?
 
Old 01-21-2014, 11:50 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
This is a routing issue.

Both routers provide access to the Internet. Hosts on the local network can use either router, but since outgoing traffic is NATed behind the public IP address of the router in question, any give host on the inside must choose one or the other; alternating between routers will not work due to NAT.

You've forwarded a port on Router 1 to the CentOS server, and it works. This means the server must be using Router 1 as its gateway. When you tried forwarding a port from Router 2 to the same server, it didn't work, as the server attempted to send replies via Router 1.

There are several ways to make this work, none of which very elegant or simple.
  • You can have Router 2 and/or Router 1 perform source NAT for all inbound traffic. That way, the requests will seem to originate from the router itself rather than from an Internet host, and the server will reply directly to the Router's local address. Not all routers are able to do this, and it means extra work for the router as it has to keep track of an extra set of NAT entries. Also, all access logs on the local web/mail server becomes useless, as the only logged IP address will be that of the router.
  • You can set up to separate IP networks, one for each router, and put an extra NIC in the server. By binding the service on the server to a specific IP address and setting up policy routing, you can force traffic to use a specific gateway based on the source IP address of the packet.
  • You can replace Router 1 and Router 2 with a single router that supports multiple NATed WAN connections (such beasts do exist).
However, the ideal solution would be to eliminate the need for two NATed connections. Why does this organization have two Internet connections in the first place?
 
Old 01-22-2014, 07:20 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Might need more topology on this.

If all are in same broadcast then I'd put a second ip in or second nic. Maybe I am not understanding the deal too.

Does it test OK inside the lan?
 
  


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
Using multi-core/multiprocessor pc routers, vpn routers badkuk Linux - Networking 4 01-15-2011 06:55 AM
A security issue with certain DSL routers Peufelon Linux - Security 15 11-14-2010 05:12 PM
USB drive works on DSL, not DSL-N. DSL-N has kernel 2.6.12 mkenyon2 Linux - Hardware 1 08-07-2008 11:29 AM
Slack 11, 2 NIC's, 2 DSL Routers W/ Static IPS... BAcidEvil Linux - Software 1 02-12-2007 01:54 PM

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

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