IPFW2 logging inside VIMAGE Jails?

2015-04-18 Thread Kai Gallasch
Hi. Is it possible at all to log actions of the IPFW2 firewall inside a running VIMAGE jail to the jail's syslog? I'm asking, because I see no firewall log entries inside the jail's /var/log/security log. What I find is, that log messages of jails with active IPFW rules are only logged on the

Create Jail fail by c language

2015-04-18 Thread freekai
This is My Code: 1 #includesys/param.h 2 #includesys/jail.h 3 #includearpa/inet.h 4 #includestdio.h 5 #includeerrno.h 6 7 int main() 8 { 9 int jid; 10 struct jail j; 11 struct in_addr ip4; 12 const char *cp=192.168.1.10; 13 14

Re: Create Jail fail by c language

2015-04-18 Thread Dirk Engling
On 18.04.15 17:34, freekai wrote: 18 j.ip4s=inet_addr(cp); From the man page: The “ip4s” and “ip6s” give the numbers of IPv4 and IPv6 addresses that will be passed via their respective pointers. so it should rather read: 18 j.ip4s=1; 19 j.ip6s=0; 20 21