月与灯依旧

不见去年人, 泪湿春衫袖。

  • 首页
  • 电脑网络
    • 免费资源
    • 资源下载
  • 胡说八道
  • 记录生活
  • 网站建设
  • 编程学习
  • Linux运维
  • 关于我
    • 我是谁?
    • 免责声明
    • 友情链接
    • LAMP一键安装包
    • 留言
  • 煮玉米

iptables delete some rules form a chain

以下两条命令均可用

iptables -t nat -L PREROUTING --line-numbers | grep RULE_NAME | cut -d" " -f 1 | xargs iptables -t nat -D PREROUTING

for i in $(iptables -t nat -nvL PREROUTING --line-numbers | grep RULE_NAME | grep ^[0-9] | awk '{ print $1 }' | tac); do iptables -t nat -D PREROUTING $i; done
Read More
Posted on 2018-03-19 by bear in Linux运维.Tags: centos, Linux, ubuntu.0 Comments

Pages

  • A Good Book
  • about
  • Archives
  • guestbook
  • LAMP
  • links
  • 免责声明
  • 煮玉米

Recent Posts

  • Set up self-hosted runners for Github Actions
  • Javascript Array
  • Get Ubuntu release code name in Script
  • 大学回忆录之2023
  • error converting YAML to JSON: yaml: line 16: found a tab character that violates indentation
  • Protected: 那些年,我所呆过的互联网公司
  • The easiest way to build a http/ftp server with Python
  • pproxy简单介绍
  • How to add or remove a directory from media library on Windows
  • 鼻炎手术

Recent Comments

  • Anonymous on 牛人牛帖:找炮友全攻略
  • Anonymous on 大学回忆录之2023
  • Arthur on 大学回忆录之2023
  • 任我乐 on links
  • 飞猪 on 大学回忆录之2023

Support

友情链接

  • ASIAN HOME DOCTOR
  • ASIAN TRAVEL BLOG
  • Zenoven自由人
  • 同其尘
  • 时间无爱
  • 鸟叔の窝
Bear's Garland Theme Based on Wordpress.