]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
firewall: Some changes to fix error messages.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Sep 2009 17:44:47 +0000 (19:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 Sep 2009 17:46:03 +0000 (19:46 +0200)
These changes don't bring any feature but will make
the firewall not complain.

src/firewall/functions
src/firewall/zones.blue
src/firewall/zones.red

index 0d0bd6682e2f74067f000507ce57e4e56a0ef188..d8fb5977cc5cb1b94f02d481cf4ebef3ed45ab10 100644 (file)
@@ -103,11 +103,9 @@ function _start() {
        done
 
        iptables_commit
-       touch /var/lock/subsys/firewall
 }
 
 function _stop() {
        iptables_flush
        iptables_commit
-       rm -f /var/lock/subsys/firewall
 }
index 2f515477b29ad887f98ebfb236d3bd8539e5c786..e9823a577fb1aec9856becae360177dce3777494 100644 (file)
@@ -35,7 +35,7 @@ function zones_policy_blue() {
        name=$(uppercase "$device")
 
        # Accept dhcp traffic
-       macro DHCP -A ZONE_${name}_POLICY -i ${device} -j ACCEPT
+       #macro DHCP -A ZONE_${name}_POLICY -i ${device} -j ACCEPT
 
        # Mac filter
        : # TODO
index 1b3e4c3845a5d6a6d49ce46ea779ed2a148ec4b5..549300c6566492af5c09268cf529ae6d170a99bc 100644 (file)
 #                                                                             #
 ###############################################################################
 
+function zones_red_add() {
+       # $1 = device
+
+       zones_global_add $1
+       zones_policy_red $1
+
+}
+
+function zones_policy_red() {
+       local device
+       local name
+
+       device=$1
+       name=$(uppercase "$device")
+
+       : # TODO
+}