Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-06-2004, 09:35 AM   #1
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
Question For Linux GURU's: route configuration in complex network

Dear All,
I am in big trouble and tried since from 2 weeks, but unsucsesfull PLEASE HELP ME.

I configure a Linux (mandrake 10 ) router with 4 NICs.

eth0 = (attached with my Local LAN)
eth1 = (attached with Internet DSL for internet browsing)
eth1:0 = (attachec with DSL for my e-mail server by NAT)
eth2 = (attached with my second LAN )
eth3 = (attached with my second DSL Link for internet access)

my route command shows.
[root@router root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth3 * U 0 0 0 eth2 * U 0 0 0 eth0 * U 0 0 0 eth1 * U 0 0 0 lo
default UG 0 0 0 eth3
[root@router root]#

now I want to NAT my e-mail server traffice from IP to my Local LAN PC IP,HOW CAN I DO THIS PLEASSSSSSSS HELP ME
If I change default route then internet not work. and I dont know how my e-mail server send traffic on network.

Help me soon Its already tooooooooo LATE.
Thanks in advance
Old 09-06-2004, 10:00 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Look at the /etc/services file. It lists the port numbers for all the various “standard” protocols.
SMTP is outgoing email (pushing to a mailbox from a client).
POP3 is incoming email (i.e. fetching email from a mailbox to a client).
IMAP is also incoming email (i.e. fetching email from a mailbox to a client). Most setups use only one of IMAP or POP3.

You need to redirect these ports only to do what you're asking.

But there may be other ways. Can you set up to use the Linux router as a gateway? Then it could just connect directly to to fetch or send email, and the gateway should take care of it by the non-default route (the default route is only ever used as a fallback).

You could also look at port forwarding and tunneling programs. Personally, I use stunnel on my computer to tunnel and secure the POP3 socket on my local machine to the POP3S socket on my mail server. The mail client then fetches my email from the local machine — at which point, neither the email client nor NAT cares about the fact that the email actually comes from a different computer.

Hope that helps,

— Robert J. Lee


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
Windows route configuration easier than Linux??? hdalle Linux - Networking 5 08-25-2004 07:14 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 03:11 PM
need help from Linux guru's please lvieira Linux - General 2 06-15-2004 11:02 AM
Internal Firewall/Gateway problems on complex home network WarmFlatSprite Linux - Wireless Networking 3 02-19-2004 09:33 PM
Complex home network xblade2003 Linux - Networking 3 07-08-2003 12:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:36 AM.

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