当前位置:网站首页>配置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
边栏推荐
- Daily network security certification test questions (April 15, 2022)
- Daily network security certification test questions (April 12, 2022)
- Serialization scheme of serde - trust
- QT curve / oscilloscope customplot control
- 【数学建模】—— 层次分析法(AHP)
- Robocode tutorial 5 - enemy class
- MATLAB从入门到精通(二)
- CISSP certified daily knowledge points (April 18, 2022)
- Daily CISSP certification common mistakes (April 13, 2022)
- 7-21 wrong questions involve knowledge points.
猜你喜欢
Halo 开源项目学习(七):缓存机制
Introduction to quantexa CDI syneo platform
Qt读写XML文件(含源码+注释)
From source code to executable file
From introduction to mastery of MATLAB (2)
多功能工具箱微信小程序源码
QT tablewidget insert qcombobox drop-down box
Hard core parsing promise object (do you know these seven common APIs and seven key questions?)
Closure type of rust (difference between FN, fnmut and fnone)
Resolve the error Max virtual memory areas VM max_ map_ count [65530] is too low, increase to at least [262144]
随机推荐
Rust: the output information of println is displayed during the unit test
Function recursion and solving interesting problems
Daily CISSP certification common mistakes (April 14, 2022)
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
How to restore MySQL database after win10 system is reinstalled (mysql-8.0.26-winx64. Zip)
ESP32 LVGL8. 1 - event (event 17)
Matlab tips (6) comparison of seven filtering methods
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
powerdesigner各种字体设置;preview字体设置;sql字体设置
Daily CISSP certification common mistakes (April 13, 2022)
【ACM】376. 摆动序列
Ionic instruction set order from creation to packaging
硬核解析Promise對象(這七個必會的常用API和七個關鍵問題你都了解嗎?)
Daily network security certification test questions (April 15, 2022)
C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
Domestic GD chip can filter
【ACM】509. Fibonacci number (DP Trilogy)
Rust: how to implement a thread pool?
Rust: how to match a string?
QT curve / oscilloscope customplot control