FreeBSD, jail, ping

James B. Byrne byrnejb at harte-lyne.ca
Thu Feb 1 18:05:23 UTC 2018


On Thu, February 1, 2018 12:55, James B. Byrne wrote:
> On the jail I see this behaviour:
>
> root at hll124:~ # sysctl security.jail.allow_raw_sockets
> security.jail.allow_raw_sockets: 0
>
> root at hll124:~ # sysctl security.jail.allow_raw_sockets=1
> security.jail.allow_raw_sockets: 0
> sysctl: security.jail.allow_raw_sockets=1: Operation not permitted
>
> So, how is this fixed?
>

On host:

# jls
   JID  IP Address      Hostname                      Path
     6  127.0.124.1     hll124.hamilton.harte-lyne.ca /usr/jails/hll124

# jail -m jid=6 allow.raw_sockets=1

On jail:

# sysctl security.jail.allow_raw_sockets
security.jail.allow_raw_sockets: 1

root at hll124:~ # ping 192.168.71.1
PING 192.168.71.1 (192.168.71.1): 56 data bytes
64 bytes from 192.168.71.1: icmp_seq=0 ttl=64 time=0.253 ms


So, how does one get the jail to automatically configure this setting?


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3



More information about the freebsd-questions mailing list