Setting up a syslog server in a jail

bsd bsd at todoo.biz
Mon Jan 30 15:40:24 UTC 2012


Hello, 

I would like to setup a syslog server inside a jail 
I have setup couple of other jail and they are already working as a DNS server and a HTTP server. 

The next step would be to configure a new jail as a syslog server. 

I have the following parameters : 

jail_enable="YES"
jail_mount_enable="YES"
jail_set_hostname_allow="NO"
jail_sysvipc_allow="YES" # for syslog et postgres
jail_socket_unixiproute_only="NO"
jail_list="ns0 lacoste logjail"
jail_logjail_hostname="logjail.osnet.eu"
jail_logjail_ip="1.2.3.4"
jail_logjail_rootdir="/jails/j/logjail"
jail_logjail_devfs_enable="YES"


I have also setup in /etc/sysctl.conf : 

security.jail.allow_raw_sockets=1

• I can ping the remote host (the one sending IP datagram)
• I can dig any domain


I am still not able to get the log correctly sent to the specified jail… ?? 


Any idea ? 

––––––––––––––––––––––––––––––––––––––––––––––
---------> Grégory Bernard Director <---------
---------------> www.osnet.eu <---------------
--> Your provider of OpenSource appliances <--
––––––––––––––––––––––––––––––––––––––––––––––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO



More information about the freebsd-questions mailing list