/ip proxy
set enabled=yes
set src-address=0.0.0.0
set port=8080
set parent-proxy=0.0.0.0
set parent-proxy-port=0
set cache-administrator="webmaster"
set max-cache-size=none
set cache-on-disk=no
set max-client-connections=600
set max-server-connections=600
set max-fresh-time=3d
set always-from-cache=no
set cache-hit-dscp=4
set serialize-connections=no
/ip firewall nat add action=redirect chain=dstnat disabled=no dst-port=80 protocol=tcp to-ports=8080
/system logging action
add name=syslog remote=192.168.2.3 target=remote
/system logging
add action=syslog topics=web-proxy,!debug
add action=syslog topics=script,info
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
mac-cookie-timeout=3d on-login=":local whouser \$user;\r\
\n:local whoip \$address;\r\
\n:local macaddr [/ip hotspot active get [find user=\$whouser] mac-address\
];\r\
\n\r\
\n:log info (\"User Login:\".\$whouser.\" IP :\".\$whoip.\" Mac:\".macaddr\
);" on-logout=":log info (\"User Logout: \".\$user);"