From owner-freebsd-net@freebsd.org Sun Apr 1 16:19:29 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AC23F6A7B5 for ; Sun, 1 Apr 2018 16:19:29 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1810B72C34 for ; Sun, 1 Apr 2018 16:19:29 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pg0-x234.google.com with SMTP id b9so7552157pgf.6 for ; Sun, 01 Apr 2018 09:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=iHu3un5IUydaYYLr8sjUK6xsZ8MiL9l+Mf3yV8+z5Cg=; b=DhSXPf2s1R8SD1H8opDTd+GcU7Jt509Lu67G8nf3uWt5ThdScSYTP5sQvHLE0y3Lio 4Lce4H1e1b5iJw8NzKqmwu+Xa4rKW36eW+ME6up6EEgErGK2eB7qtXk6Ia56IvhkBVqz W+198vo9wX5EZvqpTfE/dqa74R6KafmuJjjKtjGvs5gghchHdPjbiDp2YiXmAGu/WfZM sj7gZ6rM1mcBQ1G5jlsHxNGVZZ68h+7mSljybhbIi4QK8CQ6uMmt7gMrZUWVAMLM4FYR QbnivhPR019n3MPiHhP5wR+nt6+ZTGNKTpm+LaBqHZyr92sw1DVAQ2LcgxdpMIsAsTmA +HDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=iHu3un5IUydaYYLr8sjUK6xsZ8MiL9l+Mf3yV8+z5Cg=; b=Tgz3uamezCZPZTb9sz5jPQ20l3R5JZN1NyesLNzkMOSh4kU80OF9ka/eIC4C/ybHBD cfOcHgmWl7GSQDYw7JGnSJccDW2M4IWPhNVDB0XqoUtkvUD+oha+CegcRSujUmmd1lW0 JzbgtgqTTIoWw8MbD5L3ODtO22w1aXGOKNP+xKadRe5u9jQc3808XblpOQsrJGXYHztY BjVKqBwEKZUr2P9RyyEpmC/ehE9uQvUmioYzZlwnkuT9uelnyTlp3CGBKF9N0u54COav t/4qwf5vO/vYqUjcdMOuCyvDmT8kk1c/DtgcHddM8meq+FaINJ+uYpobb+R+BiYqPe4x dezA== X-Gm-Message-State: AElRT7G+7uPyzM5lRyYOcQ5jQScHTjvkBTqxEO8r9elAjPfkAz4PTO4G AwZB0VijakFotNXU4ZV98rslNmeB X-Google-Smtp-Source: AIpwx4/24t4ksaaw6HMMCT60+G6GkX+t9F0z2h7BZFxD1rmntBh65DX79My9Eagb82AgqJO4LIsj6g== X-Received: by 10.101.67.68 with SMTP id k4mr4175240pgq.197.1522599568074; Sun, 01 Apr 2018 09:19:28 -0700 (PDT) Received: from [192.168.1.103] ([60.243.103.35]) by smtp.gmail.com with ESMTPSA id y7sm2198818pfi.185.2018.04.01.09.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 09:19:27 -0700 (PDT) Date: Sun, 01 Apr 2018 21:49:23 +0530 User-Agent: K-9 Mail for Android In-Reply-To: <5AC0DFA5.3000509@grosbein.net> References: <5ABF973D.5070009@grosbein.net> <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> <5AC0DFA5.3000509@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Eugene Grosbein ,freebsd-net@freebsd.org From: Reshad Patuck Message-ID: <984CD50A-A1B9-4185-8AFA-E910CB1A7DA3@gmail.com> X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 16:19:29 -0000 Hi Eugene, =E2=80=8B Yes I do remove the \" and replace it with just " in the file I use with t= he `ngctl -f` command=2E =E2=80=8B Here is the link to the file and everything that I am using to setup the B= PF program=2E =E2=80=8B https://paste=2Eee/p/BHOoG =E2=80=8B It contains the following: - ngtl-command -> the ngctl command which runs correctly from a command li= ne - ngctl-config -> the ngctl config file with the same filter - bpf=2Ec -> a c file that takes netgraph node details a pcap-filter and c= onverts it to a ngctl command - ngctl -> debug 5 in a ngctl shell for running the config file =E2=80=8B Thanks and best regards, =E2=80=8B Reshad On 1 April 2018 7:03:25 PM IST, Eugene Grosbein wro= te: > >You have not shown file contents so I can only guess=2E I guess you >misuse escapes \" >as they are not needed (must not be used) in file or pipe=2E