Hi.
Is it possible to setup a reverse proxy to ask visitors for authentication?
I want to publish an internal web page which is not capable of authenticating users.
I successfully setup a reverse proxy which does the publishing job, but I can not find a way to make it ask external users for username/password before giving them the content from internal server.
May be it would be possible to use hotspot functionality in this reverse way, but I was unable to figure out if and how it could be done.
My current setup:
;;Enable proxy:
/ip proxy
set anonymous=yes cache-path=web-proxy1 enabled=yes max-cache-size=none max-client-connections=100 max-fresh-time=1d max-server-connections=100 parent-proxy=0.0.0.0
;;Allow only specific URL to be requested
/ip proxy access
add dst-host=srv.example.com dst-port=80 path=/page.html
add action=deny
;;Redirect requests to proxy
/ip firewall nat
add action=redirect chain=dstnat dst-address=213.226.X.X dst-port=80 protocol=tcp to-ports=8080
;;Add static record for host-name pointing to internal network
/ip dns static
add address=10.3.Y.Y name=srv.example.com
I don’t know what the meaning of “anonymous=yes” setting is. Changing it to “no” does not change anything…
regards
George