From ba50618b51ca5f49e9c0b0997d4691f82ade75b4 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 11 Jan 2025 16:09:29 -0700 Subject: [PATCH] docs: update rdr docs with code block for options --- docs/chapters/subcommands/rdr.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/chapters/subcommands/rdr.rst b/docs/chapters/subcommands/rdr.rst index 2a4f9927..72a9eefa 100644 --- a/docs/chapters/subcommands/rdr.rst +++ b/docs/chapters/subcommands/rdr.rst @@ -43,10 +43,12 @@ specify the interface they run on in rc.conf (or other config files) The `rdr` command includes 4 additional options: -- **-i** | Set a non-default interface on which to create the `rdr` rule. -- **-s** | Limit the source IP on the `rdr` rule. -- **-d** | Limit the destination IP on the `rdr` rule. -- **-t** | Specify network type. Can be "ipv4" or "ipv6". Default is "dual". +.. code-block:: shell + + -i | --interface [interface] Set the interface to create the rdr rule on. Useful if you have multiple interfaces. + -s | --source [source ip] Limit rdr to a source IP. Useful to only allow access from a certian IP or subnet. + -d | --destination [destination ip] Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. + -t | --type [ipv4|ipv6] Specify IP type. Must be used if -s or -d are used. Defaults to both. .. code-block:: shell