|
Focus on Linux
routing_based_on_port/services Oct 03 2005 09:41AM kucserak post sk (7 replies) Re: routing_based_on_port/services Oct 05 2005 09:43AM David Ballester - Kern Pharma (dballester kernpharma com) Re: routing_based_on_port/services Oct 04 2005 07:46PM Jose Luis Domingo Lopez (focus-linux 24x7linux com) |
|
Privacy Statement |
On Mon, Oct 03, 2005 at 09:41:37AM -0000, kucserak (at) post (dot) sk [email concealed] wrote:
> Dear List!
>
> I just want to ask you a question.I have a linux(Secure platform) gateway server with 2 external ip address to the internet (one S/0 ADSl, second S/1 Point to Point) and one internal ip eth0 for my LAN. I need to split up the outgoing traffic.HTTP/HTTPS want to route through the ADSL and the rest of traffic (SMTP,POP3,FTP) through the Point to Point.Can i solve this with Linux iptables or whatever else. Any suggestion help..
You want to use "Policy based Routing".
( http://en.wikipedia.org/wiki/Policy_based_routing )
The principle is to use iptables to set a numeric mark (-j MARK) on packets
according to you criteria (tcp destination port number, ...) and to use a
different routing tables which are selected according to this packet-marks.
Best,
Frank
[ reply ]