# 二次登录防火墙

> /ip firewall address-list add address=10.0.0.0/8 list=login&#x20;
>
> /ip firewall address-list add address=172.16.0.0/12 list=login&#x20;
>
> /ip firewall address-list add address=192.168.0.0/16 list=login&#x20;
>
> /ip firewall mangle add chain=input protocol=tcp dst-port=8888 action=add-src-to-address-list address-list=login address-list-timeout=30m comment=login&#x20;
>
> /ip firewall filter add chain=input protocol=udp dst-port=53 src-address-list=!login action=drop comment=login
>
> /ip firewall filter add chain=input protocol=tcp dst-port=8728,8729,21,22,23,53,80,2000,8291 src-address-list=!login action=drop comment=login

> 上面的脚本，能修改的地方就是8888端口。然后导入脚本， 登陆winbox先加端口8888登陆一次， 就可以用WINBOX默认端口登陆了

<figure><img src="/files/SIp3PGzfrDbXgSgo6zCX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.winbox.org/firewall/firewall2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
