当前位置:网站首页>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
边栏推荐
- Closure type of rust (difference between FN, fnmut and fnone)
- 使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
- Multifunctional toolbox wechat applet source code
- Serial port debugging tools cutecom and minicom
- QT error: no matching member function for call to ‘connect‘
- Refcell in rust
- Test questions of daily safety network (February 2024)
- Daily CISSP certification common mistakes (April 12, 2022)
- 线上怎么确定期货账户安全的?
- Rewrite four functions such as StrCmp in C language
猜你喜欢
Promote QT default control to custom control
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
视频边框背景如何虚化,简单操作几步实现
【ACM】455. 分发饼干(1. 大饼干优先喂给大胃口;2. 遍历两个数组可以只用一个for循环(用下标索引--来遍历另一个数组))
MATLAB小技巧(6)七种滤波方法比较
教你用简单几个步骤快速重命名文件夹名
【ACM】509. 斐波那契数(dp五部曲)
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
Win1远程出现“这可能是由于credssp加密oracle修正”解决办法
【数学建模】—— 层次分析法(AHP)
随机推荐
软件测试总结
PowerDesigner various font settings; Preview font setting; SQL font settings
Dynamically add default fusing rules to feign client based on sentinel + Nacos
14个py小游戏源代码分享第二弹
CISSP certified daily knowledge points (April 19, 2022)
C language to achieve 2048 small game direction merging logic
Cutting permission of logrotate file
SQL database syntax learning notes
14 py games source code share the second bullet
ESP32 LVGL8. 1 - BTN button (BTN 15)
What are the relationships and differences between threads and processes
Linux installs MySQL in RPM (super simple)
Install the yapiupload plug-in in idea and upload the API interface to the Yapi document
Multi thread safe reference arc of rust
CISSP certified daily knowledge points (April 11, 2022)
C medium? This form of
Closure type of rust (difference between FN, fnmut and fnone)
JD-FreeFuck 京东薅羊毛控制面板 后台命令执行漏洞
多功能工具箱微信小程序源码
配置iptables