当前位置: 首页 > news >正文

杭州滨江网站开发/产品策划推广方案

杭州滨江网站开发,产品策划推广方案,甘肃疫情最新数据消息,税务局网站作风建设一、基本操作#启动防火墙service iptables start#停止防火墙service iptables stop#重启防火墙service iptables restart#查询防火墙运行等状态信息service iptables status#永久关闭防火墙chkconfig iptables off#永久关闭防火墙之后要启用chkconfig iptables on#保存对防火墙…
一、基本操作
#启动防火墙
service iptables start
#停止防火墙
service iptables stop
#重启防火墙
service iptables restart
#查询防火墙运行等状态信息
service iptables status
#永久关闭防火墙
chkconfig iptables off
#永久关闭防火墙之后要启用
chkconfig iptables on
#保存对防火墙的设置
serivce iptables save
二、往防火墙添加规则
1)、直接编辑/etc/sysconfig/iptables
569980-20161129150159334-1116556741.png
2)、通过命令进行添加
开放8080端口
#入栈规则
iptables -A  INPUT    -p tcp --dport 8080 -j ACCEPT
#出栈规则
iptables -A OUTPUT -p tcp --sport 8080 -j ACCEPT
禁止某个IP访问
iptables -A INPUT -p tcp -s 192.168.1.2 -j DROP
删除规则
iptables -D INPUT 2   #删除INPUT链编号为2的规则

参数讲解:
-A 添加一条规则
-p 指定协议,我们常用的tcp 协议,当然也有udp,例如53端口的DNS
--dport 进入端口,当数据从外部进入服务器为目标端口
--sport 出入端口,数据从服务器出去,则为数据源端口使用 
-j 就是指定是 ACCEPT 接收,或者 DROP 不接收
-s 指定来源IP等(如192.168.1.2)

具体看iptables --help
Usage: iptables -[ACD] chain rule-specification [options]
             iptables -I chain [rulenum] rule-specification [options]
             iptables -R chain rulenum rule-specification [options]
             iptables -D chain rulenum [options]
             iptables -[LS] [chain [rulenum]] [options]
             iptables -[FZ] [chain] [options]
             iptables -[NX] chain
             iptables -E old-chain-name new-chain-name
             iptables -P chain target [options]
             iptables -h (print this help information)
Commands:
Either long or short options are allowed.
  --append  -A chain Append to chain
  --check     -C chain Check for the existence of a rule
  --delete     -D chain Delete matching rule from chain
  --delete     -D chain rulenum                  Delete rule rulenum (1 = first) from chain
  --insert      -I    chain [rulenum]                Insert in chain as rulenum (default 1=first)
  --replace   -R   chain rulenum     Replace rule rulenum (1 = first) in chain
  --list           -L    [chain [rulenum]]     List the rules in a chain or all chains
  --list-rules -S    [chain [rulenum]]             Print the rules in a chain or all chains
  --flush        -F    [chain]                      Delete all rules in  chain or all chains
  --zero        -Z    [chain [rulenum]]      Zero counters in chain or all chains
  --new        -N    chain                      Create a new user-defined chain
  --delete  -chain   -X [chain]              Delete a user-defined chain
  --policy     -P     chain target              Change policy on chain to target
  --rename-chain            
                   -E     old-chain new-chain       Change chain name, (moving any references)
Options:
[!] --proto -p proto protocol: by number or name, eg. `tcp'
[!] --source    -s address[/mask][...]        source specification
[!] --destination -d address[/mask][...]        destination specification
[!] --in-interface -i input name[+]        network interface name ([+] for wildcard)
    --jump            -j target        target for rule (may load target extension)
    --goto            -g chain                               jump to chain with no return
   --match   -m match        extended match (may load extension)
   --numeric   -n                                numeric output of addresses and ports
[!] --out-interface -o output name[+]        network interface name ([+] for wildcard)
  --table           -t table                                table to manipulate (default: `filter')
  --verbose   -v                                verbose mode
  --line-numbers                                print line numbers when listing
  --exact          -x                                expand numbers (display exact values)
[!] --fragment  -f                                match second or further fragments only
  --modprobe=<command>                try to insert modules using this command
  --set-counters PKTS BYTES                set the counter during insert/append
[!] --version -V                                print package version.















来自为知笔记(Wiz)


转载于:https://www.cnblogs.com/workky/p/6113681.html

http://www.lbrq.cn/news/1543069.html

相关文章:

  • 新能源汽车十大名牌/吴中seo页面优化推广
  • 山西seo排名/seo平台优化服务
  • 佛山网站建设哪个好点/怎样推广自己的产品
  • 重庆高端网站设计公司/苏州市网站
  • 制作企业网站html/百度榜单
  • 专业做酒店装修的公司/怎么做网络推广优化
  • 网站开发公司所需投入资源/微信软文范例大全100
  • wordpress 知识库/开封网站seo
  • wordpress emlog zblog/威海seo优化公司
  • 宁波企业网站建站/商业网站
  • 网站标签优化/大的网站建设公司
  • 做网站时怎么裁切存图/上海app网络推广公司
  • 设计app/seo引擎优化外包
  • 企业做网站公司有哪些/贺贵江seo教程
  • 如何汉化wordpress/seo搜索引擎优化价格
  • a做爰网站/百度推广怎么做免费
  • 网站开发 平台建设/凡科建站和华为云哪个好
  • 好学校平台网站模板下载不了/网站优化 推广
  • 网站后台超链接怎么做/网推拉新app推广接单平台
  • 黑龙江省建设工程网/武汉网站搜索引擎优化
  • 吴川网站建设/什么是seo优化?
  • 如何诊断网站为何被降权/百度seo通科
  • 彭州建设网站/苏州关键词排名提升
  • 都匀市住房和城乡建设局网站/百度指数数据分析
  • wordpress 主题自制/福州短视频seo网站
  • 阿里做的网站后台怎么进/太原网站建设方案咨询
  • 注册网站会不会有风险/如何做谷歌优化
  • ubuntu wordpress 搭建/seo软件系统
  • 深圳网站设计廊坊公司/做网站推广
  • 东营网站建设推广/合肥关键词快速排名
  • STM32存储结构
  • ios使用saveVideoToPhotosAlbum 保存视频失败提示 invalid video
  • RecSys:粗排模型和精排特征体系
  • 使用websockets中的一些问题和解决方法
  • Vue3 中使用 Element Plus 完整指南
  • Kafka的ISR、OSR、AR详解