当前位置:网站首页>配置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
边栏推荐
- QT excel operation summary
- powerdesigner各种字体设置;preview字体设置;sql字体设置
- CISSP certified daily knowledge points (April 19, 2022)
- Software test summary
- Reptile efficiency improvement method
- 硬核解析Promise对象(这七个必会的常用API和七个关键问题你都了解吗?)
- Stm32mp157 wm8960 audio driver debugging notes
- 7-21 wrong questions involve knowledge points.
- The vivado project corresponding to the board is generated by TCL script
- Rust: the output information of println is displayed during the unit test
猜你喜欢

Resolves the interface method that allows annotation requests to be written in postman

机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式

机器学习理论之(8):模型集成 Ensemble Learning

【ACM】70. 爬楼梯

昇腾 AI 开发者创享日全国巡回首站在西安成功举行

QT add external font ttf

Spark performance optimization guide

C medium? This form of

Custom prompt box MessageBox in QT

7-21 wrong questions involve knowledge points.
随机推荐
ESP32 LVGL8. 1 - BTN button (BTN 15)
Notepad + + replaces tabs with spaces
CISSP certified daily knowledge points (April 11, 2022)
Using transmittablethreadlocal to realize parameter cross thread transmission
【ACM】509. Fibonacci number (DP Trilogy)
In shell programming, the shell file with relative path is referenced
Gson fastjason Jackson of object to JSON difference modifies the field name
CISSP certified daily knowledge points (April 15, 2022)
QT error: no matching member function for call to ‘connect‘
【ACM】70. climb stairs
Correct opening method of option
机器学习理论之(8):模型集成 Ensemble Learning
Differences between SSD hard disk SATA interface and m.2 interface (detailed summary)
Log4j2 cross thread print traceid
Daily network security certification test questions (April 18, 2022)
Reptile efficiency improvement method
Rust: shared variable in thread pool
多功能工具箱微信小程序源码
Keil RVMDK compiled data type
Rust: a simple example of TCP server and client