summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root/etc/firewall.freifunk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-16 22:38:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-16 22:38:08 +0000
commit720e460893b2d83d76715786075e03787216750a (patch)
tree5dc716458ccfa1a20e4f75e8958554c8a63a6082 /modules/freifunk/root/etc/firewall.freifunk
parent992bc68b2b9d95d7fa46eeef42a67cd51291701d (diff)
modules/freifunk: remove firewall addon data
Diffstat (limited to 'modules/freifunk/root/etc/firewall.freifunk')
-rw-r--r--modules/freifunk/root/etc/firewall.freifunk62
1 files changed, 0 insertions, 62 deletions
diff --git a/modules/freifunk/root/etc/firewall.freifunk b/modules/freifunk/root/etc/firewall.freifunk
deleted file mode 100644
index b27957bd4..000000000
--- a/modules/freifunk/root/etc/firewall.freifunk
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-# Freifunk Firewall addons
-# $Id$
-
-
-#
-# Apply advanced settings
-#
-apply_advanced() {
- local tcp_ecn
- local tcp_window_scaling
- local accept_redirects
- local accept_source_route
-
- config_get_bool tcp_ecn $1 tcp_ecn 1
- config_get ip_conntrack_max $1 ip_conntrack_max
- config_get_bool tcp_westwood $1 tcp_westwood 0
- config_get_bool tcp_window_scaling $1 tcp_window_scaling 1
- config_get_bool accept_redirects $1 accept_redirects 0
- config_get_bool accept_source_route $1 accept_source_route 0
-
- logger -t firewall.freifunk "tcp_ecn is $tcp_ecn"
- logger -t firewall.freifunk "tcp_window_scaling is $tcp_window_scaling"
- logger -t firewall.freifunk "accept_redirects is $accept_redirects"
- logger -t firewall.freifunk "accept_source_route is $accept_source_route"
-
- sysctl -w net.ipv4.tcp_ecn=$tcp_ecn >/dev/null
- sysctl -w net.ipv4.tcp_window_scaling=$tcp_window_scaling >/dev/null
- sysctl -w net.ipv4.tcp_westwood=$tcp_westwood >/dev/null
- sysctl -w net.ipv4.ip_conntrack_max=$ip_conntrack_max >/dev/null
-
- for f in /proc/sys/net/ipv4/conf/*/accept_redirects; do
- echo $accept_redirects > $f
- done
-
- for f in /proc/sys/net/ipv4/conf/*/accept_source_route; do
- echo $accept_source_route > $f
- done
-}
-
-config_foreach apply_advanced advanced
-
-
-#
-# Apply fixes for masquerading rules
-#
-apply_nat_fix() {
- local up
- local ifname
- config_get up $1 up
- [ -n "$up" ] || return 0
- (ACTION="ifup" INTERFACE="$1" . /etc/hotplug.d/iface/22-firewall-nat-fix )
-}
-
-uci_set_state firewall core loaded 1
-config_foreach fw_addif interface
-config_foreach apply_nat_fix interface
-
-[ -x /etc/init.d/luci_splash ] && ( sleep 3; /etc/init.d/luci_splash restart )&
-
-[ -x /etc/init.d/freifunk-p2pblock ] && /etc/init.d/freifunk-p2pblock enabled && \
- ( sleep 3; /etc/init.d/freifunk-p2pblock restart )&