-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
62 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ define Package/$(PKG_NAME) | |
CATEGORY:=LibreMesh | ||
MAINTAINER:=Gioacchino Mazzurco <[email protected]> | ||
URL:=http://libremesh.org | ||
DEPENDS:=+dnsmasq-dhcpv6 +ebtables +libuci-lua \ | ||
+lime-system +lua +kmod-ebtables +kmod-macvlan \ | ||
+shared-state +shared-state-dnsmasq_leases +kmod-ebtables-ipv6 \ | ||
DEPENDS:=+ebtables-nft +dnsmasq-dhcpv6 +kmod-nft-bridge +libuci-lua \ | ||
+lime-system +lua +kmod-macvlan \ | ||
+shared-state +shared-state-dnsmasq_leases \ | ||
+luci-lib-nixio | ||
PKGARCH:=all | ||
endef | ||
|
26 changes: 26 additions & 0 deletions
26
packages/lime-proto-anygw/files/etc/init.d/lime-anygw-ebtables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
START=22 | ||
USE_PROCD=0 | ||
|
||
ANYGW_MACS="aa:aa:aa:00:00:00/ff:ff:ff:00:00:00" | ||
IPV6_ETHER_TYPE="86DD" # Workaround missing /etc/ethertypes | ||
|
||
RULE_DO_NOT_FORWARD_ANYGW_1="FORWARD -j DROP -d $ANYGW_MACS" | ||
RULE_DO_NOT_FORWARD_ANYGW_2="POSTROUTING -t nat -o bat0 -j DROP -s $ANYGW_MACS" | ||
RULE_DO_NOT_FORWARD_RA="POSTROUTING -t nat -o bat0 --protocol $IPV6_ETHER_TYPE --ip6-protocol ipv6-icmp --ip6-icmp-type router-solicitation -j DROP" | ||
RULE_DO_NOT_FORWARD_ROGUE_RA="POSTROUTING -t nat -o bat0 --protocol $IPV6_ETHER_TYPE --ip6-protocol ipv6-icmp --ip6-icmp-type router-advertisement -j DROP" | ||
|
||
start_service() { | ||
ebtables -A $RULE_DO_NOT_FORWARD_ANYGW_1 | ||
ebtables -A $RULE_DO_NOT_FORWARD_ANYGW_2 | ||
ebtables -A $RULE_DO_NOT_FORWARD_RA | ||
ebtables -A $RULE_DO_NOT_FORWARD_ROGUE_RA | ||
} | ||
|
||
stop_service() { | ||
ebtables -D $RULE_DO_NOT_FORWARD_ANYGW_1 | ||
ebtables -D $RULE_DO_NOT_FORWARD_ANYGW_2 | ||
ebtables -D $RULE_DO_NOT_FORWARD_RA | ||
ebtables -D $RULE_DO_NOT_FORWARD_ROGUE_RA | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ define Package/$(PKG_NAME) | |
SECTION:=lime | ||
CATEGORY:=LibreMesh | ||
TITLE:=LiMe wan proto support | ||
DEPENDS:=+lime-system +lua +libuci-lua +kmod-ipt-nat +iptables +luci-lib-nixio | ||
DEPENDS:=+firewall4 +lime-system +lua +libuci-lua | ||
MAINTAINER:=Gioacchino Mazzurco <[email protected]> | ||
VERSION:=$(if $(PKG_VERSION),$(PKG_VERSION),$(PKG_SRC_VERSION)) | ||
PKGARCH:=all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ define Package/$(PKG_NAME) | |
CATEGORY:=LibreMesh | ||
MAINTAINER:=Gioacchino Mazzurco <[email protected]> | ||
URL:=http://libremesh.org | ||
DEPENDS:=+libiwinfo-lua +lua +libuci-lua +luci-lib-ip +luci-lib-nixio +luci-lib-jsonc | ||
DEPENDS:=+firewall4 +libiwinfo-lua +lua +libuci-lua +luci-lib-ip +luci-lib-nixio +luci-lib-jsonc | ||
PKGARCH:=all | ||
endef | ||
|
||
|
@@ -57,7 +57,8 @@ endef | |
|
||
define Package/$(PKG_NAME)/postinst | ||
#!/bin/sh | ||
[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/firewall-lime enable || true | ||
#[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/firewall-lime enable || true | ||
# Add here stuff to be executed after installation at image creation time | ||
endef | ||
|
||
$(eval $(call BuildPackage,$(PKG_NAME))) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters