Say you have postfix sending outbound email on eth0 interface and TCP port
25, then you would have:

iptables -t nat -A OUTPUT -p tcp -m tcp --dport 25 -j REDIRECT --to-ports
8888 <http://127.0.0.1:8888>

You need to change the above to fit your specific network.


On Wed, Aug 2, 2017 at 3:10 PM, Yubin Ruan <ablacktsh...@gmail.com> wrote:

> 2017-08-02 2:39 GMT+08:00 Abi Askushi <rightkickt...@gmail.com>:
> > Since this is socks proxy and not vpn you could redirect postfix traffic
> > with iptables to the port your socks proxy listens. Plenty examples on
> > google.
>
> Please offer a simple iptable exmples, if you may. Probably I was
> stuck by some asymmetric routing problems after setting up a incorrect
> iptable rule.
>
> Yubin
>

Reply via email to