当前位置:网站首页>配置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
边栏推荐
- Realization of consumer gray scale
- ESP32 LVGL8. 1 - anim animation (anim 16)
- RC smart pointer in rust
- CISSP certified daily knowledge points (April 11, 2022)
- Jeecg boot microservice architecture
- 机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
- QT reading and writing XML files (including source code + comments)
- JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞
- Stm32mp157 wm8960 audio driver debugging notes
- 纠结
猜你喜欢
Dock installation redis
QT tablewidget insert qcombobox drop-down box
Imx6 debugging LVDS screen technical notes
Setting up keil environment of GD single chip microcomputer
STM32学习记录0008——GPIO那些事1
纠结
昇腾 AI 开发者创享日全国巡回首站在西安成功举行
由tcl脚本生成板子对应的vivado工程
【数学建模】—— 层次分析法(AHP)
Kettle paoding jieniu Chapter 17 text file output
随机推荐
Mode of interprocess communication
串口调试工具cutecom和minicom
Excel intercept text
Daily network security certification test questions (April 18, 2022)
QT curve / oscilloscope customplot control
深度学习经典网络解析目标检测篇(一):R-CNN
Multi thread safe reference arc of rust
Connection mode of QT signal and slot connect() and the return value of emit
Imx6 debugging LVDS screen technical notes
STM32 learning record 0008 - GPIO things 1
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
Deep learning classic network analysis and target detection (I): r-cnn
【ACM】509. 斐波那契数(dp五部曲)
玻璃体中的硫酸软骨素
纠结
CISSP certified daily knowledge points (April 13, 2022)
CISSP certified daily knowledge points (April 12, 2022)
CISSP certified daily knowledge points (April 19, 2022)
NVIDIA Jetson: GStreamer and openmax (GST OMX) plug-ins
After CANopen starts PDO timing transmission, the heartbeat frame time is wrong, PDO is delayed, and CANopen time axis is disordered