[PATCH net v5 0/2] Fix port selection of FTP for NF_NAT_RANGE_PROTO_SPECIFIED

From: Cole Dishington
Date: Sun Sep 19 2021 - 21:00:11 EST


Thanks for your time reviewing!

Changes:
Divide changes into two patches
- Limit the number of ports checked by ftp helper to 128.
- Fix port selection of FTP for NF_NAT_RANGE_PROTO_SPECIFIED.

Cole Dishington (2):
net: netfilter: Limit the number of ftp helper port attempts
net: netfilter: Fix port selection of FTP for
NF_NAT_RANGE_PROTO_SPECIFIED

include/net/netfilter/nf_nat.h | 6 ++++
net/netfilter/nf_nat_core.c | 9 ++++++
net/netfilter/nf_nat_ftp.c | 51 ++++++++++++++++++++++++++--------
net/netfilter/nf_nat_helper.c | 10 +++++++
4 files changed, 65 insertions(+), 11 deletions(-)

--
2.33.0