Commit Graph

801 Commits

Author SHA1 Message Date
Arne Fitzenreiter
c83d161463 init-functions: enable autoramdisk with 400MB
The 512MB raspberry pi reserve some memory for buffers and gpu
so there are a bit less than 490 MB free.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-23 20:01:30 +01:00
Arne Fitzenreiter
552fb4b8b5 dhcpcd: rework mtu handling on buggy nic's
some nic's loose the carrier after setting new mtu.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-01 07:31:46 +01:00
Michael Tremer
8a1a3bf393 Merge remote-tracking branch 'ms/iptables-conntrack' into next 2016-01-22 00:54:14 +00:00
Michael Tremer
98b8cabf4d dnsdist: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-22 22:27:58 +00:00
Michael Tremer
08729f79fb ramdisk: Backup ramdisks once a night
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-15 13:47:52 +00:00
Michael Tremer
b5e1360eb9 ramdisk: Remove temporary directory recursively
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-12 12:46:02 +01:00
root
24f2144dd2 ramdisk: Fix copying files
The shell expansion wasn't used because of the quotation marks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-12 12:36:17 +01:00
Michael Tremer
5b2155bfdd Drop cryptodev
This module isn't used by openssl any more and therefore
quite unnecessary.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-04 22:18:19 +00:00
Michael Tremer
6146d1904a ramdisk: Avoid copying data if no ramdisk is used
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-03 16:03:29 +00:00
Michael Tremer
84c5f0d66d ramdisk: Move crontab back to disk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-03 14:57:30 +00:00
Michael Tremer
ee3dec50a3 ramdisk: Make usage of ramdisk configurable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-03 14:41:49 +00:00
Michael Tremer
5258a65dea initscripts: functions: Fix indentation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-03 14:27:33 +00:00
Alexander Marx
c4a451eead Remove ramdisks for RRD databases
Ramdisks are very limited in space and as new graphs
are generated for OpenVPN N2N connections, etc. more
space is necessary.

This patch will enable ramdisks for all systems with more
than 490M of memory and allows the user to force using
a ramdisk on systems with less memory.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Acked-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-03 13:14:23 +00:00
Arne Fitzenreiter
74e5c32e19 Merge branch 'master' into next 2015-12-02 21:39:20 +01:00
Arne Fitzenreiter
1f182999bc cpufreq: change initscript for intel pstate driver.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2015-12-02 14:17:34 +01:00
Stefan Schantl
c77e962d56 snort: Also monitor assigned alias addresses on red.
These changes will allow snort to also inspect the traffic for
one or more configured alias addresses, which has not been done in the past.

The current situation is, that snort if enabled on red, only inspects
the traffic which is desired to the statically configured red address.

If some alias addresses have been assigned to the red interface the
traffic to these addresses will not be checked by snort and
completely bypasses the IDS.

There is no user interaction required, nor visible-effects or any
backward-compatiblity required, only a restart of snort after the
update process to protect all red addresses.

To do this we will now check if, the RED interface has been set to STATIC (which
is required to use the aliases function) and any aliases have been configured. In
case of this, the modified code will add all enabled alias addresses to the HOMENET
variable in which snort is storing all the monitored addresses.

Fixes #10619.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-11-18 17:30:59 +00:00
Arne Fitzenreiter
60fcb2410e firewall: fix disable MASQERADE in green only mode.
using MASQERADE_GREEN="off" will not work because "NETWORK_GREEN" is
not correctly defined in green only mode.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2015-11-01 11:20:56 +01:00
Arne Fitzenreiter
16cb6ae3d0 geo-ip: download initial database in background.
on slow internet connections like gprs the first start hung many minutes.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2015-10-31 16:57:16 +01:00
Michael Tremer
364452506f Merge remote-tracking branch 'ms/dhcp-rfc2136-broken-down' into next 2015-10-21 13:50:31 +01:00
Michael Tremer
80fbd89949 ipsec: Add block rules to avoid conntrack entries
If an IPsec VPN connections is not established, there are
rare cases when packets are supposed to be sent through
that said tunnel and incorrectly handled.

Those packets are sent to the default gateway an entry
for this connection is created in the connection tracking
table (usually only happens to UDP). All following packets
are sent the same route even after the tunnel has been
brought up. That leads to SIP phones not being able to
register among other things.

This patch adds firewall rules that these packets are
rejected. That will sent a notification to the client
that the tunnel is not up and avoid the connection to
be added to the connection tracking table.

Apart from a small performance penalty there should
be no other side-effects.

