
RELEASE NOTES

Version 5.0 (October 23rd 2000)
---------------------------------
Many thanks to Edwin ten Brink for all his useful suggestions, bug
reports, SMB rules, and FAQ. The big news for v5.0 is that rc.firewall 
supports DMZs and all services have been modularized! This means you 
can have multiple public IPs and setup different rules and forwarding 
for each. Services can also be easily prioritized, installed and/or
upgraded. Added a security_checks function to verify the PATH variable,
file owners/mods, and locate essential system utilities. Warnings have 
been added for missing kernel functionality (tcp syn cookies, tcp/ip 
address hacking, ip defrag, etc.). Added the --config command line 
parameter to specify an alternate configuration file. The --modules 
parameter also lets you specify an alternate path for the modules 
directory. The --nosecurity-file-check parameter will skip file owner 
and mod checks. I also added a few IPv4 configuration file checks (Edwin
found quite a few of these); accept_redirects, accept_source_route, 
bootp_relay, proxy_arp, log_martians, icmp_echo_ignore_all, icmp_echo_
ignore_broadcasts, icmp_ignore_bogus_error_responses, and tcp_rfc1337.
icmp_echoreply_rate is set to 100. In a ping-flood, 98% of packets will 
be dropped. Normal pings work just fine. Also added a check for icmp_
destunreach_rate, icmp_paramprob_rate, and icmp_timeexceed_rate which 
should already be set to 100. Renamed all internal/external options and
variables to private/public. Removed Half-Life game option which didn't
work. Added the ignore-{pubint}-blacklist-hosts, ignore-{pubint}-smb-
hosts, ignore-{pubint}-http-clients, ignore-{pubint}-https-clients,
ignore-{pubint}-smtp-clients, ignore-{pubint}-who-clients, ignore-
{pubint}-who-clients, accept-{pubint}-napster-hosts, accept-{pubint}-
irc-clients, enable-{pubint}-masq-network, accept-{pubint}-syslog-
clients, and accept-{pubint}-printer-clients options. Renamed the
ip-masq-timeout and ip-masq-module to ip-masq-timeouts and ip-masq-
modules. Improved loopback IP spoofing security. Added rules to deny 
connections to port 33270 on the internal interfaces. This port is used
by the Trinity v3 DoS Tool to install a root-shell. The internal 
interface rules were tightened-up a few versions back to accept only 
traffic to/from pertinent sub-nets. This broke DHCP servers since most 
of the traffic is broadcast based. I've added a new enable-{privint}-
dhcp-clients option to open-up this access. Fixed a bug which prevented 
logging rejected/denied packets on the internal interfaces. Moved the 
configuration file to /etc/firewall.conf. The firewall no longer re-
writes it's configuration file every time it's executed. You'll have to 
use the --update-config command line parameter instead. Once updated, 
the script will terminate without implementing any rules. You'll have to
use this parameter whenever you upgrade the script or remove/add 
interfaces (config options are based on the interface names) and 
modules. Added code to populate private and public interface options 
when a new configuration file is created. Removed default values for 
services when creating a new config file. Changed all configuration 
options to lower case. The command line and config options are now 
identical except for the "--" prefix on the command line. Added --accept
-all command line parameter. This changes the input, output, and 
forwarding policies to accept. The only chains created will be for ip 
accounting. Re-arranged rules for better performance (frequently used 
are top-most). Changed service blocks to test for strict mode before 
selecting interface names. This should increase execution speed in 
relaxed mode. Moved FTP passive rules to lowest level. These open all 
high-ports (if used) and could have over-ridden other denied ports. 
Added a specific rules to block TCP connects on port 33270. This 
prevents the FTP passive rules from making it available. The Trinity v3 
DoS tool installs a root-shell on this port. Added support for MySQL and
Virtual Tunnel (VTUN). Fixed typo in ENABLE_MULTICAST variable check. 
Added a Type of Service (ToS) flag for IRC. Added a --mode parameter
which accepts 'relaxed' or 'strict' values. The --debug parameter can
also accept 'yes' and 'no' values (--debug alone also works).

