Reapply SNAT/MASQUERADE rules on firewall reloads
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 11 Apr 2014 16:25:37 +0000 (18:25 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 11 Apr 2014 16:25:49 +0000 (18:25 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
main.c

diff --git a/main.c b/main.c
index c0180b2e8ba9b79b69caacd7515071af617c5734..bf0830b867cf37ed719313c9a2ae1c20ad63c67a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -374,6 +374,7 @@ start:
                        fw3_print_default_head_rules(handle, cfg_state, true);
                        fw3_print_rules(handle, cfg_state);
                        fw3_print_redirects(handle, cfg_state);
+                       fw3_print_snats(handle, cfg_state);
                        fw3_print_forwards(handle, cfg_state);
                        fw3_print_zone_rules(handle, cfg_state, true);
                        fw3_print_default_tail_rules(handle, cfg_state, true);