システム管理者を祝福するために、オフィスの全員に注意を促します

ご存知のように、今日はシステム管理者の日ですが、私のオフィスでは誰もがそれを知っているわけではありません。 これを修正するために、同僚向けの小さな漫画リマインダーを作成しました。 Mikrotikの機器を使用しているため、すべてを実装しました。

画像


しかし、アイデアは単純です。今のところ、忘れっぽい同僚がインターネットをサーフィンして、目的のサイトではなくリマインダーページを表示し、しばらくして金曜日の夕方に見たいものを表示する必要があります。

これらの目的のために、プロキシサーバーをMikrotikに上げます

/ip proxy set enabled=yes

次に、エラーレポートページをリセットします。

/ip proxy reset-html

彼らは私たちに尋ねます:

Current html pages will be lost! Reset anyway? [y/N]:

そして大胆に「y」を押します

次に、プロキシを通過するすべてのページをブロックするルールを作成します

/ip proxy access add action=deny disabled=no

winboxで
画像


webproxy / error.htmlページがMikrotikに表示されます。 ここに追加します:変数$(url)には、ユーザーが行きたい場所であるリンク先URLが含まれています。 ページでリダイレクトを行いました:



:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin

:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin

:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin

:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +


:

画像

Winbox 画像

80 , Ok - .

/ip firewall nat add disabled=no chain=dstnat protocol=tcp dst-port=80 src-address-list=!Ok action=redirect to-ports=8080 comment=sysadmin


:

/ip firewall nat move [find comment=sysadmin] destination=0

Winbox 画像 画像 画像

Ok :

/ip firewall filter add disabled=no chain=input protocol=tcp dst-port=8080 action=add-src-to-address-list address-list=Ok address-list-timeout=15m comment=sysadmin

timeout 15

Winbox 画像 画像

http . 15 .

.

. :
( ). (pptp, l2tp, pppoe) dhcp , ( ), . . . . . URL - . ...

PS
.
. address-list-timeout . , , Ok


:
Manual:IP/Proxy
How to make transparent web proxy
MikroTIK +

Source: https://habr.com/ru/post/J231103/


All Articles