Linux?FTP?????????iptables????--????????
???????????? ???????[ 2016/8/18 11:07:27 ] ?????????????? Linux
???????????????
???????????????????????????ftp???????????ú???????????????????????á????????????????????????????????ftp????????????ftp???????????и?????????????????telnet???????????????????????winscp ??????????????????????????ftp??iptables ???????????ò?????е??????????????????????????????????????????????????????????....??
??????????????
????1.????е??????????м??????1???
????-A INPUT -p tcp -s 192.168.30.0/24 -p tcp -m state NEW --dport 21 -j ACCEPT
????-A INPUT -m state --state ESTABLISHED??RELATED -j ACCEPT
????2.?????????????????????????????ftp????????????????????г?????
????
?1.
????
?2.
????3.??????iptables ??????????У?????????????????????????????????????????Ч?????£?
????sed -i '$ a IPTABLES_MODULES="ip_conntrack_ftp"' /etc/sysconfig/iptables-config
???????????iptables?????????ftp???????????????С?ip_conntrack_ftp?????????????ftp??????
??????????????
????1.?漰???????????????
???????????? client ??????????? port1 ????? server?? 21 ???????server?????21??????????????????client?????????????? port 2???????????????????????????????????????20?????????????????client????????port 2????
???????????????????????????????????ftp ??????20?????port 2 ??????????????????????????????
???????????
???????????????????ο?????
????????????client???????????? ?????ftp server ??21 ??????????PASV????? server ???? client???????clinet ?? ????????????? port 3 ????????????ɡ???? client ????? server ????? ??????ip+port3?? ??????? client ???????????????????? port 4 ???? port 4????????????? port3 ????????client ??server ???????????????????
???????????
???????????????ο?????
????2. ???????????tcpdump ????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11