Fixes: #10908

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Cc: tomvend@rymes.com
Cc: daniel.weismueller@ipfire.org
Cc: morlix@morlix.de
Reviewed-by: Timo Eissler <timo.eissler@ipfire.org>
2015-10-15 22:44:47 +01:00
Michael Tremer
dfe630f77c Merge remote-tracking branch 'ms/experimental-vlan-hotplugging' into next 2015-09-28 14:33:49 +01:00
Matthias Fischer
7f263dc736 Fixed some typos in initscript
"Createing= => "Creating"...

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-19 18:50:54 +01:00
Douglas Duckworth
6ee104aeb7 snort: Remove trailing slash in pid path
Fixes: https://bugzilla.ipfire.org/show_bug.cgi?id=10924

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-14 23:19:50 +01:00
Michael Tremer
ea0033d962 SSH: Replace old RSA keys with a new set
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-20 23:26:49 +01:00
Michael Tremer
04da8aa70a Do not create any DSA keys any more
DSA is considered weak cryptography

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-20 23:22:08 +01:00
Michael Tremer
2c4b9c5004 firewall: Fix amanda helper
This helper requires setting a layer 4 protocol.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-12 12:44:26 +01:00
Michael Tremer
e2c723627c firewall: Fix H.323 helpers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-12 12:18:18 +01:00
Michael Tremer
3db584817d Remove old VLAN initscript
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-05 12:43:53 +01:00
Arne Fitzenreiter
7b9233935e core90: fix missing filename in metafile. 2015-05-13 19:44:15 +02:00
Michael Tremer
c8f8bf328f firewall: Add H.323 to the conntrack helpers 2015-05-12 13:33:27 +02:00
Michael Tremer
50354ffe3a firewall: Add IRC to the conntrack helpers 2015-05-12 13:27:24 +02:00
Michael Tremer
a93bf69617 firewall: Add amanda to the conntrack helpers 2015-05-12 13:25:04 +02:00
Michael Tremer
d57c6162cb firewall: Make conntrack helpers configurable 2015-05-12 13:16:40 +02:00
Michael Tremer
4071b2d61b firewall: iptables will load the conntrack modules automatically 2015-05-11 13:04:14 +02:00
Michael Tremer
0f5350608e firewall: Accept related ICMP packets again
This rule is required to forward ICMP error messages for
aborted TCP connections and the like.
2015-05-11 13:00:34 +02:00
Michael Tremer
a235f22952 firewall: Remove option to disable the SIP ALG 2015-04-22 18:13:56 +02:00
Michael Tremer
b1109b8af5 Enhance the security of the netfilter conntrack helpers
This is suggested here
  https://home.regit.org/netfilter-en/secure-use-of-helpers/
and deprecated in the kernel (#10665).
2015-04-22 18:10:59 +02:00
Arne Fitzenreiter
2e28ecea3e functions.network: update dhcp client commandline.
this fix trailing space before hostname.
2015-04-20 22:48:46 +02:00
Stefan Schantl
e6c4f090b6 Merge branch 'next-geoip' into core-90-geoip 2015-04-15 17:10:49 +02:00
Arne Fitzenreiter
040ec360f9 hostapd: remove MADWIFI from initskript 2015-04-11 22:23:31 +02:00
Arne Fitzenreiter
0fbba54e82 Merge branch 'master' into next
Conflicts:
	lfs/monit
2015-04-11 21:58:09 +02:00
Alexander Marx
7ca64c9f0b BUG10790: create dummy ovpnserver.log in /var/run 2015-04-09 14:43:12 +02:00
Arne Fitzenreiter
d2dabe5eba dnsmasq: fix initskript
-add timestamp filename
-pull user config after define default parameter
2015-04-09 14:36:45 +02:00
Stefan Schantl
2be0bc4410 nfs-server: Drop kernel version check from initscript.
As suggested on the bugtracker, the kernel version check completely has been
removed.

Fixes #10760.
2015-04-04 14:08:51 +02:00
Stefan Schantl
8f548dfe36 Merge branch 'nfs-server-fix' into next 2015-04-03 19:19:34 +02:00
Stefan Schantl
668ea5d311 nfs-server: Fix kernel version check in initscript.
nfsd requires a mounted nfsd filesystem which has been introduced in
the kernel 2.6 tree. To determine the current running kernel, a check
was included in the initscript which works fine until we switched to a kernel
version 3.x.

This commit fixes this check, so the nfs-server will startup again.

Fixes #10760.
2015-04-03 18:59:12 +02:00
Arne Fitzenreiter
0d573e226f dnsmasq: fix initskript
-add timestamp filename
-pull user config after define default parameter
2015-03-31 10:09:46 +02:00
Michael Tremer
28fee67640 dnsmasq: Disable parsing leases when DNS Update is enabled 2015-03-16 01:11:29 +01:00
Stefan Schantl
e24668f99a networking/red.up/99-geoip-database: Fix empty folder check. 2015-03-15 11:40:31 +01:00
Stefan Schantl
16bbdeb988 networking/red.up/99-geoip-database: Fix typo. 2015-03-15 11:39:55 +01:00