projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snat: ICMP can be port-natted as well
[project/firewall3.git]
/
snats.c
diff --git
a/snats.c
b/snats.c
index 11bcc068390661e0cc68f0324abbc5de4e928267..ad0c9b0e69c5ce5fbf6fc724c1c3b3ce155dde97 100644
(file)
--- 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 &&
}
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);
{
if (snat->port_snat.port_min == snat->port_snat.port_max)
sprintf(buf + strlen(buf), ":%u", snat->port_snat.port_min);