Technical article 128045

An Advanced IPF sample configuration file.

OpenServer Definitive 2018UnixWare 7 Definitive 2018OpenServer 6UnixWare 7

Written · Last revised

Problem

TCP packet Filtering. IPFilter (IPF) or ipf (Packet Filtering) software can provide firewall software on SCO UNIX systems, if required.

Solution

Sample script:
#!/bin/sh
# Set IP Addresses and netmasks.
#
#MYIP="192.168.0.1
#MYIP=x.x.x.x (Public IP address
#MYIPNET="ffffff00"
#MYIPNET="fffffff0"
MYIP="192.168.0.1"
# /27
#MYIPNET="ffffffe0"
# /28
MYIPNET="fffffff0"
#MYIPNET1="fffffff0"
#SUBNET1="24"
#
#
# /8    24   255.0.0.0      16777216 = 224  Largest block allocation by IANA
# /9    23   255.128.0.0     8388608 = 223
# /10   22   255.192.0.0     4194304 = 222
# /11   21   255.224.0.0     2097152 = 221
# /12   20   255.240.0.0     1048576 = 220
# /13   19   255.248.0.0      524288 = 219
# /14   18   255.252.0.0      262144 = 218
# /15   17   255.254.0.0      131072 = 217
# /16   16   255.255.0.0       65536 = 216
# /17   15   255.255.128.0     32768 = 215     ISP / large business
# /18   14   255.255.192.0     16384 = 214     ISP / large business
# /19   13   255.255.224.0      8192 = 213      ISP / large business
# /20   12   255.255.240.0      4096 = 212      Small ISP / large business
# /21   11   255.255.248.0      2048 = 211      Small ISP / large business
# /22   10   255.255.252.0      1024 = 210
# /23   9    255.255.254.0       512 = 29
# /24   8    255.255.255.0       256 = 28        Large LAN
# /25   7    255.255.255.128     128 = 27        Large LAN
# /26   6    255.255.255.192      64 = 26         Small LAN
# /27   5    255.255.255.224      32 = 25         Small LAN
# /28   4    255.255.255.240      16 = 24         Small LAN
# /29   3    255.255.255.248       8 = 23  Smallest multi-host network
# /30   2    255.255.255.252       4 = 22  "Glue network" (point to point)
# /31   1    255.255.255.254       2 = 21  Point to point links (RFC 3021)
# /32   0    255.255.255.255       1 = 20  Host route
#
if [ ! $MYIPNET = "" ]; then
for j in $MYIPNET
  do
    case $j in
      fffffe00)
        SUBNET="23";;
      ffffff00)
        SUBNET="24";;
      ffffff80)
        SUBNET="25";;
      ffffffc0)
        SUBNET="26";;
      ffffffe0)
        SUBNET="27";;
      fffffff0)
        SUBNET="28";;
      fffffff8)
        SUBNET="29";;
      fffffffc)
        SUBNET="30";;
      fffffffe)
        SUBNET="31";;
      ffffffff)
        SUBNET="32";;
      *)
        SUBNET="32";;
    esac
  done
