Naar inhoud springen

Jails: allow raw sockets

Uit VanderSchaft
Versie door Dschaft (overleg | bijdragen) op 18 mrt 2026 om 08:49 (Nieuwe pagina aangemaakt met 'security.jail.allow_raw_sockets MIB entry determines whether or not prison root is allowed to create raw sockets. Setting this MIB to 1 allows utilities like ping and traceroute to operate inside the prison. Type the following command: # sysctl security.jail.allow_raw_sockets=1 Now login to jail using jexec: host # jexec 1 csh jail# ping cyberciti.biz Add following line to sysctl.conf: # echo 'security.jail.allow_raw_sockets=1' >> /etc/sysctl.conf In…')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)

security.jail.allow_raw_sockets MIB entry determines whether or not prison root is allowed to create raw sockets. Setting this MIB to 1 allows utilities like ping and traceroute to operate inside the prison. Type the following command:

# sysctl security.jail.allow_raw_sockets=1

Now login to jail using jexec:

host # jexec 1 csh
jail# ping cyberciti.biz

Add following line to sysctl.conf:

# echo 'security.jail.allow_raw_sockets=1' >> /etc/sysctl.conf

In an iocage situation you need to set it with the iocage program:

root@hermeticum:~ # iocage set allow_raw_sockets=1 hypnos
allow_raw_sockets: 0 -> 1