R
R
rst6302020-04-22 07:34:31
iptables
rst630, 2020-04-22 07:34:31

Iptables how to wrap local traffic to a specific host through a proxy?

Tried like this:

iptables -t nat -A PREROUTING --dst ip_of_destination -p tcp --dport 443 -j DNAT --to myproxy_ip:8888


But it doesn't work - traffic goes directly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-04-22
@rst630

because local traffic goes the other way
iptables -t nat -A OUTPUT blah blah blah

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question