Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Linux
[Top] [All Lists]

Re: routing_based_on_port/services

Subject: Re: routing_based_on_port/services
Date: Wed, 5 Oct 2005 14:55:57 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 3 Oct 2005, kucserak@post.sk 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-----

<Prev in Thread] Current Thread [Next in Thread>