On Sat, Nov 30, 2013 at 09:46:06AM -0700, ilic_68@xxxxxxxxxxx wrote: > Hello, > > consider this scenario: > > PC1 wants to telnet to SRV1 tcp 40000. > > I would like to put a proxy in the middle that receives the > connection, rewrites the destination, sends packet to a local socks proxy (redsocks). > > So the scenario would be: > > PC1 --> PROXY tcp 20000 [iptables rewrites destination to SRV tcp 40000 --> redsocks 127.0.0.1 tcp 12345] --> SRV1 tcp 40000 Use -j REDIRECT --to 12345 -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html