Kubernetes Notes
  • README
  • 序:Kubernetes之道
  • 搭建开发环境
    • 搭建本地开发测试环境
  • 基本概念
    • Workloads
      • StatefulSet
    • 认证鉴权
      • 理解证书
      • Kubelet配置
    • 垃圾回收
    • Service
  • 基础组件
    • Scheduler
    • 自动扩缩容(HPA)
  • 容器运行时(Container Runtime)
    • CRI
    • Docker
      • 安装配置Docker
      • Docker FAQ
    • Containerd
  • 资源隔离与限制
    • 基础知识
      • Cgroup
      • Namespaces
    • CPU
    • Memory
    • 网络出/入带宽
    • GPU
    • Container
    • FAQ
  • 网络
    • 基础知识
      • Linux network interfaces
      • Iptables
      • Overlay network
    • CNI
    • Flannel
      • Flannel原理
      • host-gw
      • vxlan
      • ipip
    • Calico
    • Cilium
  • Service Mesh
    • Istio
  • 扩展Kubernetes
    • Admission controller
    • Custom resource definition(CRD)
    • Scheduler extender
    • 扩展资源维度
    • Kubectl plugin
    • Aggregator
    • Device plugin
  • 现网问题
    • Kubernetes
    • ETCD
    • Docker
  • 最佳实践
    • 各组件参数配置调优
    • 各大公司生产环境实践
    • 如何打造一个Kubernetes平台
  • 生产力小工具
    • 生成特定权限和配额的kubeconfig
  • 社区贡献
  • 学习资料
  • 附录:RTFSC
    • Informer
    • Pod deletion
Powered by GitBook
On this page
  • Target
  • Iptables modules
  • 参考资料

Was this helpful?

  1. 网络
  2. 基础知识

Iptables

PreviousLinux network interfacesNextOverlay network

Last updated 6 years ago

Was this helpful?

通过了解iptables的基本概念(table, chain, target, module)和原理,掌握一些常用使用方法。以后遇到不懂的基本可以通过iptables -h或man iptables解决。

下面的图对于理解iptables有一些帮助。

Packet flow in Netfilter and General Networking

Prerouting -> routing(路由) -> |--> input -> 进程处理 -> output -> postrouting

​ |--> forward

Target

LOG和TRACE target可以用来debug。

Iptables modules

参考资料

-m后面接的是module name,列出所有的modules的命令:cat /proc/net/ip_tables_matches,关于各个module的详细使用见。

An In-Depth Guide to iptables, the Linux Firewall:

iptables-extensions:

A Deep Dive into Iptables and Netfilter Architecture:

Iptables Tutorial 1.2.2:

iptables-extensions
https://www.booleanworld.com/depth-guide-iptables-linux-firewall/
http://ipset.netfilter.org/iptables-extensions.man.html
https://www.digitalocean.com/community/tutorials/a-deep-dive-into-iptables-and-netfilter-architecture
https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html
An In-Depth Guide to iptables, the Linux Firewall