First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Invalid capture Filter

  • retag add tags

I have a Problem with my IP Telefon and the Partner want me to monitor the Network with Wireshark. I created a batch to start Wireshark on Startup with the following cmd line:

C:\Programme\wireshark>wireshark -i \Device\NPF_{23EA96D6-BEE6-405B-B124-B6E0D919C34F} -f "net 66.81.246.0/20" -b filesize:10000 -w "C:\Users\EIBL\OneDrive\wiresharklogs\wireshark.pcap" -k --no-promiscuous-mode

The Problem is the /20 on -f "net 66.81.246.0/20" if i do /24 it works but on /22 or less i get an error. Can anybody help me?

did also try "net XXX.XXX.XXX.XXX mask XXX.XXX.XXX.XXX" but i wont work below /22

Neotreitz's avatar
1
Neotreitz
asked 2022-12-07 12:02:05 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Let's work out the network address:


    66       81      246        0
01000010  01010001 11110110  00000000

so a /24 would become


    66       81      246        0
01000010  01010001 11110110  ........

that works, because these were all zeros that were dropped.

a /23 would become


    66       81      246        0
01000010  01010001 1111011.  ........

that works, because these were all zeros dropped.

a /22 would become


    66       81      246        0
01000010  01010001 111101..  ........

that fails because there was a one there.

So, turning this around, the network address for /20 would be


01000010  01010001 1111.... ........
    66       81      240        0
Jaap's avatar
13.7k
Jaap
answered 2022-12-07 13:19:35 +0000
edit flag offensive 0 remove flag delete link

Comments

you are absolute right. A shame i didnĀ“t get it by myself. Thank you very much for clearing this out!

Neotreitz's avatar Neotreitz (2022-12-07 13:27:14 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer