From 6d8d3d855e7ddef5f73b68847ddcbc6ba22379f8 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 10 Apr 2014 22:39:42 +0200 Subject: [PATCH] snat: ICMP can be port-natted as well Signed-off-by: Steven Barth --- snats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1