M
M
Maxim2015-11-16 13:53:18
linux
Maxim, 2015-11-16 13:53:18

How to move the proxy to a separate server?

I can’t figure out how it will be right
. I imagine it like this: the client goes to the Internet, the gateway redirects it to a proxy, which, after processing, throws it back to the gateway and then it goes to the Internet.
there are two networks 10.214.2.128/25 192.168.1.0/24 proxy 10.214.2.138 gateway 10.214.2.134 and 192.168.1.5 from all networks there must be access to the Internet. how to write correct rules?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Swartalf, 2015-11-16
@maxpointn2point

add a masquerade, something like:
iptables -t nat -A POSTROUTING -j MASQURADE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question