내가 코드의이 비트를 기반으로 NFQ 리스너를 설정하기 위해 노력하고있어 :오류
main (int argc, char **argv)
{
struct nfq_handle *h;
struct nfq_q_handle *qh;
struct nfnl_handle *nh;
int fd;
int rv;
char buf[4096] __attribute__ ((aligned));
printf ("opening library handle\n");
h = nfq_open();
if (!h)
{
fprintf (stderr, "error during nfq_open()\n");
exit (1);
}
...
나는 다음의 iptables는 규칙 세트 한 : NFQUEUE의 UDP - 0.0.0.0/0 192.168.50.0/24 UDP DPT : 10000 NFQUEUE 인분 5061
그러나 항상 프로그램을 실행을 제공합니다 nfq_open 동안 오류()
내의 iptables 규칙 잘못된 뭔가가 있나요?
경우/sbin/iptables에 -A FORWARD --protocol UDP --dport 10000 -j NFQUEUE --queue-NUM 5061 192.168.50.0/24
감사 -d : 나는 다음과 같은 명령을 사용했다.