IPNAT(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’… IPNAT(8) β€” user interface to the NAT subsystem ✨

System Manager's Manual, but make it group chat. manual name: IPNAT(8). okay bestie, let's go.


πŸŽ€ NAME πŸŽ€

ipnat β€” user interface to the NAT subsystem. iconic, honestly.

🌸 SYNOPSIS 🌸

ipnat [ -dhlnrsvCF ] [ -M core ] [ -N system ] -f <filename>

The synopsis is also holding -M core, -N system, and -f <filename> β€” every character kept exactly as the page has it. The OPTIONS section below gives the descriptions the original gives, and I'm not inventing bonus lore, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

ipnat opens the filename given (treating - as stdin) and parses the file for a set of rules which are to be added or removed from the IP NAT. yes, that's the whole vibe.

Each rule processed by ipnat is added to the kernel's internal lists if there are no parsing problems. Rules are added to the end of the internal lists, matching the order in which they appear when given to ipnat.

⚠️ note that if ipf(8) is not enabled when NAT is configured, it will be enabled automatically, as the same kernel facilities are used for NAT functionality. In addition, packet forwarding must be enabled. no skipping this one, bestie.

πŸ›Ό OPTIONS πŸ›Ό

  • -C β€” delete all entries in the current NAT rule listing (NAT rules)
  • -d β€” Enable printing of some extra debugging information.
  • -F β€” delete all active entries in the current NAT translation table (currently active NAT mappings)
  • -h β€” Print number of hits for each MAP/Redirect filter.
  • -l β€” Show the list of current NAT table entry mappings.
  • -n β€” This flag (no-change) prevents ipf from actually making any ioctl calls or doing anything which would alter the currently running kernel.
  • -p β€” This flag is used with the -r flag to cause any active NAT sessions that were created by the rules being removed and that are currently active to also be removed.
  • -r β€” Remove matching NAT rules rather than add them to the internal lists.
  • -s β€” Retrieve and display NAT statistics.
  • -v β€” Turn verbose mode on. Displays information relating to rule processing and active rules/table entries.

🐚 FILES 🐚

  • /dev/ipnat
  • /usr/share/examples/ipfilter β€” Directory with examples.

🌈 SEE ALSO 🌈

ipnat(5), ipf(8), ipfstat(8). go read 'em.


kisses from the IPNAT(8) footer, under the System Manager's Manual umbrella β€” mwah πŸ’– (this page doesn't list a separate version/date, so that's the cute sign-off).

πŸ“¦ where this page comes from