fi
ipnat -F
ipnat -C
ipnat -f - <<EOF
map net1 192.168.1.0/24 -> $MYIP/32
#map net0 192.168.1.0/24 -> $MYIP/32
EOF
#       ipf rules/etc/ipf.conf file
#
#       Firewall for ppp0 when connected via ppp0 to internet.
#       Firewall for net2 when connected via cable modem/dsl to internet.
#       Firewall for net1 internal network.
#
#              IP Filter Based Firewalls HOWTO
#
#       http://osr600doc.xinuos.com/en/NET_tcp/ipf-howto.html
#
#
#       Private Network Numbers
#       10.0.0.0/8      Class A
#       172.16.0.0/12   Class B
#       192.168.0.0/16  Class C
#
#
#
#       Block Multicast Class D and E # 224.0.0.0/3
#
#       IANA assigned auto-configuration for not assigned DHCP
#       169.254.0.0/16
#
#
#block in log quick all with ipopts
#block in log quick all with short
#block in log quick all with frag
#block in log all
#
# 192.168.1.0/24 is the private non route-able IP I am using with NAT
#
# NAT rules below are in /usr/local/bin/natsetup and these are all run
# from /etc/rc2.d/S99aroute
# route add default x.x.x.x
#
# IPF filter rules
#
# Port Number           Service Type
# 20/21                 ftp
# 22                    ssh
# 23                    telnet
# 25                    smtp
# 37                    timeserver
# 42                    nameserver
# 43                    whois
# 53                    domain nameserver
# 79                    finger
# 80                    http
# 110                   pop3
# 113                   auth
# 119                   nntp
# 123                   ntp
# 143                   imap
# 443                   SSL (http)
# 517                   talk
# 518                   ntalk
# 540                   tcp over IP
#
#
# NOTE:
# 192.168.174.0 should be a public Class C set of IP address
# 192.168.51.64 should be a public IP address
# 192.168.111.X should be a public IP address
# 192.168.227.64 should be a public IP address
# 192.168.78.17 should be a public IP address
# flush all ipf rules
ipf -F a
#ipf -f /etc/ipf.rules
#ipmon > /var/adm/firewall &
#ipmon >> /var/adm/firewall &
#ipf -f /etc/ipf.rules
ipf -f - <<EOF1
#block in ppp0 all
#block in net1 all
pass in quick on lo0 proto tcp/udp from 127.0.0.1 to 127.0.0.1
pass in quick on lo0 proto icmp from 127.0.0.1 to 127.0.0.1
pass out quick on lo0 proto tcp/udp from 127.0.0.1 to 127.0.0.1
pass out quick on lo0 proto icmp from 127.0.0.1 to 127.0.0.1
pass in quick on atl0 all
pass out quick on atl0 all
pass in quick on net0 all
# ssh on port 22
block in quick on net0 proto tcp from any to any port = 22 flags S keep state
block in quick on net1 proto tcp from any to any port = 22 flags S keep state
# block telnet on port 23
#block in quick on net0 proto tcp from any to any port =23 flags S keep state
block in quick on net1 proto tcp from any to any port = 23 flags S keep state
#
# block port 35111
block in quick on net0 proto tcp from any to any port = 35117 flags S keep state
#
# allow port 53111
pass in quick on net0 proto tcp from 192.168.0.0/16 to any port = 53117 flags S keep state
#
# 192.168.51.64 should be a public IP address
pass in quick on net0 proto tcp from 192.168.51.64 to any port = 53117 flags S keep state
#pass in quick on net0 proto tcp from 192.168.111.97/26 to any port = 53117 flags S keep state
pass in quick on net0 proto tcp from 192.168.227.67/28 to any port = 53117 flags S keep state
pass in quick on net0 proto tcp from 192.168.105.0/24 to any port = 53117 flags S keep state
pass in quick on net0 proto tcp from 192.168.176.49/29 to any port = 53117 flags S keep state
pass out quick on net0 all
pass in quick on lo0 from any to any
pass out quick on lo0 from any to any
pass out quick on ppp0 all
pass out quick on net1 all
#block in ppp0 all
# 192.168.174 should be a public IP address
#pass out quick on ppp0 proto tcp/udp from 192.168.174.0 to any keep state
#pass out quick on ppp0 proto icmp from 192.168.174.0 to any keep state
#
#block in quick on ppp0 all with ipopts
#block in quick on ppp0 all with short
#block in quick on ppp0 all with frag
#block in quick on ppp0 proto tcp all flags FUP
#block in quick on ppp0 from 255.255.255.255/32 to any
#block in quick on ppp0 from 192.168.0.0/16 to any
#block in quick on ppp0 from 172.16.0.0/12 to any
#block in quick on ppp0 from 127.0.0.0/8 to any
#block in quick on ppp0 from 10.0.0.0/8 to any
#block in quick on ppp0 from 0.0.0.0/32 to any
#block in quick on ppp0 from 169.254.0.0/16 to any
#block in quick on ppp0 from 192.0.2.0/24 to any
#block in quick on ppp0 from 204.152.64.0/23 to any
#block in quick on ppp0 from 224.0.0.0/3 to any
#block in quick on ppp0 from any to 1.1.1.0/29
#block in quick on ppp0 from any to 1.1.1.255/29
#pass out quick on ppp0 proto tcp/udp from 192.168.174.0/26 to any keep state
#pass out quick on ppp0 proto icmp from 192.168.174.0/26 to any keep state
#pass in quick on ppp0 proto icmp from any to 192.168.174.0/28 icmp-type 0
#pass in quick on ppp0 proto icmp from any to 192.168.174.0/28 icmp-type 3
#pass in quick on ppp0 proto icmp from any to 192.168.174.0/28 icmp-type 8
#pass in quick on ppp0 proto icmp from any to 192.168.174.0/28 icmp-type 11
#block in log quick on ppp0 proto icmp from any to any
#pass out quick on ppp0 proto tcp from any to any keep state
#pass out quick on ppp0 proto udp from any to any keep state
#pass out quick on ppp0 proto icmp from any to any keep state
#pass in quick on ppp0 proto tcp from any to any port = 20
#pass in quick on ppp0 proto tcp from any to any port = 21 flags S
#pass in quick on ppp0 proto tcp from any to any port = 21 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 22 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 23 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 25 flags S keep state
#pass in quick on ppp0 proto tcp/udp from any to any port = 37 keep state
#pass in quick on ppp0 proto tcp/udp from any to any port = 42 keep state
#pass in quick on ppp0 proto tcp/udp from any to any port = 43 keep state
#pass in quick on ppp0 proto tcp from any to any port = 53 flags S keep state
#pass in quick on ppp0 proto udp from any to any port = 53 keep state
#pass in quick on ppp0 proto udp from any to any port = 161 keep state
#pass in quick on ppp0 proto udp from any to any port = 162 keep state
#pass in quick on ppp0 proto tcp from any to any port = 79 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 80 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 119 flags S keep state
#pass in quick on ppp0 proto tcp/udp from any to any port = 123 keep state
#pass in quick on ppp0 proto tcp from any to any port = 443 flags S keep state
#pass in quick on ppp0 proto tcp from any to any port = 540 flags S keep state
#pass in quick on ppp0 proto udp from any to any port = 517 keep state
#pass in quick on ppp0 proto udp from any to any port = 518 keep state
#block return-rst in on ppp0 proto tcp from any to any port = 113
#block return-icmp(net-unr) in on ppp0 proto udp from any to any
#block return-icmp-as-dest(port-unr) in quick on ppp0 from any to any port = 110
#block return-icmp-as-dest(port-unr) in quick on ppp0 from any to any port = 143
#pass in on ppp0 proto udp from any port = 53 to any
#
block in net1 all
#pass out quick on net1 proto tcp/udp from $MYIP to any keep state
#pass out quick on net1 proto icmp from $MYIP to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.96 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.96 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.97 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.97 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.98 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.98 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.99 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.99 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.100 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.100 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.101 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.101 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.102 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.102 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.103 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.103 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.104 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.104 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.105 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.105 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.106 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.106 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.107 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.107 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.108 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.108 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.109 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.109 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.110 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.110 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.111 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.111 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.112 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.112 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.113 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.113 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.114 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.114 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.115 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.115 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.116 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.116 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.117 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.117 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.118 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.118 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.119 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.119 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.120 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.120 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.121 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.121 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.122 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.122 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.123 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.123 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.124 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.124 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.125 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.125 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.126 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.126 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.127 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.127 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.111.128 to any keep state
#pass out quick on net1 proto icmp from 192.168.111.128 to any keep state
#
#
pass out quick on net1 proto tcp/udp from $MYIP to any keep state
pass out quick on net1 proto icmp from $MYIP to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.64 to any keep state
pass out quick on net1 proto icmp from 192.168.227.64 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.65 to any keep state
pass out quick on net1 proto icmp from 192.168.227.65 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.66 to any keep state
pass out quick on net1 proto icmp from 192.168.227.66 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.67 to any keep state
pass out quick on net1 proto icmp from 192.168.227.67 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.68 to any keep state
pass out quick on net1 proto icmp from 192.168.227.68 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.69 to any keep state
pass out quick on net1 proto icmp from 192.168.227.69 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.70 to any keep state
pass out quick on net1 proto icmp from 192.168.227.70 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.71 to any keep state
pass out quick on net1 proto icmp from 192.168.227.71 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.72 to any keep state
pass out quick on net1 proto icmp from 192.168.227.72 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.73 to any keep state
pass out quick on net1 proto icmp from 192.168.227.73 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.74 to any keep state
pass out quick on net1 proto icmp from 192.168.227.74 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.75 to any keep state
pass out quick on net1 proto icmp from 192.168.227.75 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.76 to any keep state
pass out quick on net1 proto icmp from 192.168.227.76 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.77 to any keep state
pass out quick on net1 proto icmp from 192.168.227.77 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.78 to any keep state
pass out quick on net1 proto icmp from 192.168.227.78 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.227.79 to any keep state
pass out quick on net1 proto icmp from 192.168.227.79 to any keep state
#
#
#pass out quick on net1 proto tcp/udp from $MYIP to any keep state
#pass out quick on net1 proto icmp from $MYIP to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.96 to any keep state
pass out quick on net1 proto icmp from 192.168.111.96 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.97 to any keep state
pass out quick on net1 proto icmp from 192.168.111.97 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.98 to any keep state
pass out quick on net1 proto icmp from 192.168.111.98 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.99 to any keep state
pass out quick on net1 proto icmp from 192.168.111.99 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.100 to any keep state
pass out quick on net1 proto icmp from 192.168.111.100 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.101 to any keep state
pass out quick on net1 proto icmp from 192.168.111.101 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.102 to any keep state
pass out quick on net1 proto icmp from 192.168.111.102 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.103 to any keep state
pass out quick on net1 proto icmp from 192.168.111.103 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.104 to any keep state
pass out quick on net1 proto icmp from 192.168.111.104 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.105 to any keep state
pass out quick on net1 proto icmp from 192.168.111.105 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.106 to any keep state
pass out quick on net1 proto icmp from 192.168.111.106 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.107 to any keep state
pass out quick on net1 proto icmp from 192.168.111.107 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.108 to any keep state
pass out quick on net1 proto icmp from 192.168.111.108 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.109 to any keep state
pass out quick on net1 proto icmp from 192.168.111.109 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.110 to any keep state
pass out quick on net1 proto icmp from 192.168.111.110 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.111 to any keep state
pass out quick on net1 proto icmp from 192.168.111.111 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.112 to any keep state
pass out quick on net1 proto icmp from 192.168.111.112 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.113 to any keep state
pass out quick on net1 proto icmp from 192.168.111.113 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.114 to any keep state
pass out quick on net1 proto icmp from 192.168.111.114 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.115 to any keep state
pass out quick on net1 proto icmp from 192.168.111.115 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.116 to any keep state
pass out quick on net1 proto icmp from 192.168.111.116 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.117 to any keep state
pass out quick on net1 proto icmp from 192.168.111.117 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.118 to any keep state
pass out quick on net1 proto icmp from 192.168.111.118 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.119 to any keep state
pass out quick on net1 proto icmp from 192.168.111.119 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.120 to any keep state
pass out quick on net1 proto icmp from 192.168.111.120 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.121 to any keep state
pass out quick on net1 proto icmp from 192.168.111.121 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.122 to any keep state
pass out quick on net1 proto icmp from 192.168.111.122 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.123 to any keep state
pass out quick on net1 proto icmp from 192.168.111.123 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.124 to any keep state
pass out quick on net1 proto icmp from 192.168.111.124 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.125 to any keep state
pass out quick on net1 proto icmp from 192.168.111.125 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.126 to any keep state
pass out quick on net1 proto icmp from 192.168.111.126 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.127 to any keep state
pass out quick on net1 proto icmp from 192.168.111.127 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.111.128 to any keep state
pass out quick on net1 proto icmp from 192.168.111.128 to any keep state
#
#
pass out quick on net1 proto tcp/udp from 192.168.78.18 to any keep state
pass out quick on net1 proto icmp from 192.168.78.18 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.19 to any keep state
pass out quick on net1 proto icmp from 192.168.78.19 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.20 to any keep state
pass out quick on net1 proto icmp from 192.168.78.20 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.21 to any keep state
pass out quick on net1 proto icmp from 192.168.78.21 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.22 to any keep state
pass out quick on net1 proto icmp from 192.168.78.22 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.23 to any keep state
pass out quick on net1 proto icmp from 192.168.78.23 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.24 to any keep state
pass out quick on net1 proto icmp from 192.168.78.24 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.25 to any keep state
pass out quick on net1 proto icmp from 192.168.78.25 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.26 to any keep state
pass out quick on net1 proto icmp from 192.168.78.26 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.27 to any keep state
pass out quick on net1 proto icmp from 192.168.78.27 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.28 to any keep state
pass out quick on net1 proto icmp from 192.168.78.28 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.29 to any keep state
pass out quick on net1 proto icmp from 192.168.78.29 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.78.30 to any keep state
pass out quick on net1 proto icmp from 192.168.78.30 to any keep state
pass out quick on net1 proto tcp/udp from 192.168.79.126 to any keep state
pass out quick on net1 proto icmp from 192.168.79.126 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.130 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.130 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.131 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.131 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.132 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.132 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.133 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.133 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.134 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.134 to any keep state
#pass out quick on net1 proto tcp/udp from 192.168.174.135 to any keep state
#pass out quick on net1 proto icmp from 192.168.174.135 to any keep state

