Commit Graph

120 Commits

Author SHA1 Message Date
ktsaou
9b309c9143 Fixed MIRROR statements to produce REJECT on the OUTPUT of the host. 2003-03-19 21:51:56 +00:00
ktsaou
41e429b128 Copyright notices now print year 2003. 2003-03-18 21:27:35 +00:00
ktsaou
0c5eb0d73e Cosmetic changes in 'helpme' 2003-03-17 23:03:00 +00:00
ktsaou
33f8946676 Fixed broken 'helpme' detection of networks behind gateways. Now it works. 2003-03-17 22:57:26 +00:00
ktsaou
b915a00360 'helpme' now detects multiple overlapping networks defined for the same
interface. In such cases it only defines the wider network.
2003-03-17 22:42:18 +00:00
ktsaou
052e7844d6 Made 'helpme' detect point-to-point routes better. 2003-03-16 22:13:30 +00:00
ktsaou
ab4ada21cb Added service 'socks'. 2003-03-15 01:24:19 +00:00
ktsaou
ff8f6e8433 'panic' now prevent you from loosing the SSH you are issuing this command
by allowing the established connection specified in the environment
variable SSH_CLIENT (only if it exists: it is lost if you su -, you should
su without the minus).

Also, the panic argument takes one optional argument. This can be an IP
address in which case all established connections between the host and this
IP will be allowed.
2003-03-15 00:59:27 +00:00
ktsaou
0df8d5110c The squid service has been defined with numeric port numbers because
Debian systems have not this service defined.
2003-03-14 21:22:37 +00:00
ktsaou
9335770dca Command line argument 'panic' does not call the system's iptables script
but blocks all traffic by itself, since many systems do not have the
'panic' argument.
2003-03-14 20:59:07 +00:00
ktsaou
e0b1570dd2 Added FIREHOL_AUTOSAVE variable that controls the file that is saved with
the 'save' argument of FireHOL. By default this variable is empty in which
case FireHOL detects RedHat and Debian systems and saves it to the right
place.
2003-03-14 20:36:52 +00:00
ktsaou
65dbe74904 'helpme' now allows ICMP traffic by default. 2003-03-07 23:34:29 +00:00
ktsaou
1e18a727a4 Fixed double quoting in router statements produced by 'helpme'. 2003-03-07 23:17:38 +00:00
ktsaou
4d2812c723 'helpme' handles multiple networks in router statements. 2003-03-07 23:12:15 +00:00
ktsaou
efa4baa6d2 'helpme' mode does not require a configuration file present. 2003-03-07 23:01:31 +00:00
ktsaou
07a429ac05 Made it not ignore the default route in 'helpme' routers. 2003-03-07 09:19:19 +00:00
ktsaou
6ecf404948 Minor changes in 'helpme' generation. 2003-03-06 08:18:49 +00:00
ktsaou
0982c89ea3 Made it ignore a default gateway when there was a P-t-P default gateways
found.
2003-03-05 22:06:51 +00:00
ktsaou
8f185c5880 Made the 'helpme' feature append another interface for the default gateway. 2003-03-05 18:23:57 +00:00
ktsaou
8cd37417e8 Minor changes in the default help page presented by FireHOL. 2003-03-05 00:33:56 +00:00
ktsaou
513f0518aa Re-wrote 'helpme' to detect multiple IPs and networks per interfaces,
and to produce multiple interfaces for each IP. This means that FireHOL
is somewhat smart to match IPs with networks and interfaces, to detect
networks behind gateways, default gateways on point-to-point interfaces,
and to produce router statements matching the interfaces detected above.
2003-03-05 00:11:56 +00:00
ktsaou
500c0c6468 Made 'helpme' ignore interfaces that do not have an IP or no traffic is
routed to them (no route).
2003-03-03 21:51:04 +00:00
ktsaou
3a1e6ef72d Minor changes in 'helpme' and changes in documentation to reflect the
'helpme' feature addition.
2003-02-26 22:26:16 +00:00
ktsaou
bd333fd563 'helpme' now produces router statements for each network each interface
is attached to. This produces templates to be used in cases where one
interface is used for routing traffic between multiple networks.

Additionally, 'helpme' produces example SNAT statements to be used instead
of masquerade when the IPs of the interfaces are statically assigned.
2003-02-25 21:35:06 +00:00
ktsaou
7b3ee64ad8 The helpme wizard now detects interfaces using:
ip link show

detects interface IPs using:

ip addr show

and detects interface networks using:

ip route show

