From 95a2561e112192b4834e5c540206067a86786759 Mon Sep 17 00:00:00 2001 From: tschettervictor Date: Sun, 5 Oct 2025 17:33:41 -0600 Subject: [PATCH] update docs --- docs/chapters/subcommands/rdr.rst | 19 ++++++++++--------- usr/local/share/bastille/rdr.sh | 10 +++++----- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/chapters/subcommands/rdr.rst b/docs/chapters/subcommands/rdr.rst index 607e2da0..0f78df00 100644 --- a/docs/chapters/subcommands/rdr.rst +++ b/docs/chapters/subcommands/rdr.rst @@ -34,10 +34,11 @@ The ``rdr`` command includes 4 additional options: .. code-block:: shell - -d | --destination [destination] Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. - -i | --interface [interface] Set the interface to create the rdr rule on. Useful if you have multiple interfaces. - -s | --source [source] Limit rdr to a source IP or table. Useful to only allow access from certain sources. - -t | --type [ipv4|ipv6] Specify IP type. Must be used if -s or -d are used. Defaults to both. + -d | --destination IP Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. + -i | --interface IF,IF Specify interface(s) to apply rule to. Comman separated. + -s | --source IP|table Limit rdr to a source IP or table. + -t | --type ipv4|ipv6 Specify IP type. Must be used if -s or -d are used. Defaults to both. + -x | --debug Enable debug mode. .. code-block:: shell @@ -78,8 +79,8 @@ Simply use the table name instead of an IP address or subnet. Options: - -d | --destination [destination] Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. - -i | --interface [interface] Set the interface to create the rdr rule on. Useful if you have multiple interfaces. - -s | --source [source] Limit rdr to a source IP or table. Useful to only allow access from certain sources. - -t | --type [ipv4|ipv6] Specify IP type. Must be used if -s or -d are used. Defaults to both. - -x | --debug Enable debug mode. + -d | --destination IP Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. + -i | --interface IF,IF Specify interface(s) to apply rule to. Comman separated. + -s | --source IP|table Limit rdr to a source IP or table. + -t | --type ipv4|ipv6 Specify IP type. Must be used if -s or -d are used. Defaults to both. + -x | --debug Enable debug mode. diff --git a/usr/local/share/bastille/rdr.sh b/usr/local/share/bastille/rdr.sh index 6cfe7df6..76996c3a 100644 --- a/usr/local/share/bastille/rdr.sh +++ b/usr/local/share/bastille/rdr.sh @@ -38,11 +38,11 @@ usage() { Options: - -d | --destination [destination] Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. - -i | --interface [interface] Set the interface to create the rdr rule on. Useful if you have multiple interfaces. - -s | --source [source] Limit rdr to a source IP or table. Useful to only allow access from certain sources. - -t | --type [ipv4|ipv6] Specify IP type. Must be used if -s or -d are used. Defaults to both. - -x | --debug Enable debug mode. + -d | --destination IP Limit rdr to a destination IP. Useful if you have multiple IPs on one interface. + -i | --interface IF,IF Specify interface(s) to apply rule to. Comman separated. + -s | --source IP|table Limit rdr to a source IP or table. + -t | --type ipv4|ipv6 Specify IP type. Must be used if -s or -d are used. Defaults to both. + -x | --debug Enable debug mode. EOF exit 1