当前位置:网站首页>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
边栏推荐
- Multi thread safe reference arc of rust
- CISSP certified daily knowledge points (April 19, 2022)
- What are the relationships and differences between threads and processes
- Halo open source project learning (VII): caching mechanism
- Ionic instruction set order from creation to packaging
- Introduction to QT programming
- Permission management with binary
- ESP32 LVGL8. 1 - label (style 14)
- STM32 learning record 0008 - GPIO things 1
- 【ACM】455. Distribute Biscuits (1. Give priority to big biscuits to big appetite; 2. Traverse two arrays with only one for loop (use subscript index -- to traverse another array))
猜你喜欢
Closure type of rust (difference between FN, fnmut and fnone)
Function recursion and solving interesting problems
Robocode Tutorial 4 - robocode's game physics
Use of regular expressions in QT
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
Robocode tutorial 7 - Radar locking
JD-FreeFuck 京東薅羊毛控制面板 後臺命令執行漏洞
WiFi ap6212 driver transplantation and debugging analysis technical notes
QT reading and writing XML files (including source code + comments)
iptables -L执行缓慢
随机推荐
Multifunctional toolbox wechat applet source code
Dynamically add default fusing rules to feign client based on sentinel + Nacos
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
Daily CISSP certification common mistakes (April 19, 2022)
函数递归以及趣味问题的解决
Daily CISSP certification common mistakes (April 13, 2022)
Vulnérabilité d'exécution de la commande de fond du panneau de commande JD - freefuck
ESP32 LVGL8. 1 - BTN button (BTN 15)
Robocode tutorial 3 - Robo machine analysis
logstash 7. There is a time problem in X. the difference between @ timestamp and local time is 8 hours
How to restore MySQL database after win10 system is reinstalled (mysql-8.0.26-winx64. Zip)
CISSP certified daily knowledge points (April 19, 2022)
Gson fastjason Jackson of object to JSON difference modifies the field name
Spark performance optimization guide
Linux installs MySQL in RPM (super simple)
Can filter
Introduction to quantexa CDI syneo platform
Halo open source project learning (VII): caching mechanism
【ACM】455. Distribute Biscuits (1. Give priority to big biscuits to big appetite; 2. Traverse two arrays with only one for loop (use subscript index -- to traverse another array))
【ACM】70. climb stairs