mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/shorewall-shell: fix redirect excludes
Fixes this error: Setting up Rules... Bad argument `10.12.96.1' Try `iptables -h' or 'iptables --help' for more information. ERROR: Command "/sbin/iptables -t nat -A D_96_dnat -p tcp -d ! 10.12.96.1 --dport 80 -j REDIRECT --to-port 8080" Failed on rule: REDIRECT:info D_96 8080 tcp 80 - !10.12.96.1
This commit is contained in:
parent
28f6432c83
commit
c2ad54cf99
@ -2,7 +2,7 @@
|
||||
pkgname=shorewall-shell
|
||||
_v=4.2.11
|
||||
pkgver=4.2.11
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="Shoreline Firewall shell-based compiler."
|
||||
url="http://www.shorewall.net/"
|
||||
arch="noarch"
|
||||
@ -15,6 +15,7 @@ source="http://www.shorewall.net/pub/shorewall/${_v%.*}/shorewall-$_v/$pkgname-$
|
||||
shorewall-shell-providers-gateway-none.patch
|
||||
shorewall-shell-rp_filter.patch
|
||||
restore-default-route.patch
|
||||
redirect-excludes.patch
|
||||
"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
@ -37,4 +38,5 @@ md5sums="518a7f389a6f606c109acb7dfbe18372 shorewall-shell-4.2.11.tar.bz2
|
||||
79745ea284a08cb167b9a356ee0bff3b shorewall-shell-ipset.patch
|
||||
0c6106a8cbb95d21c0c878a6235a65ac shorewall-shell-providers-gateway-none.patch
|
||||
d5eadb6be45aa41f80669452baa853a6 shorewall-shell-rp_filter.patch
|
||||
c971270086d5de15327f498d1be64fcb restore-default-route.patch"
|
||||
c971270086d5de15327f498d1be64fcb restore-default-route.patch
|
||||
90e54cbb55213a2b3dcb6f57d20d1490 redirect-excludes.patch"
|
||||
|
||||
15
main/shorewall-shell/redirect-excludes.patch
Normal file
15
main/shorewall-shell/redirect-excludes.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- ./lib.nat.orig
|
||||
+++ ./lib.nat
|
||||
@@ -683,10 +683,10 @@
|
||||
fi
|
||||
;;
|
||||
!*)
|
||||
- if [ $(list_count $addr) -gt 1 ]; then
|
||||
+# if [ $(list_count $addr) -gt 1 ]; then
|
||||
excludedests="${addr#\!}"
|
||||
addr=
|
||||
- fi
|
||||
+# fi
|
||||
;;
|
||||
esac
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user