>> gateway> fwd
>>
>> can this line emulate a random router ? the man said than "fwd"ed packet
> are
>> unmodified.
>> is it the case when the packed is routed ?
>>
>
> have tried it, but i think it will not work with http session
> so i ve tried that :
> => catch every http going out and change ip src with 192.168.0.101 (natd
> alias)
> ipfw add 2098 divert 3615 tcp from any to any 80 out via tun0
I have a doubt, does natd tag its table enties with the interface ?
in this case, the output packet is tagged with tun0 and the
corresponding response is tagged with bge0; the reverse translation is
not done.
To have more insight I would run natd with the -v option (the one
listenning on 3615).
Henri
> => catch everything going out from 192.168.0.101 and fwd to the second
> gateway (0.254)
> ipfw add 2099 fwd 192.168.0.254 tcp from 192.168.0.101 to any 80 out via
> tun0
>
> the packet is well translated and moved to the interface of second gateway
> but it is not functionning :(
>
>
>