/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Hi,

> unfortunately, the return path does still not work.
> i would like, that the answer would look, like it came from
> a.b.c.d, and not the adress of eth0 (due to masquerading).
> 
> my commands:
> gorgon:~ # ip route add nat a.b.c.d via 192.168.0.10 table local
> gorgon:~ # ip rule add from 192.168.0.10 nat a.b.c.d table local

May be you should add priority value to the last ip rule
    
      ip rule add prio 320 from 192.168.0.10 nat a.b.c.d table local
I saw it in iproute2 manual (ip-cref.ps page 49-51)

We are going to do the same thing but did not try it.
It would be very interesting to have you opinion on this way of
routing/masquarading.

Hope this will help.

Stas

Mr. Nikiforov Stanislav

Intsitute of Theoretical and Applied Mechanics
4/1, Institutskaya str., 
Novosibirsk, 930090, 
Russia

Voice: +7 3832 303906
E-mail: [EMAIL PROTECTED]  

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to