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
PORTACL(5) FreeBSD File Formats Manual PORTACL(5)

portaclrc(8) script for mac_portacl(4)

portacl is an rc(8) initialization script for mac_portacl(4), allowing administrators to limit or permit binding to local UDP and TCP ports that would otherwise be privileged to the superuser.

Configuration is via the following rc.conf(5) variables.

portacl_enable
(bool) Set to “YES” to load and enable the mac_portacl(4) module upon system initialization.
portacl_users|groups
(str) A space-delimited list of user and group names or numeric IDs to apply mac_portacl(4) rules for, using the associated portacl_user|group⟩_⟨ident⟩_⟨tcp|udp⟩ variables.
portacl_user|group⟩_⟨ident⟩_⟨tcp|udp
(str) A space-delimited list of service names or port numbers to add to the mac_portacl(4) ruleset for that user or group and protocol.
portacl_additional_rules
(str) A comma-delimited list of raw mac_portacl(4) rules to include alongside those specified above.
portacl_port_high
(int) The highest port that should be considered privileged by mac_portacl(4). This corresponds to the sysctl(8) variable security.mac.portacl.port_high, and defaults to 1023. Note that default privileged port restrictions will not be enforced above this value.
portacl_suser_exempt
(bool) Allow the superuser to bind to all mac_portacl(4) protected ports. This corresponds to the sysctl(8) variable security.mac.portacl.suser_exempt, and defaults to YES.
portacl_autoport_exempt
(bool) Allow applications to use automatic binding to port 0. This corresponds to the sysctl(8) variable security.mac.portacl.autoport_exempt, and defaults to YES.

/etc/rc.conf
 
/etc/rc.conf.local
 

Use service(8) and sysrc(8) to permit applications running under the “www” user to bind TCP ports http (80) and https (443).

# sysrc portacl_users="www"
# sysrc portacl_user_www_tcp="http https"
# service portacl enable
# service portacl start

mac_portacl(4), rc.conf(5), service(8), sysrc(8)

Thomas Hurst.

August 21, 2023 FreeBSD 14.3-RELEASE

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

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