supr, tak sem hod navod jestli muzes.
/ tool netwatch
add host=192.168.0.1 timeout=5s interval=5m up-script=":delay 60
\n:log \
warning ("GW je OK! Rusim redirect http komunikacie!")
\n
\n/ip firewall nat \
{
\n disable \[find comment=HTTP_REDIRECT\]
\n }" down-script=":log \
warning ("GW nejde! Aktivujem redirect http komunikacie!")
\n
\n/ip firewall \
nat {
\n enable \[find comment=HTTP_REDIRECT\]
\n }" \
comment="GW sledovanie-pocas vypadku prehodi komunikaciu http" disabled=no
/ ip firewall nat
add chain=dstnat in-interface=LAN protocol=tcp dst-port=80 \
action=dst-nat to-addresses=192.168.254.1 \
to-ports=8080 comment="HTTP_REDIRECT" disabled=no
Je dolezite, aby ste maly i error na Apache(code 404) nastaveny na nejaku najlepsie rovnaku hlasku, nakolko nie vzdy sa stane, ze user bude klikat na parent adresar na serveroch v internete. Ja to nepouzivam, presne na takuto funkciu, ale fungovat to bude.