❗️Toto je původní verze internetového fóra ISPforum.cz do února 2020 bez možnosti registrace nových uživatelů. Aktivní verzi fóra naleznete na adrese https://telekomunikace.cz

při výpadku internetu přesměrování na informační stránku

Návody a problémy s konfigurací.
netko
Příspěvky: 73
Registrován: 16 years ago

uz mi to vypina a zapina firewal pojde mi to?

Příspěvekod netko » 15 years ago

/tool netwatch
add comment=NIX.cz disabled=yes down-script=":log warning (\"six nejde! ******\
***************\")\r\
\n\r\
\n/ip firewall nat { enable [find comment=HTTP_REDIRECT] }\r\
\n/ip dns static { enable [find address=192.168.2.2] }" host=\
194.160.23.22 interval=30s timeout=5s up-script=":log warning (\"NIX nejde\
! *********************\")\r\
\n\r\
\n/ip firewall nat { disable [find comment=HTTP_REDIRECT] }\r\
\n/ip dns static { disable [find address=192.168.2.2] }"

/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB \
max-udp-packet-size=512 primary-dns=195.146.132.59 secondary-dns=0.0.0.0
/ip dns static
add address=192.168.2.2 disabled=yes name=".*\\.*" ttl=25s

/ip firewall nat
add action=dst-nat chain=dstnat comment=HTTP_REDIRECT disabled=yes dst-port=\
80 protocol=tcp src-address-list=!vyjimka to-addresses=192.168.2.2 \
to-ports=80

pekne to zapina a vypina firewall a dns len ci to ide to neviem lebo som v nemocnici mozete to niekto preverit v praxi

Stefan
0 x

forkman
Příspěvky: 339
Registrován: 15 years ago
antispam: Ano
Bydliště: východní Čechy

Příspěvekod forkman » 15 years ago

Já mám právě problém, že mi nefunguje to firewall pravidlo, respektive pravidlo funguje, ale nechová se tak, jak bych potřeboval :)
0 x