How to Make a Transparent Proxy Mikrotik - Transparent proxy is a proxy configuration which intercepts normal communication at the network layer without requiring any special client configuration. It means that clients need not be aware of the existence of the proxy. Transparent proxy is located between the client and the Internet, with the proxy performing some of the functions of a gateway or router.
If we use Transparent proxy, we don't have to set up proxy configuration on clients browser. It's more simple and won't waste your time :). Ok, let's do it.
Please open the Winbox and follow these steps :
1 . Go to the menu IP - > Web Proxy
2 . To enable Web Proxy check " Enabled "
3 . Fill in the port to be used by the proxy. In this case we use port 8080
4 . You can replace Cache Administrator with your own email
5 . Max Cache Size determines how large the allocation of memory to store its cache proxy. Please fill in as needed or you may choose unlimited.
6 . Check the "Cache On Disk" option to store the web proxy cache on Mikrotik's hard disk not on it's RAM.
7 . Click Apply - > OK
Now, your Mikrotik Web proxy is activated. But it's not configured as transparent proxy yet.
Set up Mikrotik Web Proxy as Transparent Proxy
Transparent Proxy works with redirecting HTTP traffic data (destination port 80) to proxy's port 8080. This can be done with configuring the NAT Firewall on Mikrotik. You can use this command line on terminal.
ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080
Or you can do it manually using Winbox, go to menu IP --> Firewall --> NAT
Chain : dstnat
Protocol : tcp
Dst. Port : 80
In the Action Tab
Action : redirect
To Ports : 8080
Done! Your Mikrotik Web Proxy is now become transparent. You can test it on your web browser, try to open an address which doesn't exist. So, you'll get the error page generated by web proxy, just like the picture below :
If this tutorial is't clear enough, you can watch this video tutorial how to make transparent web proxy Mikrotik :