block in quick on net1 all with ipopts block in quick on net1 all with short block in quick on net1 all with frag

#pass in quick on net1 proto tcp/udp from 192.168.111.96 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.96 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.97 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.97 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.98 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.98 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.99 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.99 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.100 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.100 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.101 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.101 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.102 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.102 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.103 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.103 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.104 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.104 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.105 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.105 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.106 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.106 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.107 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.107 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.108 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.108 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.109 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.109 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.110 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.110 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.111 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.111 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.112 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.112 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.113 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.113 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.114 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.114 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.115 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.115 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.116 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.116 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.117 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.117 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.118 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.118 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.119 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.119 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.120 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.120 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.121 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.121 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.122 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.122 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.123 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.123 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.124 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.124 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.125 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.125 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.126 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.126 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.127 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.127 to any keep state
#pass in quick on net1 proto tcp/udp from 192.168.111.128 to any keep state
#pass in quick on net1 proto icmp from 192.168.111.128 to any keep state
#
#
pass in quick on net1 proto tcp/udp from $MYIP to any keep state
pass in quick on net1 proto icmp from $MYIP to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.64 to any keep state
pass in quick on net1 proto icmp from 192.168.227.64 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.65 to any keep state
pass in quick on net1 proto icmp from 192.168.227.65 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.66 to any keep state
pass in quick on net1 proto icmp from 192.168.227.66 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.67 to any keep state
pass in quick on net1 proto icmp from 192.168.227.67 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.68 to any keep state
pass in quick on net1 proto icmp from 192.168.227.68 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.69 to any keep state
pass in quick on net1 proto icmp from 192.168.227.69 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.70 to any keep state
pass in quick on net1 proto icmp from 192.168.227.70 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.71 to any keep state
pass in quick on net1 proto icmp from 192.168.227.71 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.72 to any keep state
pass in quick on net1 proto icmp from 192.168.227.72 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.73 to any keep state
pass in quick on net1 proto icmp from 192.168.227.73 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.74 to any keep state
pass in quick on net1 proto icmp from 192.168.227.74 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.75 to any keep state
pass in quick on net1 proto icmp from 192.168.227.75 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.76 to any keep state
pass in quick on net1 proto icmp from 192.168.227.76 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.77 to any keep state
pass in quick on net1 proto icmp from 192.168.227.77 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.78 to any keep state
pass in quick on net1 proto icmp from 192.168.227.78 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.227.79 to any keep state
pass in quick on net1 proto icmp from 192.168.227.79 to any keep state
#
#
pass in quick on net1 proto tcp/udp from 192.168.111.96 to any keep state
pass in quick on net1 proto icmp from 192.168.111.96 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.97 to any keep state
pass in quick on net1 proto icmp from 192.168.111.97 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.98 to any keep state
pass in quick on net1 proto icmp from 192.168.111.98 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.99 to any keep state
pass in quick on net1 proto icmp from 192.168.111.99 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.100 to any keep state
pass in quick on net1 proto icmp from 192.168.111.100 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.101 to any keep state
pass in quick on net1 proto icmp from 192.168.111.101 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.102 to any keep state
pass in quick on net1 proto icmp from 192.168.111.102 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.103 to any keep state
pass in quick on net1 proto icmp from 192.168.111.103 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.104 to any keep state
pass in quick on net1 proto icmp from 192.168.111.104 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.105 to any keep state
pass in quick on net1 proto icmp from 192.168.111.105 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.106 to any keep state
pass in quick on net1 proto icmp from 192.168.111.106 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.107 to any keep state
pass in quick on net1 proto icmp from 192.168.111.107 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.108 to any keep state
pass in quick on net1 proto icmp from 192.168.111.108 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.109 to any keep state
pass in quick on net1 proto icmp from 192.168.111.109 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.110 to any keep state
pass in quick on net1 proto icmp from 192.168.111.110 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.111 to any keep state
pass in quick on net1 proto icmp from 192.168.111.111 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.112 to any keep state
pass in quick on net1 proto icmp from 192.168.111.112 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.113 to any keep state
pass in quick on net1 proto icmp from 192.168.111.113 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.114 to any keep state
pass in quick on net1 proto icmp from 192.168.111.114 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.115 to any keep state
pass in quick on net1 proto icmp from 192.168.111.115 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.116 to any keep state
pass in quick on net1 proto icmp from 192.168.111.116 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.117 to any keep state
pass in quick on net1 proto icmp from 192.168.111.117 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.118 to any keep state
pass in quick on net1 proto icmp from 192.168.111.118 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.119 to any keep state
pass in quick on net1 proto icmp from 192.168.111.119 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.120 to any keep state
pass in quick on net1 proto icmp from 192.168.111.120 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.121 to any keep state
pass in quick on net1 proto icmp from 192.168.111.121 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.122 to any keep state
pass in quick on net1 proto icmp from 192.168.111.122 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.123 to any keep state
pass in quick on net1 proto icmp from 192.168.111.123 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.124 to any keep state
pass in quick on net1 proto icmp from 192.168.111.124 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.125 to any keep state
pass in quick on net1 proto icmp from 192.168.111.125 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.126 to any keep state
pass in quick on net1 proto icmp from 192.168.111.126 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.127 to any keep state
pass in quick on net1 proto icmp from 192.168.111.127 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.111.128 to any keep state
pass in quick on net1 proto icmp from 192.168.111.128 to any keep state
#
#
pass in quick on net1 proto tcp/udp from 192.168.78.17 to any keep state
pass in quick on net1 proto icmp from 192.168.78.17 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.18 to any keep state
pass in quick on net1 proto icmp from 192.168.78.18 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.19 to any keep state
pass in quick on net1 proto icmp from 192.168.78.19 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.20 to any keep state
pass in quick on net1 proto icmp from 192.168.78.20 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.21 to any keep state
pass in quick on net1 proto icmp from 192.168.78.21 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.22 to any keep state
pass in quick on net1 proto icmp from 192.168.78.22 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.23 to any keep state
pass in quick on net1 proto icmp from 192.168.78.23 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.24 to any keep state
pass in quick on net1 proto icmp from 192.168.78.24 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.25 to any keep state
pass in quick on net1 proto icmp from 192.168.78.25 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.26 to any keep state
pass in quick on net1 proto icmp from 192.168.78.26 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.27 to any keep state
pass in quick on net1 proto icmp from 192.168.78.27 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.28 to any keep state
pass in quick on net1 proto icmp from 192.168.78.28 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.29 to any keep state
pass in quick on net1 proto icmp from 192.168.78.29 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.78.30 to any keep state
pass in quick on net1 proto icmp from 192.168.78.30 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.79.126 to any keep state
pass in quick on net1 proto icmp from 192.168.79.126 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.174.129 to any keep state
pass in quick on net1 proto icmp from 192.168.174.129 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.174.130 to any keep state
pass in quick on net1 proto icmp from 192.168.174.130 to any keep state
pass in quick on net1 proto tcp/udp from 192.168.174.136 to any keep state
pass in quick on net1 proto icmp from 192.168.174.136 to any keep state
#pass in quick on net1 proto tcp from any to any port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.100 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.110 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.185 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.190 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.191 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.210 port = 22 flags S keep state
#pass in on net1 proto tcp from $MYIP/$SUBNET to 192.168.1.240 port = 22 flags S keep state
##pass in quick on net1 proto tcp/udp from 192.168.174.130 to any keep state
##pass in quick on net1 proto icmp from 192.168.174.130 to any keep state
block in quick on net1 proto tcp all flags FUP
block in quick on net1 from 255.255.255.255/32 to any
block in quick on net1 from 192.168.0.0/16 to any
block in quick on net1 from 172.16.0.0/12 to any
block in quick on net1 from 127.0.0.0/8 to any
block in quick on net1 from 10.0.0.0/8 to any
block in quick on net1 from 0.0.0.0/32 to any
block in quick on net1 from 169.254.0.0/16 to any
block in quick on net1 from 192.0.2.0/24 to any
block in quick on net1 from 204.152.64.0/23 to any
block in quick on net1 from 224.0.0.0/3 to any
block in quick on net1 from any to 1.1.1.0/29
block in quick on net1 from any to 1.1.1.255/29
#pass in quick on net1 proto icmp from any to $MYIP/$SUBNET to any keep state
pass in quick on net1 proto icmp from any to 192.168.227.66/28 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.227.66/28 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.227.66/28 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.227.66/28 icmp-type 11
pass in quick on net1 proto icmp from any to 192.168.111.100/27 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.111.100/27 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.111.100/27 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.111.100/27 icmp-type 11
pass in quick on net1 proto icmp from any to 192.168.78.17/28 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.78.17/28 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.78.17/28 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.78.17/28 icmp-type 11
pass in quick on net1 proto icmp from any to 192.168.78.18/28 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.78.18/28 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.78.18/28 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.78.18/28 icmp-type 11
pass in quick on net1 proto icmp from any to 192.168.79.126/32 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.79.126/32 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.79.126/32 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.79.126/32 icmp-type 11
pass in quick on net1 proto icmp from any to 192.168.174.129/26 icmp-type 0
pass in quick on net1 proto icmp from any to 192.168.174.129/26 icmp-type 3
pass in quick on net1 proto icmp from any to 192.168.174.129/26 icmp-type 8
pass in quick on net1 proto icmp from any to 192.168.174.129/26 icmp-type 11
#pass in quick on net1 proto icmp from any to 192.168.174.130/26 icmp-type 0
#pass in quick on net1 proto icmp from any to 192.168.174.130/26 icmp-type 3
#pass in quick on net1 proto icmp from any to 192.168.174.130/26 icmp-type 8
#pass in quick on net1 proto icmp from any to 192.168.174.130/26 icmp-type 11
##pass in quick on net1 proto icmp from any to $MYIP to icmp-type 0
##pass in quick on net1 proto icmp from any to $MYIP to icmp-type 3
##pass in quick on net1 proto icmp from any to $MYIP to icmp-type 8
##pass in quick on net1 proto icmp from any to $MYIP to icmp-type 11
##pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP/$SUBNET to any keep state
##pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP1/$SUBNET1 icmp-type 0
##pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP1/$SUBNET1 icmp-type 3
##pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP1/$SUBNET1 icmp-type 8
##pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP1/$SUBNET1 icmp-type 11
#pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP/$SUBNET icmp-type 0
#pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP/$SUBNET icmp-type 3
#pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP/$SUBNET icmp-type 8
#pass in quick on net1 proto icmp from 0.0.0.0/8 to $MYIP/$SUBNET icmp-type 11
block in log quick on net1 proto icmp from any to any
pass out quick on net1 proto tcp from any to any keep state
pass out quick on net1 proto udp from any to any keep state
pass out quick on net1 proto icmp from any to any keep state
pass in quick on net1 proto tcp from any to any port = 20
pass in quick on net1 proto tcp from any to any port = 21 flags S
pass in quick on net1 proto tcp from any to any port = 21 flags S keep state
#pass in quick on net1 proto tcp from any to any port = 22 flags S keep state
##pass in quick on net1 proto tcp from any to any port = 23 flags S keep state
pass in quick on net1 proto tcp from any to any port = 25 flags S keep state
pass in quick on net1 proto tcp/udp from any to any port = 37 keep state
pass in quick on net1 proto tcp/udp from any to any port = 42 keep state
pass in quick on net1 proto tcp/udp from any to any port = 43 keep state
pass in quick on net1 proto tcp from any to any port = 53 flags S keep state
pass in quick on net1 proto udp from any to any port = 53 keep state
pass in quick on net1 proto udp from any to any port = 63 keep state
#pass in quick on net1 proto udp from any to any port = 161 keep state
#pass in quick on net1 proto udp from any to any port = 162 keep state
pass in quick on net1 proto tcp from any to any port = 79 flags S keep state
pass in quick on net1 proto tcp from any to any port = 80 flags S keep state
pass in quick on net1 proto tcp from any to any port = 110 flags S keep state
#pass in quick on net1 proto tcp from any to any port = 119 flags S keep state
pass in quick on net1 proto tcp/udp from any to any port = 143 keep state
pass in quick on net1 proto tcp/udp from any to any port = 123 keep state
pass in quick on net1 proto tcp from any to any port = 443 flags S keep state
pass in quick on net1 proto tcp/udp from 192.168.174.129 to any port = 514 flags S keep state
pass in quick on net1 proto tcp from any to any port = 540 flags S keep state
#pass in quick on net1 proto udp from 192.168.174.129 to any port = 69 keep state
pass in quick on net1 proto udp from any to any port = 517 keep state
pass in quick on net1 proto udp from any to any port = 518 keep state
pass in quick on net1 proto tcp/udp from any to any port = 873 keep state
#pass in quick on net1 proto tcp from any to any port = 7115 flags S keep state
#pass in quick on net1 proto tcp from any to any port = 35117 flags S keep state
block in quick on net1 proto tcp from any to any port = 35117 flags S keep state
pass in quick on net1 proto tcp from 192.168.51.64 to any port = 35117 flags S keep state
pass in quick on net1 proto tcp from 192.168.227.64/28 to any port = 35117 flags S keep state
pass in quick on net1 proto tcp from 192.168.111.97/26 to any port = 35117 flags S keep state
pass in quick on net1 proto tcp from 192.168.105.0/24 to any port = 35117 flags S keep state
pass in quick on net1 proto tcp from 192.168.176.49/29 to any port = 35117 flags S keep state
block return-rst in on net1 proto tcp from any to any port = 113
block return-icmp(net-unr) in on net1 proto udp from any to any
block return-icmp-as-dest(port-unr) in quick on net1 from any to any port = 110
block return-icmp-as-dest(port-unr) in quick on net1 from any to any port = 143
#pass in on net1 proto udp from any port = 53 to any
EOF1
ipmon > /var/adm/firewall &

See also

TA128044 How to setup IPF and sample configuration files. TA126831 How can I improve security on my SCO Unix Server? TA112041 Getting started with Network Address Translation (NAT) on OpenServer 5

From the Xinuos technical article database, record 128045. Reproduced with permission. The original is at www.sco.com/ta/128045, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.