惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - dhb133

ftp被动模式和主动模式分析 mysql 开启慢查询命令【转】 SQL SERVER 2005 数据库状态为“可疑”的解决方法 【转自网络】 命令mstsc.exe /console不能登陆console模式了 用iptables来防止web服务器被CC攻击 bind 安装与简单配置文档 使用blackice黑冰防火墙拦截ping的方法【转】 sql2005阻止了对组件 'Ad Hoc Distributed Queries' 的 问题 mssql 2005 开启1433端口(转) - dhb133 清除tempdb数据库日志 ODBC 驱动程序不支持所需的属性的解决办法 - dhb133 - 博客园 计算表空间的存储过程 按小时查询总数 改了机器名后不能修改sql任务解决办法 msxml3.dll error '80072efd' 错误的解决办法 - dhb133 安全设置【转】 恢复删除的系统存储过程 sql恢复xp_regread - dhb133 - 博客园 总结windows下堆溢出的三种利用方式 - dhb133 - 博客园
iptables配置
dhb133 · 2009-05-13 · via 博客园 - dhb133

iptables -A INPUT -s 121.8.107.2 -p tcp --dport 9988 -j ACCEPT

 hosts,host.conf,resolv.conf,

/etc/init.d/iptables save #会保存规则到/etc/sysconfig/iptables
iptables-save #保存规则不是/etc/sysconfig/iptables
iptables-save > /etc/sysconfig/iptables   #保存规则到/etc/sysconfig/iptables
service iptables restart 重启iptables会加载/etc/sysconfig/iptables里面的规则。

修改 /etc/sysconfig/iptables-config文件中的
IPTABLES_SAVE_ON_RESTART="no"
为IPTABLES_SAVE_ON_RESTART="yes" 也可以保存规则到/etc/sysconfig/iptables。

如果不清楚之前的规则,就要用I,不能用A。
iptables -I INPUT -s 121.8.107.2 -p tcp --dport 9988 -j ACCEPT

Chain RH-Firewall-1-INPUT 是系统创建的规则保存名字
也可以 iptables -I RH-Firewall-1-INPUT -s 121.8.107.2 -p tcp --dport 9988 -j ACCEPT

其实直接编辑/etc/sysconfig/iptables 往里面写东西也可以

setup和service iptables使用的配置文件不同。
setup每次被调用时,都会先读取自己的配置文件(Redhat中,此文件为/etc/sysconfig/system-config- securitylevel),当保存setup的配置时,配置信息会写入此文件,并重写/etc/sysconfig/iptables。