Setting Web Proxy Mikrotik Via Winbox

Mikrotik web proxy is needed on many people who use mikrotik course. to adjust the setting on mikrotik especially on the web proxy, you can follow the steps below:
There are several stages to go through and there are two alternatives that we can do when dealing with mikrotik, namely:
• Through the Console / CLI
• Through the Software and accessing the MikroTik RouterOS Winbox as SSH.
This time I will try to share that with Console / CLI, either CLI computer or a MikroTik RouterOS has been in-SSH via winbox. There are three main stages to be done:

A. Configuring Web Proxy

[admin @ MikroTik]> ip web-proxy
[admin @ MikroTik] ip web-proxy> set enabled = yes ==> to make active web proxy ip
[admin @ MikroTik] ip web-proxy> set src-address = 0.0.0.0 ==> address that will be used to connect to parent proxy
[admin @ MikroTik] ip web-proxy> set port = 8080 ==> make port for web proxy
[admin @ MikroTik] ip web-proxy> set hostname = admin [be replaced] ==> hostname of the web proxy
[admin @ MikroTik] ip web-proxy> set transparent-proxy = yes ==> to enable the transparent proxy
[admin @ MikroTik] ip web-proxy> set parent-proxy = 0.0.0.0:0 ==> address of the parent proxy
[admin @ MikroTik] ip web-proxy> set cache-administrator = me@yahoo.com (fill in email address) ==> email administrator / maintainer, if the proxy error, the status will be sent to this email.
[admin @ MikroTik] ip web-proxy> set max-object-size = 4096KiB ==> maximum size of files to be stored as a cache (4096KiB is the default)
[admin @ MikroTik] ip web-proxy> set cache-drive = system ==> position where the cache will be stored
[admin @ MikroTik] ip web-proxy> set max-cache-size = unlimited ==> maximum size hard drive that will be used as a store cache file
[admin @ MikroTik] ip web-proxy> set max-ram-cache-size = unlimited ==> maximum ram cache is used to store

B. Configuring NAT-Redirect
After setting of the web proxy is finished, now we are trying to divert traffic towards a web http proxy or in other words that come out will force access to the web proxies we first entered. Ports that need to be deflected usually 80.3128 and 8080. configuration:
[admin @ MikroTik] ip web-proxy> / ip firewall nat add chain = tcp protocol = dstnat dst-port = 80 action = redirect to-ports = 8080 ==> will redirect port 80 to 8080 (the web proxy port)
[admin @ MikroTik] ip web-proxy> / ip firewall nat add chain = tcp protocol = dstnat dst-port = 3128 action = redirect to-ports = 8080 ==> will redirect port 3128 to 8080 (the web proxy port)
[admin @ MikroTik] ip web-proxy> / ip firewall nat add chain = tcp protocol = dstnat dst-port = 8080 action = redirect to-ports = 8080 ==> will redirect port 3128 to 8080 (the web proxy port)

C. Block unwanted sites
With two stages in the actual web-proxy settings we finished . Now it is time to act to block the sites that we do not want. configuration:
[admin @ MikroTik] ip web-proxy> access add url = redtube.com method = any action = deny
Now try to open the site redtube.com use your computer browser client, if you still can open the configuration we mean something is wrong, please in-trace where we went wrong. Remember ..! MikroTik UNIX language, we do not need to type the full command, with the help of the TAB key on the keyboard we will be helped and will reduce the writing of a command / command is wrong. If the configuration is correct then we are when we try to open the site before going out of view as follows:
Setting Web Proxy Mikrotik Via Winbox

so a few tips from Mario Stroger especially in Settings in Mikrotik Web Proxy via Winbox

Subscribe to receive free email updates:

2 Responses to "Setting Web Proxy Mikrotik Via Winbox"

  1. You can access blocked websites very easily and by clicking only single link. No need to install any software or changing any ip.
    Akinator UK proxy

    ReplyDelete
  2. Your work is very simple art of work its really a helpful.
    access Mp3Raid in UK

    ReplyDelete