From 5627667654db791fc105117c8d5717caacbaa1b9 Mon Sep 17 00:00:00 2001
From: John Crispin <john@openwrt.org>
Date: Mon, 11 Aug 2008 22:27:36 +0000
Subject: uci firewall - make uci firewall default and remove old code - fix up
 dependencies

SVN-Revision: 12284
---
 package/firewall/files/old/firewall.awk | 50 ---------------------------------
 1 file changed, 50 deletions(-)
 delete mode 100644 package/firewall/files/old/firewall.awk

(limited to 'package/firewall/files/old/firewall.awk')

diff --git a/package/firewall/files/old/firewall.awk b/package/firewall/files/old/firewall.awk
deleted file mode 100644
index 31dbae0..0000000
--- a/package/firewall/files/old/firewall.awk
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright (C) 2006 OpenWrt.org
-
-BEGIN {
-	FS=":"
-}
-
-($1 == "accept") || ($1 == "drop") || ($1 == "forward") {
-	delete _opt
-	str2data($2)
-	if ((_l["proto"] == "") && (_l["sport"] _l["dport"] != "")) {
-		_opt[0] = " -p tcp"
-		_opt[1] = " -p udp"
-	} else {
-		_opt[0] = ""
-	}
-}
-
-($1 == "accept") {
-	target = " -j ACCEPT"
-	for (o in _opt) {
-		print "iptables -t nat -A prerouting_wan" _opt[o] str2ipt($2) target
-		print "iptables        -A input_wan     " _opt[o] str2ipt($2) target
-		print ""
-	}
-}
-
-($1 == "drop") {
-	for (o in _opt) {
-		print "iptables -t nat -A prerouting_wan" _opt[o] str2ipt($2) " -j DROP"
-		print ""
-	}
-}
-
-($1 == "forward") {
-	target = " -j DNAT --to " $3
-	fwopts = ""
-	if ($4 != "") {
-		if ((_l["proto"] == "tcp") || (_l["proto"] == "udp") || (_l["proto"] == "")) {
-			if (_l["proto"] != "") fwopts = " -p " _l["proto"]
-			fwopts = fwopts " --dport " $4
-			target = target ":" $4
-		}
-		else fwopts = ""
-	}
-	for (o in _opt) {
-		print "iptables -t nat -A prerouting_wan" _opt[o] str2ipt($2) target
-		print "iptables        -A forwarding_wan   " _opt[o] " -d " $3 fwopts " -j ACCEPT"
-		print ""
-	}
-}
-- 
cgit v1.1