View Single Post
  #5   (View Single Post)  
Old 31st December 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

You have your interfaces set to 192.168.0.1 netmask 255.255.255.0, but have specified 192.168.0.1/16 in your pf.conf. 255.255.255.0 means a /24 in CIDR notation.

The netmask is a value that is binary-ORed with the address to find the network address. If you used 8-bit addresses, it would look like this-
Code:
10100101 - address, decimal 165
11110000 - netmask, decimal 240 - or /4 because 4 of the bits are '1's
10100000 - network address, via binary OR -160
So with 255.255.255.0, in binary 11111111 11111111 11111111 0000000, there are 24 1's, so in CIDR notation, that's /24.

Hope that helps!
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote