All pastes #16142 Raw Edit

Something

public text v1 · immutable
#16142 ·published 2005-06-28 20:14 UTC
rendered paste body
block in all
block out all

pass in quick on vr0 from any to 192.168.0.199

pass in quick on lo0 all
pass out quick on lo0 all

pass in quick on vr1 all
pass out quick on vr1 all

# Block all inbound traffic from non-routable or reserved address spaces
block in log quick on vr0 from 192.168.0.0/16 to any   #RFC 1918 private IP
block in log quick on vr0 from 172.16.0.0/12 to any    #RFC 1918 private IP
block in log quick on vr0 from 10.0.0.0/8 to any       #RFC 1918 private IP
block in log quick on vr0 from 127.0.0.0/8 to any      #loopback
block in log quick on vr0 from 0.0.0.0/8 to any        #loopback
block in log quick on vr0 from 169.254.0.0/16 to any   #DHCP auto-config
block in log quick on vr0 from 192.0.2.0/24 to any     #reserved for doc's
block in log quick on vr0 from 204.152.64.0/23 to any  #Sun cluster interconnect
block in log quick on vr0 from 224.0.0.0/3 to any       #Class D & E multicast

# Block frags
block in quick on vr0 all with frags
# Block short tcp packets
block in quick on vr0 proto tcp all with short
# Block source routed packets
block in quick on vr0 all with opt lsrr
block in quick on vr0 all with opt ssrr
# Block nmap OS fingerprint attempts
# Log first occurrence of these so I can get their IP address
block in log first quick on vr0 proto tcp all flags FUP
block in log first quick on vr0 proto tcp all flags SF/SFRA
block in log first quick on vr0 proto tcp all flags /SFRA
block in log first quick on vr0 proto tcp all flags F/SFRA
block in log first quick on vr0 proto tcp all flags U/SFRAU
block in log first quick on vr0 proto tcp all flags P
# Block anything with special options
block in quick on vr0 all with ipopts

# Block public pings
block in log quick on vr0 proto icmp all icmp-type 8


pass out quick on vr0 from any to any keep state

# TSTT NameServers
pass in quick on vr0 proto tcp/udp from 196.3.132.1 to any keep state
pass in quick on vr0 proto tcp/udp from 196.3.132.4 to any keep state

# Block and log only first occurrence of all remaining traffic
# coming into the firewall. The logging of only the first
# occurrence stops a .denial of service. attack targeted
# at filling up your log file space.
# This rule enforces the block all by default logic.
block in log first quick on vr0 all