Re: lug-bg: routing by protocol
- Subject: Re: lug-bg: routing by protocol
- From: luben@xxxxxxxxx (Luben Karavelov)
- Date: Fri, 16 Mar 2001 23:30:33 +0200
On Fri, Mar 16, 2001 at 01:19:39PM +0100, ISM Kolemanov, Ivan wrote:
> zdrasti na vsichki,
>
> trqbva mi speshno nachin za routirane po protocoli
>
> naprimer:
> ------------------------------------------------------------------
> vsichko proto tcp port 80 -> gw 10.1.1.5
> vsichko proto tcp port 8080 -> gw 10.1.1.5
> vsichko proto tcp/udp port 53 -> gw 10.1.1.7
>
> vsichko drugo -> gw 10.1.1.50
> -----------------------------------------------------------------
>
> (dobre de poslednoto stava i s default gateway
> btw, nqmam predvid izpozvane na masq i rdr)
>
> Pozdravi,
> ivan kolemanov
iptables -t mangle -A PREROUTING -p tcp -dport 80 -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -p tcp -dport 8080 -j MARK --set-mark 1
ip rule add fwmark 1 pref 10 table 10
ip route add default via 10.1.1.5 table 10
ip route add default via 10.1.1.50
i si gotov.
V kernela (2.4.x) ti triabvat: IP>advanced router>multiple tables,
firewall mark as routing key, a sushto taka i netfilter> table
mangle.
tova za kernel-a she go namerish, ne sym siguren che tochno taka
se kazvat opciite, no se nadiavam da ti e stanalo iasno. ako ima
neshto drugo, pitai
--
_________________________________________________________
Luben Karavelov [phone] +359 2 9877088
Network Administrator
[PGP] http://www.bgone.net/pgp/luben.asc [ICQ#] 34741625
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HR>
<UL>
<LI>application/pgp-signature \\\\\\\\\ \\\\: stored
</UL>
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|