# PROBLEM WITH WEB PROXY

**URL:** <https://forum.mikrotik.com/t/problem-with-web-proxy/40289>\
**Category:** General\
**Created:** [August 26, 2010, 4:36pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289 "2010-08-26T16:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![auwudia](https://forum.mikrotik.com/letter_avatar/auwudia/32/6_449c533f586939b6e5f246632a46421f.png) [@auwudia](https://forum.mikrotik.com/u/auwudia)\
**Post date:** [August 26, 2010, 4:36pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/1 "2010-08-26T16:36:19Z")

</div>

Hi All,  
I just configure web proxy on my mikrotik box with the intention to block some websites. The proxy is running, but I discovered that the DHCP clients are not inheriting the proxy setting - it only works when I set up the proxy manually on the web browser.

Can anyone kindly tell me how to make the DHCP clients on my network automatically get proxy configuration? I will very much appreciate.

Austin

---

<div class="post-metadata">

**Author:** ![fewi](https://forum.mikrotik.com/letter_avatar/fewi/32/6_449c533f586939b6e5f246632a46421f.png) [@fewi](https://forum.mikrotik.com/u/fewi)\
**Post date:** [August 26, 2010, 5:33pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/2 "2010-08-26T17:33:13Z")

</div>

Proxy settings aren’t distributed via DHCP.

Just enforce the proxy transparently: [http://wiki.mikrotik.com/wiki/How\_to\_make\_transparent\_web\_proxy#Howto](http://wiki.mikrotik.com/wiki/How_to_make_transparent_web_proxy#Howto)

---

<div class="post-metadata">

**Author:** ![auwudia](https://forum.mikrotik.com/letter_avatar/auwudia/32/6_449c533f586939b6e5f246632a46421f.png) [@auwudia](https://forum.mikrotik.com/u/auwudia)\
**Post date:** [August 27, 2010, 8:41am UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/3 "2010-08-27T08:41:40Z")

</div>

Hi Fewi/All,  
So is there no way to make every connecting PCs web browser to automatically set to the proxy setting. Can’t this be achieved by scripting?

Please I need an urgent help from the GURUs on this forum.

---

<div class="post-metadata">

**Author:** ![fewi](https://forum.mikrotik.com/letter_avatar/fewi/32/6_449c533f586939b6e5f246632a46421f.png) [@fewi](https://forum.mikrotik.com/u/fewi)\
**Post date:** [August 27, 2010, 12:08pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/4 "2010-08-27T12:08:02Z")

</div>

[http://en.wikipedia.org/wiki/Proxy\_auto-config](http://en.wikipedia.org/wiki/Proxy_auto-config)  
What is the problem with transparently proxying everyone as I described, though? There’s no need to even have the client know he’s being proxied.

---

<div class="post-metadata">

**Author:** ![auwudia](https://forum.mikrotik.com/letter_avatar/auwudia/32/6_449c533f586939b6e5f246632a46421f.png) [@auwudia](https://forum.mikrotik.com/u/auwudia)\
**Post date:** [August 27, 2010, 4:19pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/5 "2010-08-27T16:19:36Z")

</div>

Hi Fewi,  
I am not an expert yet with Mikrotik, just trying few stuff. Here below is my config:

[admin@SWTK BM] \> /ip proxy pr  
enabled: yes  
src-address: 0.0.0.0  
port: 8080  
parent-proxy: 0.0.0.0  
parent-proxy-port: 0  
cache-administrator: “webmaster”  
max-cache-size: unlimited  
cache-on-disk: yes  
max-client-connections: 600  
max-server-connections: 600  
max-fresh-time: 3d  
serialize-connections: no  
always-from-cache: no  
cache-hit-dscp: 4  
cache-drive: primary-master

The Mikrotik box is configured to give out DHCP (it is an existing network). The connecting PCs work very well, but for the purpose of blocking some websites that is why we are going down this line. The problem is that all the sites listed for blocking in the proxy access are still working, except i manually configure the proxy on the PCs web browser to point to the proxy and it is not going to be easy to do this and I am unable to make it work dynamically.

Kindly give me a more understandable step by step approach to tacle this problem - kind of paste an existing configuration.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![fewi](https://forum.mikrotik.com/letter_avatar/fewi/32/6_449c533f586939b6e5f246632a46421f.png) [@fewi](https://forum.mikrotik.com/u/fewi)\
**Post date:** [August 27, 2010, 4:40pm UTC](https://forum.mikrotik.com/t/problem-with-web-proxy/40289/6 "2010-08-27T16:40:46Z")

</div>

> [@auwudia](#):
>
> Kindly give me a more understandable step by step approach to tacle this problem - kind of paste an existing configuration.

I did.

> [@fewi](#):
>
> Proxy settings aren’t distributed via DHCP.  
> Just enforce the proxy transparently: [http://wiki.mikrotik.com/wiki/How\_to\_make\_transparent\_web\_proxy#Howto](http://wiki.mikrotik.com/wiki/How_to_make_transparent_web_proxy#Howto)

From that link:  
**Howto**  
By default, the web-proxy is listening on port 8080. Therefore we first need to redirect all traffic on port 80 to port 8080 with a DST-NAT firewall rule and ensure that the web-proxy service is enabled and listening to port 8080.  
To enable a transparent web proxy on Mikrotik, perform the following:

```plaintext
ip firewall nat add in-interface=ether1 dst-port=80 protocol=tcp action=redirect to-ports=8080 chain=dstnat 
ip proxy set enabled=yes port=8080

```

Pay particular attention to locking down the security of the web-proxy. Read about the /ip proxy access command!  
It is also important to consider the size of the cache and all the various other parameters you can change on the web-proxy, however this is outside the scope of this article.
