Author Topic: pure-ftpd allow port on csf firewall rule  (Read 1894 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
pure-ftpd allow port on csf firewall rule
« on: เมษายน 10, 2020, 09:05:20 PM »
วันนี้เจอโจทย์ว่า directadmin ทำการ block port หลังจาก client authentication เสร็จแล้ว  ทำให้ไม่สามารถ list file และ folder ขึ้นมาแสดงได้
จะเป็น port range Passive mode : 35000-35999
ซึ่งระบุใน pure-ftpd.conf
configure file

เราสามารถ ระบุ port range ลงใน csf firewall ได้ดังนี้
#vi /etc/csf/csf.conf

TCP_IN="35000:35999"

systemctl restart pure-ftpd
systemctl restart csf

เท่านี้ user ก็จะสามารถ list file & folder ได้ละครับผม
: )  ;)