Skip to content Skip to sidebar Skip to footer

Configuring Transparent Proxy Filtering On MikroTik Routers

What's good my people?

Today, I want to put you on game about how to create a transparent proxy on Mikrotik. This is a crucial tool that can help improve the speed and security of your network. If you don't know what a transparent proxy is, don't worry, I'll break it down for you.

What is a Transparent Proxy?

Basically, a transparent proxy intercepts all requests that are made to the Internet and if the requested object is in the cache, it returns the object from the cache instead of sending a request to the Internet. This means that the proxy server can drastically reduce the amount of traffic on the network and therefore increase the speed and efficiency of the network.

Creating a Transparent Proxy on Mikrotik

So now that you understand the benefits of a transparent proxy, it's time to learn how to create one on a Mikrotik router. Follow these steps to create your own transparent proxy:

Step 1: Create a New Cache Drive

Before creating a transparent proxy, it's important to add an external USB drive to your Mikrotik router. This will serve as the cache drive for your transparent proxy. Connect the USB drive to your Mikrotik and format it as an ext2 file system. Once the drive is formatted, create a folder named "proxy" in the root directory of the drive.

Step 2: Configure Proxy Settings

Once you have your cache drive set up, it's time to configure the proxy settings on your Mikrotik router. Open up the terminal and type in the following commands:

 /ip proxy set enabled=yes port=8080 /ip proxy cache set enabled=yes max-cache-size=1G cache-drive=proxy parent-proxy=0.0.0.0 parent-proxy-port=8080 

These commands will enable the proxy server on port 8080 and set the cache drive to the folder you created on your external USB drive. It will also set the maximum cache size to 1GB, which is enough for most networks. Finally, it will set the parent proxy to "0.0.0.0" which means that there is no parent proxy and it will act as the main proxy on the network.

Step 3: Configure Firewall Rules

After configuring the proxy settings, it's important to add firewall rules to ensure that all Internet traffic is directed to the proxy server. To do this, open up the terminal and type in the following commands:

 /ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080 /ip firewall nat add chain=dstnat protocol=tcp dst-port=443 action=redirect to-ports=8080 

These commands will add two firewall rules that will redirect all HTTP and HTTPS traffic to the proxy server on port 8080. This ensures that all Internet traffic goes through the proxy server and is cached for faster and more efficient browsing.

Step 4: Configure DNS Settings

Finally, you need to configure the DNS settings on your Mikrotik router. This is important to ensure that all DNS requests are resolved by the router and not an external DNS server. This will help improve the speed and security of the network. To do this, open up the terminal and type in the following commands:

 /ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4,1.1.1.1 

These commands will enable remote DNS requests and set the cache size to 2GB. It will also set the DNS servers to Google DNS and Cloudflare DNS for fast and reliable DNS resolution.

Conclusion

Creating a transparent proxy on Mikrotik can help improve the speed and efficiency of your network. It also provides an additional layer of security by caching frequently accessed websites and reducing the amount of traffic on the network. I hope this tutorial was helpful and puts you on game about how to create your own transparent proxy on Mikrotik. Keep it locked and stay tuned to more tutorials.

Transparent vs Explicit proxy — which method should I use?
proxy transparent web explicit vs availability filter high network method should which use diagram loadbalancer


Top 200 Best Free Proxy Sites : High Speed Proxy Servers List
proxy sites servers high speed list


Transparent Proxying – DNSFilter
proxying typically proxied


TUTORIAL MEMBUAT TRANSPARENT PROXY PADA MIKROTIK ~ Infoku17
proxy pengertian



Post a Comment for "Configuring Transparent Proxy Filtering On MikroTik Routers"