Vaisravana

Vaisravana

网络安全

iptables配置中新增允许公网访问的端口

本文章用于记录iptables配置中新增允许公网访问的端口,取自与deepseek的问答,写成文章以做备忘 root@rbm-GJHCEmOw:~# iptables -L INPUT -n -v --line-numbers Chain INPUT (policy DROP 0 packets,
39
0
0
2025-02-04

在Debian服务器上实现屏蔽过滤海外IP来源

在Debian服务器上实现该需求,可通过iptables+ipset方案实现。以下是分步指南: 一、基础环境准备 # 安装依赖 sudo apt update sudo apt install -y iptables ipset curl # 创建ipset集合(中国IP段) sudo ipset
24
0
0
2025-01-29