瀏覽代碼

added README example

pull/13/head
Piotr Pieprzycki 7 年之前
父節點
當前提交
91ac149b2b
共有 1 個檔案被更改,包括 24 行新增0 行删除
  1. +24
    -0
      README.rst

+ 24
- 0
README.rst 查看文件

@@ -90,6 +90,30 @@ Allow access from local network
jump: ACCEPT
comment: Blah

Support logging with custom prefix and log level

.. code-block:: yaml

parameters:
iptables:
service:
chain:
POSTROUTING:
rules:
- table: nat
protocol: tcp
match: multiport
destination_ports:
- 21
- 80
- 443
- 2220
source_network: '10.20.30.0/24'
log_level: 7
log_prefix: 'iptables-logging: '
jump: LOG


IPv6 is supported as well

.. code-block:: yaml

Loading…
取消
儲存