add ebtables & arptables for configuring the filter of a ethernet-bridge

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1286 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
arne_f
2008-03-25 16:38:47 +00:00
parent 0bd7d00b43
commit eb20e136cd
6 changed files with 201 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View 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

83
lfs/arptables Normal file
View File

@@ -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)

82
lfs/ebtables Normal file
View File

@@ -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)

View File

@@ -548,6 +548,8 @@ buildipfire() {
ipfiremake phpSANE
ipfiremake tunctl
ipfiremake nagios
ipfiremake ebtables
ipfiremake arptables
}
buildinstaller() {