forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
1d9f109
commit 0f4c3eb
Showing
10 changed files
with
35 additions
and
182 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
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
package/lean/luci-app-fullconenat/luasrc/controller/fullconenat.lua
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
package/lean/luci-app-fullconenat/luasrc/model/cbi/fullconenat.lua
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
package/lean/luci-app-fullconenat/root/etc/config/fullconenat
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
package/lean/luci-app-fullconenat/root/etc/init.d/fullconenat
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
package/lean/luci-app-fullconenat/root/etc/uci-defaults/fullconenat
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
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,23 @@ | ||
diff --git a/zones.c b/zones.c | ||
index 505ab20..44500d5 100644 | ||
--- a/zones.c | ||
+++ b/zones.c | ||
@@ -708,8 +708,18 @@ print_zone_rule(struct fw3_ipt_handle *handle, struct fw3_state *state, | ||
{ | ||
r = fw3_ipt_rule_new(handle); | ||
fw3_ipt_rule_src_dest(r, msrc, mdest); | ||
+#ifdef USE_FULLCONENAT | ||
+ fw3_ipt_rule_target(r, "FULLCONENAT"); | ||
+#else | ||
fw3_ipt_rule_target(r, "MASQUERADE"); | ||
+#endif | ||
fw3_ipt_rule_append(r, "zone_%s_postrouting", zone->name); | ||
+#ifdef USE_FULLCONENAT | ||
+ r = fw3_ipt_rule_new(handle); | ||
+ fw3_ipt_rule_src_dest(r, msrc, mdest); | ||
+ fw3_ipt_rule_target(r, "FULLCONENAT"); | ||
+ fw3_ipt_rule_append(r, "zone_%s_prerouting", zone->name); | ||
+#endif | ||
} | ||
} | ||
} |