hello,

> > ip rule add nat 1.2.3.4 from 10.2.1.228 table T2
> 
> ...majd ezutan panaszkodsz hogy a 10.2.1.228-rol megy tovabb a csomag.
> Hat ha egyszer direkt erre kerted szegenyt? Oda azt a cimet ird, amire
> szeretned, hogy (s)natoljon.

itt: http://linux-ip.net/html/nat-stateless.html olvastam ezt:
'ip rule add nat 205.254.211.17 from 192.168.100.17'

...This rule will cause the kernel rewrite any packet from
192.168.100.17 with the specified source address
(205.254.211.17). Any packet originating from 192.168.100.17
which passes through this router will trigger this rule. In
short, this command rewrites the source address of outbound
packets so that they appear to originate from the NAT IP.

ebbol gondolom azt, hogy eloszor a NAT-olt cimet kell megadni,
majd azt, _amit_ szeretnek cserlni.

Ha jol ertelek, te azt irod, hogy forditva van, tehat helyesen
igy lenne:

ip rule add nat 10.2.1.228 from 1.2.3.4 table T2?


Koszi:

a.


-- 
Minden baj forrása az 1/x függvény.
_________________________________________________
linux lista      -      linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz