LinuxQuestions.org
Visit Jeremy's Blog.
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 09-10-2009, 01:39 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Rep: Reputation: 30
Natting among 3 connections


I have linux box with 2 eth cards and using as internet gateway configuring nating.. running fine.

Eth0: lan ip
Eth1:wan ip


Now my requirement is that I want to add another (different internet connection) new ip (alias) to Wan eth1. And route lan's request for destination tcp port 465 request to wan through this ip towards Internet. You may consider it somewhat load balancing .

pls write up.
 
Old 09-10-2009, 06:53 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Linux routing decisions are IP based, not port based. If the destinations are all to a common destination, you can add a route to that destination through the eth1:1 route. On the other hand, why put it on a different IP through the same network? That's not going to reduce any load.
 
Old 09-11-2009, 01:29 AM   #3
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Original Poster
Rep: Reputation: 30
Matir, here I am using different network , I mean two different IPS's ip on Eth1
 
  


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
natting twice zsoltrenyi Linux - Networking 9 01-26-2005 04:39 AM
Natting / Routing suvajit Linux - Networking 2 05-15-2003 10:23 AM
Natting suvajit Linux - Software 1 05-15-2003 05:50 AM
Natting suraj Linux - Networking 1 01-23-2003 10:25 AM
loacl natting uma27us Linux - Networking 0 12-18-2002 03:40 AM

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

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