Version 4.1 (September 12th 2000)
---------------------------------
Added ACCEPT_EXT_CVSPSERVER_CLIENTS variable to support the CVS pserver 
(port 2401). Noel sent me a link to a security advisory for the Trinity 
v3 Denial of Service tool <http://xforce.iss.net/alerts/advise59.php>.
There are two parts to this "trojan". The first connects to several IRC
servers on port 6667 and waits for commands. These commands will trigger
DoS attacks directed at other servers. The second issue is a root shell 
which installs itself on port 33270 of the local machine and waits for 
connections. The standard firewall rules will protect against any such 
connections from the internet (though not from your internal LAN). 
Outgoing connections to the affected IRC servers on port 6667 have been 
blocked in strict mode. Edwin ten Brink sent me several suggestions: IP 
defragmentation will be enabled when the /proc/sys/net/ipv4/ip_always_
defrag file found. Added a check for the /proc/sys/net/ipv4/ip_dynaddr 
file before enabling Dynamic TCP/IP Address Hacking. And a few other 
cosmetic changes. :-) Rick Macdougall described a problem with changing 
interface names. I've added the --ext-interfaces and --int-interfaces 
command line variables to solve this problem. Added support for an 
external script to add custom rules. The script must be named 
"rc.firewall.custom-ports" and located in the same directory as 
rc.firewall. The contents should follow the syntax already established 
in the rc.firewall script. It will be INCLUDED in the running script 
just before the high-port rules are implemented.

Version 4.0 (September 3rd 2000)
--------------------------------
Enhanced some of the configuration descriptions. Removed 217.0.0.0/8 
from the reserved IANA addresses (now assigned to RIPE NCC Europe). 
Added 36.0.0.0/8 (formerly Stanford University), 59.0.0.0/8, and a few 
others to the reserved IANA address list. Fixed syntax of internal 
variable names to handle virtual interfaces. Renamed the 
ACCEPT_EXT_PROXY_PORT variable to ACCEPT_EXT_PROXY_PORTS and added code 
to handle multiple port entries. Changed imap2, route, and ospf entries 
to their numerical equivalent. This fixes a compatibility problem with 
Suse 6.4 Andreas Grau reported. At the suggestion of Thomas Tschoepke 
S., I added support for ICQ file transfers (see the 
ACCEPT_EXT_ICQFILETRANS_CLIENTS and ACCEPT_EXT_ICQFILETRANS_PORTS
variables). Jeremy Higgs suggested adding ICP support for Squid which 
is available under the ACCEPT_EXT_SQUIDICP_SERVERS variable. Fixed 
detection of ipmasqadm binary which reported an error even if it wasn't 
needed. Fixed typo in LOG_DENIED_DHCP_INPUT parsing. Renamed 
FORWARD_UDP_PORTS and FORWARD_TCP_PORTS variables to include interface 
type. Added ACCEPT_EXT_UDP_HOSTPORTS and ACCEPT_EXT_TCP_HOSTPORTS 
variables to accept connections on misc ports. Vladimir Smelhaus sent me
a patch to check if an interface is up or down before using it. This 
way, the firewall script can be run before and after dial-up connections
are made. Michael Neuffer reported a problem when routing multiple 
subnets through the private LAN interface. These subnets were being 
blocked by the firewall since it ignored routing information. The 
firewall script will now examine routing tables and open access to all 
subnets routed through internal interfaces. Added support for 
Battle.net, DirectX games, Unreal Tournament and Half-Life.

Version 3.3 (July 18th 2000)
----------------------------
Holger Lubitz e-mailed me to suggest I shorten the input/output chain 
names to allow 6 char. interfaces instead of just 4. He also pointed out
a small typo in the SSH rules -- all the ports were open for TCP replies
instead of just high ports. Rene Beaulieu requested support for the 
SIMAP and SPOP3 services.

Version 3.2 (July 2nd 2000)
---------------------------
Greg Thomsen sent me a patch to create seperate input and output chains 
for each interface. I've incorporated his changes with a few tweeks of 
my own. You can see the results by using the "ipchains -L -n" command. 
Troy Dack also sent me a bug report on the port forwarding function. The
forwarding rules were being flushed for each execution of the function 
(ack!). A variable would also retain it's value between calls and this 
would screw-up some of the host/port parsing. Wagar Malik also 
contributed an input/output rule for an IPSec VPN to enable key 
exchange. Rop Slijkerman pointed out a typo in the OSPF Multicast 
filtering. Instead of denying, the rule was set to accept.

An interesting tid-bit: Version 3.1 was posted on freshmeat.net and 
generated 1800 hits in just 24 hours!

Version 3.1
-----------
Fixed the ALLOW_EXT_DNS_CLIENTS variable to allow UDP queries from 
external clients. Previous versions only allowed TCP traffic for zone 
transfers.

