X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=snats.c;h=ad0c9b0e69c5ce5fbf6fc724c1c3b3ce155dde97;hp=11bcc068390661e0cc68f0324abbc5de4e928267;hb=6d8d3d855e7ddef5f73b68847ddcbc6ba22379f8;hpb=6907da00bbf0a5c6778f3ca8c9646bdc04119705 diff --git a/snats.c b/snats.c index 11bcc06..ad0c9b0 100644 --- a/snats.c +++ b/snats.c @@ -247,7 +247,7 @@ set_target(struct fw3_ipt_rule *r, struct fw3_snat *snat, } if (snat->port_snat.set && proto && !proto->any && - (proto->protocol == 6 || proto->protocol == 17)) + (proto->protocol == 6 || proto->protocol == 17 || proto->protocol == 1)) { if (snat->port_snat.port_min == snat->port_snat.port_max) sprintf(buf + strlen(buf), ":%u", snat->port_snat.port_min);