X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=snats.c;h=fad600876f4d8bc7c64f9384b87c32fb12dac1bb;hp=0f7d851bc8e3153512d1a9bc9cbfda4c3918af11;hb=6039c7f4b0052c4da21520cdd604f04a5a67f50d;hpb=1d0bd45db042c9dd916f15a5f4e3e5a2f63d0616;ds=sidebyside diff --git a/snats.c b/snats.c index 0f7d851..fad6008 100644 --- a/snats.c +++ b/snats.c @@ -1,7 +1,7 @@ /* * firewall3 - 3rd OpenWrt UCI firewall implementation * - * Copyright (C) 2014 Jo-Philipp Wich + * Copyright (C) 2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -252,10 +252,7 @@ fw3_load_snats(struct fw3_state *state, struct uci_package *p, struct blob_attr } if (snat->_src) - { set(snat->_src->flags, FW3_FAMILY_V4, FW3_FLAG_SNAT); - snat->_src->conntrack = true; - } } } @@ -265,7 +262,7 @@ append_chain(struct fw3_ipt_rule *r, struct fw3_snat *snat) if (snat->_src) fw3_ipt_rule_append(r, "zone_%s_postrouting", snat->src.name); else - fw3_ipt_rule_append(r, "delegate_postrouting"); + fw3_ipt_rule_append(r, "POSTROUTING"); } static void