Networking Forums

Networking Forums > Computer Networking > Linux Networking > Routing through multiple interfaces based PORT?

Reply
Thread Tools Display Modes

Routing through multiple interfaces based PORT?

 
 
Aidan
Guest
Posts: n/a

 
      07-23-2003, 01:38 AM
Hi, wonder if anyone can tell me if this is possible and if i can do
it iptables or i would have to do something else,

what i want to do is basicly seperated traffic over 2 internet
connections based on which port it is going on.

I have 2 interfaces on my Linux machine, one external with a public IP
address, one internal.

Traffic is coming in on the internal interface and being masqueraded
onto the net, pretty standard setup, but there is also a DSL router on
the local network, I want to be able to force some traffic to be
masqueraded back onto the internal network and through the DSL
router(based on port, ie I want all http traffic to go through the DSL
router)

For example

When my client(192.168.1.10) wants to establish an ftp session. Its
default gateway is set to (192.168.1.2) which is the Linux machine, it
then masquerades it and sends it out on its external interface
(65.xx.xx.xx). Thats fine, but if my client trys to establish a
connection with a HTTP server over port 80, Can I make the linux
machine masquerade it back onto to local network and out through the
DSL router(192.168.1.1). I can add 2 default routes in Linux but I
think that then makes Linux auto select which one to send it to?? Im
not sure about this.
??

I hope is clear what I want to do....
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing to multiple interfaces Topi Linux Networking 7 04-03-2008 09:56 AM
NAT and port-based routing in a multi-homed enviroment RDub Linux Networking 2 09-09-2007 11:56 PM
multiple ethernet interfaces, routing depending on destination smagister@gmail.com Linux Networking 1 02-04-2007 06:10 PM
Routing Table and Multiple Interfaces Fred Marshall Windows Networking 2 06-30-2004 08:08 PM
Multiple VPN-Interfaces and intelligent routing John Bieling Linux Networking 0 04-26-2004 05:47 PM



1 2 3 4 5 6 7 8 9 10 11