当前位置:网站首页>配置iptables
配置iptables
2022-04-23 18:29:00 【喝醉酒的小白】
1、备份之前的配置文件
cp /etc/sysconfig/iptables /tmp/iptable`date +%y%m%d%H`.bak
2、清理之前端口规则
vi /etc/sysconfig/iptables
3、添加访问规则
iptables -A INPUT -s x.x.x.x -p tcp -m multiport --dports 22,80,3000 -j ACCEPT
4、重启iptables
service iptables save
service iptables restart
5、查看iptables
iptables -L
6、访问验证
版权声明
本文为[喝醉酒的小白]所创,转载请带上原文链接,感谢
https://blog.csdn.net/hezuijiudexiaobai/article/details/124359362
边栏推荐
- Closure type of rust (difference between FN, fnmut and fnone)
- Robocode tutorial 8 - advanced robot
- Quantexa CDI(场景决策智能)Syneo平台介绍
- 玻璃体中的硫酸软骨素
- SQL database syntax learning notes
- 机器学习理论之(8):模型集成 Ensemble Learning
- C language to achieve 2048 small game direction merging logic
- 深度学习经典网络解析目标检测篇(一):R-CNN
- Pointers in rust: box, RC, cell, refcell
- 【ACM】376. Swing sequence
猜你喜欢

Halo 开源项目学习(七):缓存机制

Vulnérabilité d'exécution de la commande de fond du panneau de commande JD - freefuck

多功能工具箱微信小程序源码

Docker 安裝 Redis

Dynamically add default fusing rules to feign client based on sentinel + Nacos

使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA

JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞

Setting up keil environment of GD single chip microcomputer

Differences between SSD hard disk SATA interface and m.2 interface (detailed summary)

MATLAB从入门到精通(二)
随机推荐
Daily network security certification test questions (April 18, 2022)
Daily CISSP certification common mistakes (April 14, 2022)
STM32学习记录0008——GPIO那些事1
Box pointer of rust
14 py games source code share the second bullet
【ACM】509. 斐波那契数(dp五部曲)
机器学习实战 -朴素贝叶斯
Mysqldump backup database
玻璃体中的硫酸软骨素
硬核解析Promise對象(這七個必會的常用API和七個關鍵問題你都了解嗎?)
WIN1 remote "this may be due to credssp encryption Oracle correction" solution
Reptile efficiency improvement method
【ACM】376. Swing sequence
Domestic GD chip can filter
【数学建模】—— 层次分析法(AHP)
Robocode tutorial 5 - enemy class
Jeecg boot microservice architecture
Connection mode of QT signal and slot connect() and the return value of emit
Log4j2 cross thread print traceid
JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