12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network Configuration—FirewallsYou can also see the current PF configuration and statistics using thepfctl command:# pfctl –s rulesNo ALTQ support in kernelALTQ related functions disabledscrub in all fragment reassemblepass out all flags S/SA keep statepass in log all flags S/SA keep statepass in quick on msk0 inet6 proto tcp from any to fe80::215:f2ff:fe6f:5468 port = ssh flags S/SA keep statepass out on msk0 proto tcp all flags S/SA keep statepass out on msk0 proto udp all keep statepass in on msk0 proto tcp from any to port = http flags S/SA keep statepass in on msk0 proto udp from any to port = http keepstatepass out on msk0 inet from 192.168.0.0/24 to any flags S/SA keep statequeue datacenterpass out on msk0 inet from 192.168.1.0/24 to any flags S/SA keep statequeue salesUsing -s parameter, PF displays various information about the PF configuration.The following table shows a list of keywords that are used in combination withthe -s flag:KeywordnatqueuerulesAnchorsstateSourcesinfolabelstimeoutsmemoryTablesosfpInterfacesallDescriptionDisplays NAT rulesDisplays Queue rulesDisplays filter rulesDisplays anchorsDisplays contents of state tableDisplays contents of source tracking tableDisplays statistics for active rulesDisplays detailed per-rule statisticsDisplays time-out settingsDisplays memory limitsDisplays list of currently loaded tablesDisplays list of OS fingerprints databaseDisplays list of interfaces. Also displays verbose per-interfacestatistics when used with "-vv" parameterDisplays all above information except for interfaces and osfp[ 198 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!