projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[package] firewall: add option to disable NAT reflection
[openwrt.git]
/
package
/
firewall
/
files
/
reflection.hotplug
diff --git
a/package/firewall/files/reflection.hotplug
b/package/firewall/files/reflection.hotplug
index
dc6780a
..
6b1cd60
100644
(file)
--- a/
package/firewall/files/reflection.hotplug
+++ b/
package/firewall/files/reflection.hotplug
@@
-53,6
+53,10
@@
if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local proto
config_get proto "$cfg" proto
+ local reflection
+ config_get_bool reflection "$cfg" reflection 1
+ [ "$reflection" == 1 ] || return
+
local epmin epmax extport
config_get extport "$cfg" src_dport
[ -n "$extport" ] || return
This page took
0.023171 seconds
and
4
git commands to generate.