MT Web-Proxy and dst-nat
Posted: Thu Dec 07, 2006 11:21 am
How can I change dst address of some TCP sessions originated by MT web-proxy?
The web-proxy is configured as transparent (w/parent proxy), and some sessions (but not all) to parent should be changed as dst-ip.
I tried to create a new output chain using jump action:
> chain=output dst-address=<old-ip-addr> protocol=tcp dst-port=80 action=jump jump-target=testchain
Then dst-nat the traffic put into that chain:
> chain=testchain action=dst-nat to-addresses=<new-ip-addr> to-ports=0-65535
Unfortunately that doesn't work: the NAT rule doesn't catch any traffic (0 bits/packets), so the dst-address is not changed.
Where am I wrong?
Riccardo
The web-proxy is configured as transparent (w/parent proxy), and some sessions (but not all) to parent should be changed as dst-ip.
I tried to create a new output chain using jump action:
> chain=output dst-address=<old-ip-addr> protocol=tcp dst-port=80 action=jump jump-target=testchain
Then dst-nat the traffic put into that chain:
> chain=testchain action=dst-nat to-addresses=<new-ip-addr> to-ports=0-65535
Unfortunately that doesn't work: the NAT rule doesn't catch any traffic (0 bits/packets), so the dst-address is not changed.
Where am I wrong?
Riccardo