.\" Manpage for jool's userspace app. .\" Report bugs to jool@nic.mx. .TH jool_siit 8 2023-01-25 v4.1.9 "SIIT Jool's Userspace Client" .SH NAME jool_siit - Interact with SIIT Jool (the kernel module). .SH DESCRIPTION Sends commands and requests to SIIT Jool. .br SIIT Jool is a kernel module you load into a Linux kernel. It implements RFC 7915. .SH AVAILABILITY Linux is the only OS in which this program makes sense. .br Kernels 4.9 and up. .SH SYNTAX .RI "jool_siit [" "] instance (" .br display .br [--csv] .br [--no-headers] .br | add .br .I [] .br (--netfilter | --iptables) .br .RI " [--pool6 " "]" .br | remove .br .I [] .br | flush .br .RI " | " .br ) .P .RI "jool_siit [" "] stats (" .br display .br [--csv] .br [--no-headers] .br [--all] .br [--explain] .br .RI " | " .br ) .P .RI "jool_siit [" "] global (" .br display .br [--csv] .br [--no-headers] .br | update .br .I .br .RI " | " .br ) .P .RI "jool_siit [" "] eamt (" .br display .br [--csv] .br [--no-headers] .br | add .br .RI " " .br [--force] .br | remove .br .RI " " .br | flush .br .RI " | " .br ) .P .RI "jool_siit [" "] address (" .br .RI " query [--verbose] " "" .br ) .P .RI "jool_siit [" "] denylist4 (" .br display .br [--csv] .br [--no-headers] .br | add .br .RI " " .br [--force] .br | remove .br .RI " " .br | flush .br .RI " | " .br ) .P .RI "jool_siit [" "] file (" .br .RI " handle " .br .RI " | " .br ) .P .IR " := (" " | --instance " " | --file " ")" .P .IR " := (--help | --usage | --version)" .SH OPTIONS .SS Modes and Operations .IP "instance display" Show all instances from all namespaces. .IP "instance add" Create a new instance. .IP "instance remove" Drop an existing instance. .IP "instance flush" Drop all instances from the current namespace. .IP "stats display" Show internal counters. .IP "global display" Show the current values of the instance's tweakable internal variables. .IP "global update" Tweak one of the instance's internal variables. .IP "eamt display" Show the EAM table. .IP "eamt add" Upload an entry to the EAM table. .IP "eamt remove" Drop an entry from the EAM table. .IP "eamt flush" Empty the EAM table. .IP "address query" Print the translated version of the given address using the current configuration. .IP "denylist4 display" Show the denylist. .IP "denylist4 add" Upload an entry to the denylist. .IP "denylist4 remove" Drop an entry from the denylist. .IP "denylist4 flush" Empty the denylist. .IP "file handle" Parse all the configuration from a JSON file. .br Create instance if it doesn't exist, update if it does. .SS Flags .IP "--instance " Name of the instance you want to interact with. .br It's an ASCII string, 15 characters max. Defaults to 'default'. .IP "--file " JSON file which contains the name of the instance you want to interact with. .br Same JSON structure as the one from atomic configuration. .IP --csv Output in CSV table format. .IP --no-headers Do not print table headers. (Nor footer, if applies.) .IP --netfilter Sit the instance on top of the Netfilter framework. .IP --iptables Sit the instance on top of the iptables framework. .IP "--pool6 " Contents of the new instance's IPv6 pool. .br The format is 'PREFIX_ADDRESS[/PREFIX_LENGTH]'. .IP --all Show all the counters. .br (Otherwise, only the nonzero ones are printed.) .IP --explain Show a description of each counter. .IP --verbose Print some details regarding the translation operation. .IP --force Apply operation even if certain validations fail. .SS Other Arguments .IP " " Name of the variable you want to edit (see 'Globals' section), and its new value. .IP "" The format is IPV6_ADDRESS[/PREFIX_LENGTH]. PREFIX_LENGTH defaults to 128. .IP "" The format is IPV4_ADDRESS[/PREFIX_LENGTH]. PREFIX_LENGTH defaults to 32. .IP Name of the instance you want to add or remove. .br If --instance or --file were included in , then the instance names must match. .IP Path to a JSON file. .SS Globals .IP "manually-enabled " Enable or disable the instance. .IP "pool6 ( | null)" The IPv6 pool's prefix. .br The format is 'PREFIX_ADDRESS[/PREFIX_LENGTH]'. .br Use null to clear. .IP "lowest-ipv6-mtu " Smallest reachable IPv6 MTU. .IP "logging-debug " Enable logging of debug messages? .IP "zeroize-traffic-class " Always set the IPv6 header's 'Traffic Class' field as zero? .br Otherwise copy from IPv4 header's 'TOS'. .IP "override-tos " Override the IPv4 header's 'TOS' field as --tos? .br Otherwise copy from IPv6 header's 'Traffic Class'. .IP "tos " Value to override TOS as (only when override-tos is ON) .IP "mtu-plateaus " Set the list of plateaus for ICMPv4 Fragmentation Neededs with MTU unset. .IP "amend-udp-checksum-zero " Compute the UDP checksum of IPv4-UDP packets whose value is zero? .br Otherwise drop the packet. .IP "eam-hairpin-mode (simple | intrinsic | off)" Defines how EAM+hairpinning is handled. .IP "randomize-rfc6791-addresses " Randomize selection of address from the RFC6791 pool? .br Otherwise choose the 'Hop Limit'th address. .IP "rfc6791v6-prefix ( | null)" IPv6 prefix to generate RFC6791v6 addresses from. .br Use null to clear. .IP "rfc6791v4-prefix ( | null)" IPv4 prefix to generate RFC6791v4 addresses from. .br Use null to clear. .IP "trace " Log basic packet fields as they are received? .SH EXAMPLES Create a new instance named "Example": .br jool_siit instance add Example --iptables .P Print the globals: .br jool_siit -i Example global display .P Change the IPv6 pool prefix: .br jool_siit -i Example global update pool6 2001:db8::/96 .P Print the Explicit Address Mappings Table (EAMT): .br jool_siit -i Example eamt display .P Add an entry to the EAMT: .br jool_siit -i Example eamt add 2001:db8::/120 192.0.2.0/24 .P Remove an entry from the EAMT: .br jool_siit -i Example eamt remove 2001:db8::/120 .P Add denylist prefix 192.0.2.0/24: .br jool_siit -i Example denylist4 add 192.0.2.0/24 .P Allow translation of 192.0.2.0/24: .br jool_siit -i Example denylist4 remove 192.0.2.0/24 .SH NOTES TRUE, FALSE, 1, 0, YES, NO, ON and OFF are all valid booleans. You can mix case too. .SH EXIT STATUS Zero on success, non-zero on failure. .SH AUTHOR NIC Mexico & ITESM .SH REPORTING BUGS Our issue tracker is https://github.com/NICMx/Jool/issues. If you want to mail us instead, use jool@nic.mx. .SH COPYRIGHT Copyright 2023 NIC Mexico. .br License: GPLv2 (GNU GPL version 2) .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH SEE ALSO https://nicmx.github.io/Jool .br https://nicmx.github.io/Jool/en/documentation.html