Version 3.0
-----------
Added the ACCEPT_EXT_IPSEC_VPN_HOSTS variable. Port 500 UDP input and 
output is opened for these hosts. Removed DNS_QUERY_SOURCE_PORT variable
which blocked nslookups on external DNS servers. Also added the 
FORWARD_UDP_PORTS and FORWARD_TCP_PORTS variable. Renamed the 
ACCEPT_EXT_JUNKBUSTER_CLIENTS variable to ACCEPT_EXT_PROXY_CLIENTS. Also
added the ACCEPT_EXT_PROXY_PORT variable since not all proxies use the 
same port. The old variable will be converted automatically. Increased 
logging when using debug mode. The level of logging should resemble a 
tcpdump, so using grep will become necessary. :-)  Also changed the use 
of command line variables. Instead of over-riding the configured value,
it will add to it. Added the --test command line parameter. Enabled 
multiple entries in the INT_INTERFACES and EXT_INTERFACES.

Version 2.5
-----------
Added --debug command line parameter. Renamed DEBUG_MODE variable to 
simply DEBUG. Added the DNS_QUERY_SOURCE_PORT variable.

Version 2.4.2
-------------
Added DEBUG_MODE variable.

Version 2.4.1
-------------
Added an accept for incoming packets from the NTP server's port 123 to 
our High Ports.

Version 2.4
-----------
Added the DENY_EXT_BLACKLIST_HOSTS variable to deny access to ALL 
external services.

Version 2.3
-----------
Added ACCEPT_EXT_NFS_CLIENTS, ACCEPT_EXT_SMB_CLIENTS (unfinished), and 
ACCEPT_EXT_ICQ_SERVERS variables. Removed "catch all" rule (inherited 
from David Ranch's script) which allowed incoming UDP traffic on high 
ports.

Version 2.2.1
-------------
Changed the name of functions. Oddly enough, someone reported an 
"invalid identifier" related to the function names.

Version 2.2
-----------
Added the DENY_EXT_HTTPS_CLIENTS, ACCEPT_EXT_JUNKBUSTER_CLIENTS and 
LOG_DENIED_DHCP_INPUT variables.

Version 2.1
-----------
A friend who also uses a caching DNS was having problems resolving 
hostnames. It turns out an option in my named.conf defined a specific 
source port, but the standard install doesn't. I've changed the outgoing
DNS rules to allow any source port on UDP output and reply traffic.

Version 2.0
-----------
Removed the configuration variables from the script. When running 
rc.firewall for the first time, it will create an rc.firewall.conf file 
in the same directory (probably /etc/rc.d). You should edit this 
configuration file and make the necessary changes for your environment. 
This file is over-written (keeping your settings) every time rc.firewall
is executed. This means that as variables are added in future versions, 
they'll appear (without values) in your configuration file. Also added 
the DENY_EXT_SMTP_CLIENTS and DENY_EXT_HTTP_CLIENTS variables.

Version 1.5
-----------
Added ACCEPT_EXT_SYSLOG_SERVERS and ACCEPT_EXT_PRINTER_SERVERS. Entering
hostnames in these variables will enable outgoing syslog messages and 
print jobs.

Version 1.4
-----------
Denied SMB packets coming from external subnet WITHOUT logging. On a 
Windows network, the default rules would quickly fill-up syslog files. 
Removed logging from incoming multicast packets.

Version 1.3.3
-------------
SYN cookie protection used /proc/sys/net/ipv4/tcp_cookies, but the 
actual file is tcp_syncookies. Thanks to Jussi Torhonen for catching 
that one. Also added a note in the setup instructions about saving 
ipchains syslog messages.

Version 1.3.2
-------------
Added ACCEPT_EXT_FTPACTV_SERVERS variable and rules to fix outgoing FTP 
(active) data connections. Created a firewall mailing list at 
firewall@jsm-mv.dyndns.org.

Version 1.3.1
-------------
Added support for outgoing SSH from ports 513->1023. These source ports 
are used when SSH is suid, otherwise source ports are 1024+.

Version 1.3
-----------
Changed most displayed text - should be a little more readable to users 
with out firewall knowledge. Also added several rules to reject outgoing
traffic in "strict" mode (systat, netstat, chargen, exec, login, shell, 
talk, etc.).

Version 1.2.1, March 3rd 2000
-----------------------------
Added the ACCEPT_EXT_MULTICAST_IGMP_SERVERS variable which allows IGMP 
Multicast input. This is used by some cable providers as a "keep alive".

Version 1.1, March 2nd 2000
---------------------------
Opened output of Fragmentation Needed ICMP (Type 3) sub-type. Fixed typo
in variable name which left NTP ports closed. Completed the section 
needed to open incoming ping.

Version 1.0, March 1st 2000
---------------------------
First public release.

