Просмотр исходного кода

firewall: add option to disable NAT reflection

SVN-Revision: 22908
Jo-Philipp Wich 15 лет назад
Родитель
Сommit
f4ee14e1c3
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      package/firewall/files/reflection.hotplug

+ 4 - 0
package/firewall/files/reflection.hotplug

@@ -53,6 +53,10 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
 				local proto
 				local proto
 				config_get proto "$cfg" proto
 				config_get proto "$cfg" proto
 
 
+				local reflection
+				config_get_bool reflection "$cfg" reflection 1
+				[ "$reflection" == 1 ] || return
+
 				local epmin epmax extport
 				local epmin epmax extport
 				config_get extport "$cfg" src_dport
 				config_get extport "$cfg" src_dport
 				[ -n "$extport" ] || return
 				[ -n "$extport" ] || return