First time here? Check out the FAQ!

Ask Your Question
0

Exclude public traffic

asked Dec 30 '1

gr4cchus gravatar image

What filters could i use to remove all the internet chatter in the LAN. Am trying to get a look into all the LAN traffic without applying to broad of filters and accidentally obscuring something regarding multicasting, mDNS, and etc.

Tried basic attempts and inverses of examples but would end up missing things. For example: ip.src in {192.168.0.0/16 172.16.0.0/12 10.0.0.0/8} or ip.dst in {192.168.0.0/16 172.16.0.0/12 10.0.0.0/8} occasional public ip's scattered about. Also since public traffic requires more layers maybe it would be better and easier to specifically exclude it rather than try to pick everything in a lan?

Preview: (hide)

Comments

I think it would be easier to exclude what you don't want. An example to exclude multicast traffic, you can use the filter eth.dst.ig==1.

BigFatCat gravatar imageBigFatCat ( Dec 30 '1 )

1 Answer

Sort by » oldest newest most voted
1

answered Dec 30 '1

Jaap gravatar image

Extending on your work this comes to the following expression:

ip.src in {192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 169.254.0.0/16, 0.0.0.0} and ip.dst in {192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 224.0.0.0/4, 169.254.0.0/16, 255.255.255.255}

  • Both source _and_ destination addresses need to be in specific ranges. Otherwise local generated traffic for external addressed would show up.
  • The source could also be an Automatic IPv4 address (169.254.0.0/8)
  • The source could also be an unconfigured IPv4 address (0.0.0.0)
  • The destination could also be a multicast address (224.0.0.0/4)
  • The destination could also be an Automatic IPv4 address (169.254.0.0/8)
  • The destination could also be the broadcast address (255.255.255.255)

btw: items in a list should be separated by ,

Preview: (hide)
link

Comments

1

Have the extra elements for IPv6 been left as an exercise for the reader :-)

grahamb gravatar imagegrahamb ( Dec 30 '1 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: Dec 30 '1

Seen: 569 times

Last updated: Dec 30 '21