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)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 3 Oct 2005, kucserak (at) post (dot) sk [email concealed] wrote:

> 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..

(***Read LARTC (Linux Advanced Routing and Traffic Control***)

Mark HTTP[S] traffic with fwmark
# iptables -A FORWARD -s localnet/localmask -m mport -p tcp --dports
80,443
- -j MARK --set-mark 0x1

Create custom routing table and set default route on it with

# ip route add default via [ppp-gw] table [customtable]

Add a rule for routing marked packets
# ip rule add fwmark 0x1 table [customtable]

Should work, i think.

Vladimir
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux)

iD8DBQFDQ81gvjFIPugLvNERApElAKDMwIt4NWhBjW1ekMRA432CUZ0AkgCeMHaS
sdB/AlILY+O2y0N5oeKwWNE=
=QrT/
-----END PGP SIGNATURE-----

[ reply ]
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)
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