]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
add ebtables & arptables for configuring the filter of a ethernet-bridge
authorarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 25 Mar 2008 16:38:47 +0000 (16:38 +0000)
committerarne_f <arne_f@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 25 Mar 2008 16:38:47 +0000 (16:38 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1286 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/packages/arptables [new file with mode: 0644]
config/rootfiles/packages/ebtables [new file with mode: 0644]
doc/packages-list.txt
lfs/arptables [new file with mode: 0644]
lfs/ebtables [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/arptables b/config/rootfiles/packages/arptables
new file mode 100644 (file)
index 0000000..7aaf491
--- /dev/null
@@ -0,0 +1,5 @@
+#etc/rc.d/init.d/arptables
+#usr/local/man/man8/arptables.8
+usr/local/sbin/arptables
+usr/local/sbin/arptables-restore
+usr/local/sbin/arptables-save
diff --git a/config/rootfiles/packages/ebtables b/config/rootfiles/packages/ebtables
new file mode 100644 (file)
index 0000000..60e74f3
--- /dev/null
@@ -0,0 +1,27 @@
+etc/ethertypes
+#etc/rc.d/init.d/ebtables
+#etc/sysconfig/ebtables-config
+usr/lib/libebt_802_3.so
+usr/lib/libebt_among.so
+usr/lib/libebt_arp.so
+usr/lib/libebt_arpreply.so
+usr/lib/libebt_ip.so
+usr/lib/libebt_limit.so
+usr/lib/libebt_log.so
+usr/lib/libebt_mark.so
+usr/lib/libebt_mark_m.so
+usr/lib/libebt_nat.so
+usr/lib/libebt_pkttype.so
+usr/lib/libebt_redirect.so
+usr/lib/libebt_standard.so
+usr/lib/libebt_stp.so
+usr/lib/libebt_ulog.so
+usr/lib/libebt_vlan.so
+usr/lib/libebtable_broute.so
+usr/lib/libebtable_filter.so
+usr/lib/libebtable_nat.so
+usr/lib/libebtc.so
+#usr/local/man/man8/ebtables.8
+usr/local/sbin/ebtables
+usr/local/sbin/ebtables-restore
+usr/local/sbin/ebtables-save
index c23b36ab2d92884f440916f19c04f4a730693d3e..f45e6c0e575f9a943941f0ae156148df8170f0bf 100644 (file)
@@ -34,6 +34,7 @@
 * amavisd-new-2.5.2
 * applejuice-0.30
 * arping-2.05
+* arptables-v0.0.3-3
 * as86-0.16.17
 * asterisk-1.4.18
 * atl1-1.2.40.2
@@ -70,6 +71,7 @@
 * dnsmasq-2.40
 * dosfstools-2.11
 * e2fsprogs-1.39
+* ebtables-v2.0.8-2
 * ed-0.2
 * elinks-0.11.4rc0
 * espgs-8.15.1
diff --git a/lfs/arptables b/lfs/arptables
new file mode 100644 (file)
index 0000000..1cbfec5
--- /dev/null
@@ -0,0 +1,83 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 0.0.3-3
+
+THISAPP    = arptables-v$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = arptables
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 3f4a8b62920a46d746ab892be7de088f
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/lfs/ebtables b/lfs/ebtables
new file mode 100644 (file)
index 0000000..e6cc69b
--- /dev/null
@@ -0,0 +1,82 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 2.0.8-2
+
+THISAPP    = ebtables-v$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = ebtables
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 66bcbcb2dcf3b981ad4e86e1720e796e
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 5c93bd30a61ef11f0f5ca5fe1dfa79f58b3786b2..5c0e6848779ebde86ba076ff48873d09cfadceb5 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -548,6 +548,8 @@ buildipfire() {
   ipfiremake phpSANE
   ipfiremake tunctl
   ipfiremake nagios
+  ipfiremake ebtables
+  ipfiremake arptables
 }
 
 buildinstaller() {