[LUGOS] Routing!!!!

Jaka Močnik jaka at gnu.org
Fri Jan 23 19:42:54 CET 2004


On Fri, 2004-01-23 at 11:34, Novak Dusan ITICMC wrote:
> Ojla,
> spet...jaz...
> vprašanje, ali se da in kako...na linux-u narediti, da za vse 
> outgoing pakete nastaviš routo s pomočjo maske 
tega ne razumem: imaš pač routing tabelo, ki (običajno) podaja kup
pravil v slogu: paket za to in to omrežje (IP + maska) pošlji na
tale vmesnik (in morda proti temu GW).

> in nato še spremeniš destination ip naslov v IP paketu...
rabiš (predpostavljava jedro 2.4.x) netfilter, NAT, in pravilo v
POSTROUTING verigi; slednje bi šlo nekako takole:

iptables -t nat -A POSTROUTING -d <ORIG_DEST_IP> -j DNAT \
         --to-destination <NEW_DEST_IP>

več o IP paketnem filtru in najdeš na: http://www.netfilter.org/;
to bo brez dvoma koristno branje za vas na Iskratelu!

lp,
	jaKa

-- 

email: jaka at gnu.org
w3:    http://fish.homeunix.org/people/jaka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://liste2.lugos.si/pipermail/lugos-list/attachments/20040123/3a09267e/attachment-0001.pgp


More information about the lugos-list mailing list