ipmasq8
Set up ip masquerading
Usage
ipmasq [-dbngrhv]
Overview
This manual page very briefly documents the ipmasq command.
ipmasq sets up IP Masquerading firewall rules using the ipfwadm, ipchains or iptables command, depending on the kernel version.
ipmasq understands the following options:
-
-v, --verbose -
Display the ipfwadm(8) or ipchains(8) commands that will be run.
-
-n, --no-act -
Do not change any firewall rules.
-
-d, --display -
Shorthand for --verbose --no-act .
-
-g, --debug -
Display the names of the rules files as they are being executed.
-
-r -
rules-dir,
--rulesrules-dir Use the rules files found in rules-dir instead of /etc/ipmasq/rules .
-
-V, --version -
Print the version of the ipmasq package to the standard output and exit.
-
-h, --help -
Print a help message to the standard output and exit.
Caveats
ipmasq "takes over" the firewall rules table. To add firewall rules such that they will survive a refresh of the rules table, add them a file in the /etc/ipmasq/rules directory with a .rul extension. See ipmasq-rule(5).
Files
/etc/ipmasq/rules/*.{rul,def}
Rules files. See ipmasq-rule(5).
/etc/ipmasq/ppp
Empty file, which if present, gives ipmasq permission to automatically refresh the rules table automatically when pppd brings a link up or down.
/etc/ipmasq.rules
Deprecated. Additional rules to apply after the default rules. Deprecated. Use a .rul file in /etc/ipmasq/rules instead.
Releases
6 releases since Debian 2.0 (Hamm); the text changed 3 times.
--debug since Debian 2.2 (Potato);
--display since Debian 2.2 (Potato);
--help since Debian 2.2 (Potato);
--no-act since Debian 2.2 (Potato);
--verbose since Debian 2.2 (Potato);
--version since Debian 2.2 (Potato);
-V since Debian 2.2 (Potato);
-d since Debian 2.2 (Potato);
-g since Debian 2.2 (Potato);
-h since Debian 2.2 (Potato);
-n since Debian 2.2 (Potato);
-r since Debian 2.2 (Potato);
-v since Debian 2.2 (Potato).