summaryrefslogtreecommitdiff
path: root/snats.c
diff options
context:
space:
mode:
Diffstat (limited to 'snats.c')
-rw-r--r--snats.c2
1 files changed, 1 insertions, 1 deletions
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);