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 05:18PM
Artur Szczotka (artis ae katowice pl)
Re: routing_based_on_port/services Oct 05 2005 12:55PM
Vladimir Mitiouchev (vovcia irc pl)
Re: routing_based_on_port/services Oct 05 2005 09:43AM
David Ballester - Kern Pharma (dballester kernpharma com)
El lun, 03-10-2005 a las 09:41 +0000, kucserak (at) post (dot) sk [email concealed] escribió:
> 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..
>
> regards,
>
> Chris

Hi:

You can ( must ) use 'ip route','ip rule' and tc set of instructions.

In a few words.

You create a table where store routes ( /etc/iproute2/rt_tables )

For example

7 out-http

Then you can create a set of routes to be stored in this table

For example

ip route add default via adsl table out-http

Then, assign policies ( rules ) to use the defined set of routes
depending on the type of outgoing packet ( proto, source, dest... ).

When a packet matches an assigned rule for table out-http, the routing
processes 'forget' standard routes and applies the set of routes defined
in table out-http.

This is well explained in the excelent howto http://lartc.org/

HTH

Regards

David Ballester

[ reply ]
Re: routing_based_on_port/services Oct 04 2005 07:46PM
Jose Luis Domingo Lopez (focus-linux 24x7linux com)
Re: routing_based_on_port/services Oct 04 2005 04:55PM
Frank Burkhardt (fbo2 gmx net)
Re: routing_based_on_port/services Oct 04 2005 04:48PM
Joachim Schipper (j schipper math uu nl)
Re: routing_based_on_port/services Oct 04 2005 04:12PM
Martin Benda (bendis bendis cz)


 

Privacy Statement
Copyright 2010, SecurityFocus