GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
APPJAIL-EXPOSE(1) FreeBSD General Commands Manual APPJAIL-EXPOSE(1)

appjail-exposePort forwarding from host port to jail port

appjail expose get [-eHIipt] -n nro jail [keyword ...]

appjail expose list [-eHIipt] [-n nro] jail [keyword ...]

appjail expose off jail

appjail expose on jail

appjail expose remove [all|nro nro] jail

appjail expose set -k network -p hport[:jport] [[-E|-e]] [[-t|-u]] [-I address] [-i interface] [-l [-|options]] [-N name] [-n [auto|nro]] [-o interface] jail

appjail expose status jail

The utility configures, lists, enables, and disables rules to perform port forwarding from a host port to a jail port.

The options are as follows:

[-eHIipt] -n nro jail [keyword ...]
Get information about current rules, that is, the keyword that represent the information to be obtained. Multiple keywords can be specified, which are displayed as a table-like interface in the order in which they are specified. If no keyword is specified, the defaults are nro, enabled, name, ports, protocol and network_name.

See KEYWORDS for a list of available keywords.

Not required when using -p. The \t character is used to delimit columns, so as not to show strange values, this option shows instead of \t in the case that a value contains the latter.
Shows the name of the columns.
Include empty values. By default, a minus sign is displayed when a value is empty.
Don't complain when nro doesn't exist.
Columnate the list.
Tabulate columns and values.
nro
Identifier.
[-eHIipt] [-n nro] jail [keyword ...]
get but shows each keyword for each rule in a nice table.
, -H, -I, -p, -t
get.
Perform the same task as described in get.
nro
nro.
jail
Flush the rules currently in use.
jail
Load enabled rules configured by set.
[all|nro nro] jail
Remove a given rule.
Remove all rules.
nro
Remove the rule specified by nro.
-k network -p hport[:jport] [[-E|-e]] [-t|-u] [-I address] [-i interface] [-l [-|options]] [-N name] [-n [auto|nro]] [-o interface] jail
Configure a new or existing rule.
network
Get the jail's IPv4 address from network, required for the rule.

If you are configuring a rule that already has this value, it becomes optional, so you can ignore it if you wish.

hport[:jport]
Forward the hport port to the jport port.

hport is the host or external port and jport if the port currently listening to the application within the jail. If not set, hport is used.

Both hport and jport can be specified using symbolic names as described in services(5).

If you are configuring a rule that already has this value, it becomes optional, so you can ignore it if you wish.

[-E|-e]
Enable (-E) or disable (-e) this rule.
|-u
Use TCP (-t) or UDP (-u). By default is TCP
address
Use address as the external IPv4 address instead of the first matching IPv4 address. The IPv4 address must exist on the specified external interface before executing this command.
interface
Interface to obtain the external IPv4 address. If not set, the interface specified by the parameter is used.
[-|options]
Firewall-specific logging options. Use a minus sign to enable logging, but without options.
name
Service description.
[auto|nro]
Identifier. An identifier is composed of a positive number. Use auto (default) to get the lowest identifier value.
interface
Apply rules to packets coming in on, or going out through, this interface. If not set, the interface specified by the parameter is used.
jail
Shows the rule that is currently in use or an error if it is not yet applied.

Shows if the rule is enabled, if it is not.
Service description.
External port.
Internal port.
Interface to obtain the external IPv4 address.
Apply rules to packets coming in on, or going out through, this interface.
Network used to obtain the jail's IPv4 address.
Identifier.
Exposed ports.
Protocol, i.e. TCP or UDP in lowercase.
The rule that will be applied.

The appjail expose utility exits 0 on success, and >0 if an error occurs.

appjail-quick(1) sysexits(3)

Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>

April 6, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.