当前位置:网站首页>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
边栏推荐
- ESP32 LVGL8. 1 - event (event 17)
- QT curve / oscilloscope customplot control
- QT reading and writing XML files (including source code + comments)
- Cutting permission of logrotate file
- Const keyword, variable and function are decorated with const
- C language to achieve 2048 small game direction merging logic
- 数据库上机实验四(数据完整性与存储过程)
- 14 py games source code share the second bullet
- Quantexa CDI(场景决策智能)Syneo平台介绍
- Setting up keil environment of GD single chip microcomputer
猜你喜欢
Notepad + + replaces tabs with spaces
Halo 开源项目学习(七):缓存机制
Matlab tips (6) comparison of seven filtering methods
【ACM】455. 分发饼干(1. 大饼干优先喂给大胃口;2. 遍历两个数组可以只用一个for循环(用下标索引--来遍历另一个数组))
WIN1 remote "this may be due to credssp encryption Oracle correction" solution
MATLAB小技巧(6)七种滤波方法比较
函数递归以及趣味问题的解决
QT add external font ttf
Robocode tutorial 3 - Robo machine analysis
STM32 learning record 0008 - GPIO things 1
随机推荐
Multi thread safe reference arc of rust
Serial port debugging tools cutecom and minicom
Pointers in rust: box, RC, cell, refcell
Can filter
MATLAB从入门到精通(二)
MATLAB小技巧(6)七种滤波方法比较
Mysql database backup command -- mysqldump
Setting up keil environment of GD single chip microcomputer
How to ensure the security of futures accounts online?
【数学建模】—— 层次分析法(AHP)
Stm32mp157 wm8960 audio driver debugging notes
Linux installs MySQL in RPM (super simple)
Daily network security certification test questions (April 18, 2022)
CISSP certified daily knowledge points (April 15, 2022)
iptables初探
CISSP certified daily knowledge points (April 11, 2022)
Daily network security certification test questions (April 15, 2022)
CANopen usage method and main parameters of object dictionary
Cygwin64 right click to add menu, and open cygwin64 here
Nodejs installation