From: Steven Barth Date: Thu, 10 Apr 2014 20:39:42 +0000 (+0200) Subject: snat: ICMP can be port-natted as well X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=commitdiff_plain;h=6d8d3d855e7ddef5f73b68847ddcbc6ba22379f8;ds=sidebyside snat: ICMP can be port-natted as well Signed-off-by: Steven Barth --- 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);