git: ipfw3nat: ICMP packets NAT using icmp id
Bill Yuan
bycn82 at crater.dragonflybsd.org
Mon Jun 21 08:16:51 PDT 2021
commit eb4c9e6d01df1803b884c6499ab99062a4453975
Author: Bill Yuan <bycn82 at dragonflybsd.org>
Date: Mon Jun 21 23:04:33 2021 +0800
ipfw3nat: ICMP packets NAT using icmp id
TCP/UDP are using tuple(srcip,srcport,dstip, dstport),
while ICMP is using tuple(srcip, icmp_id, dstip, icmp_id)
icmp_id after NAT is generated using srcip & dstip
Summary of changes:
sys/net/ipfw3_nat/ip_fw3_nat.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/eb4c9e6d01df1803b884c6499ab99062a4453975
--
DragonFly BSD source repository
More information about the Commits
mailing list