24 lines
595 B
Markdown
24 lines
595 B
Markdown
# <p align="center">屏蔽外部IP</p>
|
|
## 程序
|
|
iptables<br>
|
|
### 程序安装
|
|
```c
|
|
sudo su
|
|
apt update
|
|
apt install iptables
|
|
```
|
|
## 配置可执行程序
|
|
```c
|
|
# 编辑脚本或直接将文件放入指定目录
|
|
vim ~/uplink_outbound.sh
|
|
|
|
# 赋予执行权限
|
|
chmod +x ~/uplink_outbound.sh
|
|
|
|
# 启动程序
|
|
./uplink_outbound.sh
|
|
```
|
|
## 注意
|
|
注意部分程序运行需要用到上行带宽,完全屏蔽可能引发问题。<br>
|
|
可以放行部分地区的ip来保证大部分程序正常运行。<br>
|
|
你可以在[`iplist`](https://github.com/metowolf/iplist)项目中查看所需地区的IP段。 |