My problem seems to be that my http traffic is not redirecting through the web-proxy automatically.
What I originally forgot is that since the http requests pass through the proxy, it is automatically logged with no need to additional logging rules. I forgot this because my proxy redirect is not working. Can anyone help me understand why it is not automatically receiving port 80 traffic redirected to port 8080.
I turned on web-proxy with the following settings:
[admin@MikroTik] ip web-proxy> print
enabled: yes
src-address: 0.0.0.0
port: 8080
hostname: "proxy"
transparent-proxy: yes
parent-proxy: 0.0.0.0:0
cache-administrator: "webmaster"
max-object-size: 4096KiB
cache-drive: system
max-cache-size: none
max-ram-cache-size: unlimited
status: running
reserved-for-cache: 0KiB
reserved-for-ram-cache: 2048KiB
And then I have the following dst-nat rules:
[admin@MikroTik] ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; masquerade hotspot network
chain=srcnat src-address=10.10.10.0/24 action=masquerade
1 chain=dstnat in-interface=wlan1 dst-address=!10.10.10.1 protocol=tcp dst-port=80 action=redirect to-ports=8080
Rule 1 should forward all wireless port 80 traffic to the proxy on 8080 no matter what the hotspot user has set in his web browser, right?
It is only sending traffic to web-proxy if I set my browser proxy settings to manually point to the proxy. I does not work automatically for some reason. I am using 2.9.8
Any ideas why? I must be missing something simple...
Thanks