diff options
author | Steven Barth <steven@midlink.org> | 2014-04-10 22:39:42 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-04-14 08:47:07 +0200 |
commit | 6d8d3d855e7ddef5f73b68847ddcbc6ba22379f8 (patch) | |
tree | bbd302eb2ce6968a8a41761a97d7332e7eb55bde /snats.c | |
parent | 6907da00bbf0a5c6778f3ca8c9646bdc04119705 (diff) | |
download | firewall3-6d8d3d855e7ddef5f73b68847ddcbc6ba22379f8.tar.gz |
snat: ICMP can be port-natted as well
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'snats.c')
-rw-r--r-- | snats.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |