2007-11-19 22:15:36 +01:00
|
|
|
Shorewall 4.1 Patch Release 0.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-04-09 23:40:30 +02:00
|
|
|
----------------------------------------------------------------------------
|
2007-11-19 22:15:36 +01:00
|
|
|
R E L E A S E 4 . 1 H I G H L I G H T S
|
2007-04-09 23:40:30 +02:00
|
|
|
----------------------------------------------------------------------------
|
2007-11-19 22:15:36 +01:00
|
|
|
1) Support is included for multiple internet providers through the same
|
|
|
|
ethernet interface.
|
2006-12-28 18:43:00 +01:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
2) Support for NFLOG has been added.
|
2006-10-31 20:01:23 +01:00
|
|
|
|
2007-11-20 17:01:27 +01:00
|
|
|
Problems corrected in Shorewall 4.1.1.
|
|
|
|
|
|
|
|
1) Previously, incorrect output was generated by parameter lists to
|
|
|
|
ULOG or NFLOG.
|
|
|
|
|
2007-11-20 17:21:01 +01:00
|
|
|
2) Specifying NFQUEUE(<queue-number>) in the POLICY column of the
|
2007-11-20 17:01:27 +01:00
|
|
|
policy file resulted in an error.
|
|
|
|
|
|
|
|
|
|
|
|
Other changes in Shorewall 4.1.1.
|
2007-07-30 16:35:03 +02:00
|
|
|
|
2007-11-16 02:21:33 +01:00
|
|
|
None.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-20 17:01:27 +01:00
|
|
|
New Features in Shorewall 4.1.
|
2007-11-19 22:15:36 +01:00
|
|
|
|
|
|
|
1) Shorewall 4.1.0 contains experimental support for multiple Internet
|
|
|
|
providers through a single ethernet interface. Configuring two
|
|
|
|
providers through a single interface differs from two providers
|
|
|
|
through two interfaces in several ways.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
a) Only ethernet (or ethernet-like) interfaces can be used. For
|
|
|
|
inbound traffic, the MAC addresses of the gateway routers is used
|
|
|
|
to determine which provider a packet was received through. Note
|
|
|
|
that only routed traffic can be categorized using this technique.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
b) The 'shared' provider option must be specified for both providers.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
c) Entries in /etc/shorewall/masq must be qualified by the provider
|
|
|
|
name (or number).
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
d) This feature requires Realm Match support in your kernel and
|
|
|
|
iptables. If you use a capabilities file, you need to regenerate
|
|
|
|
the file with Shorewall 4.0.6 or Shorewall-lite 4.0.6.
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
Example:
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
Providers Blarg (1) and Avvanta (2) are both connected to
|
2007-11-16 02:21:33 +01:00
|
|
|
eth0. The firewall's IP address with Blarg is 206.124.146.176
|
|
|
|
(gateway 206.124.146.254) and the IP address from Avvanta is
|
|
|
|
130.252.144.8 (gateway 130.252.144.254).
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-16 02:21:33 +01:00
|
|
|
/etc/shorewall/providers:
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
#PROVIDER NUMBER MARK DUPLICATE GATEWAY OPTIONS
|
|
|
|
Blarg 1 1 main 206.124.146.254 shared,...
|
|
|
|
Avvanta 2 2 main 130.252.144.254 shared,...
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-16 02:21:33 +01:00
|
|
|
/etc/shorewall/masq:
|
2007-09-21 18:55:28 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
#INTERFACE SOURCE ADDRESS
|
|
|
|
eth0(Blarg) 130.252.144.254 206.124.146.176
|
|
|
|
eth0(Avvanta) 206.124.146.176 130.252.144.254
|
|
|
|
eth0(Blarg) eth1 206.124.146.176
|
|
|
|
eth0(Avvanta) eth1 130.252.144.254
|
2007-04-09 23:40:30 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
2) You may now include the name of a table (nat, mangle or filter) in
|
|
|
|
a 'shorewall refresh' command by following the name with a colon
|
|
|
|
(e.g., mangle:). This causes all non-builtin chains in the table to
|
|
|
|
be reloaded.
|
2007-05-20 17:51:42 +02:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
shorewall refresh nat:
|
2007-05-20 17:51:42 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
3) When no chain name is given to the 'shorewall refresh' command, the
|
|
|
|
mangle table is refreshed along with the blacklist chain (if
|
|
|
|
any). This allows you to modify /etc/shorewall/tcrules and install
|
|
|
|
the changes using 'shorewall refresh'.
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
4) Support for the NFLOG log target has been added. NFLOG is a
|
|
|
|
successor to ULOG. In addition, both ULOG and NFLOG may be followed
|
|
|
|
by a list of up to three numbers in parentheses.
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
The first number specifies the netlink group (1-32). If omitted
|
|
|
|
(e.g., NFLOG(,0,10)) then a value of 1 is assumed.
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
The second number specifies the maximum number of bytes to copy. If
|
|
|
|
omitted, 0 (no limit) is assumed.
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
The third number specifies the number of log messages that should
|
|
|
|
be buffered in the kernel before they are sent to user space. The
|
|
|
|
default is 1.
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
Examples:
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
/etc/shorewall/shorewall.conf:
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
MACLIST_LOG_LEVEL=NFLOG(1,0,1)
|
2007-06-23 23:12:48 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
/etc/shorewall/rules:
|
2007-06-23 23:12:48 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
ACCEPT:NFLOG(1,0,1) vpn fw tcp ssh,time,631,8080
|
2007-09-10 17:52:57 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
5) Shorewall-perl 4.1.0 implements an alternative syntax for macro
|
|
|
|
parameters and for the NFQUEUE queue number. Rather than following
|
|
|
|
the macro name (or NFQUEUE) with a slash ("/") and the parameter,
|
|
|
|
the parameter may be enclosed in parentheses.
|
2007-09-10 17:52:57 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
Examples -- each pair shown below are equivalent:
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
DNS/ACCEPT DNS(ACCEPT)
|
|
|
|
NFQUEUE/3 NFQUEUE(3)
|
2007-06-16 16:27:02 +02:00
|
|
|
|
2007-11-19 22:15:36 +01:00
|
|
|
The old syntax is still be accepted but will cease to be documented
|
|
|
|
in some future Shorewall release.
|