This makes the 'helpme' wizard support any kind of interfaces,
configurations and interfaces aliases.
2003-02-24 23:30:21 +00:00
ktsaou
c536e6f893 Minor changes to helpme output. 2003-02-22 03:50:55 +00:00
ktsaou
d9033faa35 The helpme command line argument is now somewhat useful.
It produces a FireHOL configuration file in standard output.
2003-02-22 03:41:16 +00:00
ktsaou
53bad8c68d Added a modprobe ip_tables before iptables-save to make sure that the
later will not fail during boot.
2003-02-21 23:47:22 +00:00
ktsaou
465fa3bcd8 Fixed snmptrap and syslog.
Added the still 'under construction' wizard mode.
2003-02-20 22:32:56 +00:00
ktsaou
25f5acfdca Updated RESERVED_IPS according to the latest IANA Reserved IPv4 address
space.
2003-02-18 20:42:20 +00:00
ktsaou
3bbb0bb505 Added /sbin in front of two sysctl statements that were producing errors
in a few systems.

Added control option FIREHOL_LOG_LEVEL and the optional argument 'level'
to the 'log' parameter in order to accept custom log levels per rule.

Now, to have different log levels, one could write:

	server dhcp accept log "my-dhcp" src 1.1.1.1

to get the default controlled by FIREHOL_LOG_LEVEL, or

	server dhcp accept log "my-dhcp" level critical src 1.1.1.1

Note that the 'level' is NOT a FireHOL optional rule parameter. It is an
optional argument to the 'log' parameter. This for example is invalid:

	server dhcp accept level critical log "my-dhcp" src 1.1.1.1

The new definition of the 'log' optional rule parameter is:

                    log "some text" [level a_level]
2003-02-11 22:20:07 +00:00
ktsaou
d06b417e40 Added service emule. 2003-02-03 23:11:49 +00:00
ktsaou
dc1a5ae470 Fixed a typo. 2003-01-30 21:39:36 +00:00
ktsaou
ed76bd9028 Added TOS and MARK actions in FireHOL's core to support Type-Of-Service and
MARKing (for traffic shapping) in the future.

Also, added an error handler that detects use of SNAT, DNAT, REDIRECT
outside the 'nat' table and TOS, MARK outside the 'mangle' table.
2003-01-30 21:36:07 +00:00
ktsaou
2ff6575dbe The nat helper was wrongly producing duplicate logs when log/loglimit was
present in the optional rule parameters. Fixed.
2003-01-29 23:19:20 +00:00
ktsaou
448e667568 Made masquerade handle correctly interfaces given directly to it. 2003-01-28 19:47:31 +00:00
ktsaou
77cc8d4cf9 Made it handle the 'reverse' keyword of masquerade correctly. 2003-01-28 19:42:09 +00:00
ktsaou
77b1c11447 FireHOL now supports runtime ERRORs and WARNINGs.
ERRORs are assumed to be situations where FireHOL cannot continue, and it
will exit just after restoring the previous firewall.

WARNINGs are situations where FireHOL cannot determine if the firewall
will or won't work, and it will just present the warning and continue.
2003-01-25 02:33:59 +00:00
ktsaou
22877e2d5c Made FireHOL not stop processing if some required kernel module is not
present. This behaviour is required when the required module is compiled
in the kernel, instead of being a module.

However, FireHOL still calls /sbin/modprobe which will print some error
to the console (this will not make FireHOL stop functioning).
2003-01-25 01:46:11 +00:00
ktsaou
f5eea77b32 Added redirect helper to implement port redirections. 2003-01-25 00:37:37 +00:00
ktsaou
7c4cb59d28 Fixed a small typo. 2003-01-22 21:14:21 +00:00
ktsaou
b62a305a3e Added some comments to the just added code. 2003-01-22 21:02:43 +00:00
ktsaou
8f3f9df52f Fixed a bug in 'REJECT with auto' that made FireHOL produce wrong iptables
statements in some versions of BASH.

Fixed a problem of some early 2.4 kernels where not all mangle default
chains are defined. Now, FireHOL detects which chains are present.
2003-01-22 20:54:05 +00:00
ktsaou
5485dba02b Some text changes. 2003-01-22 19:13:27 +00:00
ktsaou
316dcdbbe4 Allowed multiple 'to' arguments to DNAT and SNAT. 2003-01-20 22:10:56 +00:00
ktsaou
5a2e5ba06f Added service cvspserver as suggested by Florian Thiel <thiel@ksan.de> 2003-01-20 21:50:36 +00:00
ktsaou
5dbe7dc336 Made snat and dnat use one core function named 'nat'. 2003-01-16 00:55:36 +00:00
ktsaou
9378bad72a Added experimental "snat" and "dnat" helpers. 2003-01-16 00:33:26 +00:00
ktsaou
72ff8b23b3 *** empty log message *** 2003-01-14 21:49:23 +00:00
ktsaou
4ed359b958 Added user (uid), group (gid), process (pid), session (sid) to optional
rule parameters. Modified FireHOL to apply such parameters only to
traffic send by the localhost and silently ignore them on incoming and
passing through traffic.
2003-01-13 23:31:03 +00:00