When I ran `#service ulogd start` this failed because `nfnlh->fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER);` from libnfnetlink failed with -EACCES. But `#ulogd -d` succeeded. Please help. Darshan Ghumare On Mon, May 1, 2017 at 11:28 AM, Darshan Ghumare <darshan.ghumare@xxxxxxxxx> wrote: > Hi, > > When I trying to run ulogd using init script I am getting error but > run without it (ulogd -d) there wasn't any problem. Please help me to > understand, > > service ulogd start; tailf /var/log/ulogd/ulogd.log > > Starting ulogd: [ OK ] > > Sun Apr 30 22:49:51 2017 <5> ulogd.c:940 building new pluginstance > stack: 'ct2:NFCT,ip2str1:IP2STR,json1:JSON' > > Sun Apr 30 22:49:51 2017 <8> ulogd_inpflow_NFCT.c:1293 error opening ctnetlink > > Sun Apr 30 22:49:51 2017 <7> ulogd.c:910 error starting `ct2' > > Sun Apr 30 22:49:51 2017 <8> ulogd.c:1543 not even a single working plugin stack > > ^C > > [root@darshan-2 ulogd]# ulogd -d > > [root@darshan-2 ulogd]# tailf /var/log/ulogd/ulogd.log > > Sun Apr 30 22:48:16 2017 <5> ulogd.c:940 building new pluginstance > stack: 'ct2:NFCT,ip2str1:IP2STR,json1:JSON' > > Sun Apr 30 22:48:16 2017 <8> ulogd_inpflow_NFCT.c:1293 error opening ctnetlink > > Sun Apr 30 22:48:16 2017 <7> ulogd.c:910 error starting `ct2' > > Sun Apr 30 22:48:16 2017 <8> ulogd.c:1543 not even a single working plugin stack > > Sun Apr 30 22:49:51 2017 <5> ulogd.c:940 building new pluginstance > stack: 'ct2:NFCT,ip2str1:IP2STR,json1:JSON' > > Sun Apr 30 22:49:51 2017 <8> ulogd_inpflow_NFCT.c:1293 error opening ctnetlink > > Sun Apr 30 22:49:51 2017 <7> ulogd.c:910 error starting `ct2' > > Sun Apr 30 22:49:51 2017 <8> ulogd.c:1543 not even a single working plugin stack > > Sun Apr 30 22:51:40 2017 <5> ulogd.c:940 building new pluginstance > stack: 'ct2:NFCT,ip2str1:IP2STR,json1:JSON' > > Sun Apr 30 22:51:40 2017 <5> ulogd_inpflow_NFCT.c:1399 NFCT plugin > working in event mode > > > Thanks, > Darshan Ghumare -- Darshan® -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html