当前位置:网站首页>Configure iptables
Configure iptables
2022-04-23 18:32:00 【Drunken Xiaobai】
1、 Back up previous configuration files
cp /etc/sysconfig/iptables /tmp/iptable`date +%y%m%d%H`.bak
2、 Port rules before cleanup
vi /etc/sysconfig/iptables
3、 Add access rule
iptables -A INPUT -s x.x.x.x -p tcp -m multiport --dports 22,80,3000 -j ACCEPT
4、 restart iptables
service iptables save
service iptables restart
5、 see iptables
iptables -L
6、 Access validation
版权声明
本文为[Drunken Xiaobai]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231829110805.html
边栏推荐
- CISSP certified daily knowledge points (April 15, 2022)
- QT notes on qmap container freeing memory
- C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
- Creation and use of QT dynamic link library
- Mysql database backup command -- mysqldump
- CISSP certified daily knowledge points (April 12, 2022)
- QT error: no matching member function for call to ‘connect‘
- 多功能工具箱微信小程序源码
- Interpretation and compilation of JVM
- listener.log
猜你喜欢

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

Use of regular expressions in QT

From source code to executable file

ctfshow-web361(SSTI)

Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha

ctfshow-web362(SSTI)

With the use of qchart, the final UI interface can be realized. The control of qweight can be added and promoted to a user-defined class. Only the class needs to be promoted to realize the coordinate

How to restore MySQL database after win10 system is reinstalled (mysql-8.0.26-winx64. Zip)

Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash

Introduction to quantexa CDI syneo platform
随机推荐
Resolves the interface method that allows annotation requests to be written in postman
Rust: the output information of println is displayed during the unit test
Introduction to quantexa CDI syneo platform
PowerDesigner various font settings; Preview font setting; SQL font settings
Daily CISSP certification common mistakes (April 18, 2022)
SQL database syntax learning notes
Dynamically add default fusing rules to feign client based on sentinel + Nacos
CANopen usage method and main parameters of object dictionary
昇腾 AI 开发者创享日全国巡回首站在西安成功举行
Robocode tutorial 3 - Robo machine analysis
数据库上机实验四(数据完整性与存储过程)
【ACM】509. 斐波那契数(dp五部曲)
Daily CISSP certification common mistakes (April 13, 2022)
Daily CISSP certification common mistakes (April 15, 2022)
登录和发布文章功能测试
Daily CISSP certification common mistakes (April 14, 2022)
CISSP certified daily knowledge points (April 13, 2022)
Pointers in rust: box, RC, cell, refcell
Excel intercept text
ctfshow-web361(SSTI)