شرح تغيير بورت إف تي بي Change FTP Port with WHM & CSF
شرح تغيير بورت إف تي بي Change FTP Port with WHM & CSF
How to Open Ports for Passive FTP in CSF (Configserver Firewall & Security)
How to change the FTP port for PureFTPd
https://www.rise.company/upload/uplo...3093246991.png
1. Use your preferred text editor, such as vi or nano to create or edit the /var/cpanel/conf/pureftpd/local file.
2. Set the port number the to the port of your choosing using the "Bind" variable. Make sure that you select a port that is not already in use by another service, and ensure that the port is not blocked by your firewall software or otherwise inaccessible. An example of this file's contents when setting "Bind" is included below:
يجب انشاء ملف جديد لوضع بداخله port الخاص ftp الجديد لكى يعمل overwrite
لذلك ادخل هذا الامر
كود:
nano /var/cpanel/conf/pureftpd/local
ثم ضع بداخلها
هنا تم استخدام بورت 1234 كبديل لـ 21 كمثال
https://www.rise.company/upload/uplo...2865714251.png
3. To apply your changes, perform a force update of FTP with the following command:
ادخل هذا الامر لتفعيل البورت الجديد من local الى الاساسى
كود:
/scripts/setupftpserver pure-ftpd --force
https://www.rise.company/upload/uplo...2913178351.png
4. Confirm the FTP service is now listening on the new port number. For example, I used port 6021:
ادخل هذا الامر للتاكد من عمل البورت بشكل سليم
يجب ان يعطى نتيجة تقول (LISTEN) اذا لم يعطى نتيجة اذن البروت لا يعمل
https://www.rise.company/upload/uplo...2901821811.png
-------------------------
فتح البورت فى فايروول CSF
-------------------------
داخل الفايروول ابحث عن بورت 21 وقم باستبداله ببورت 1234
ويجب فتح ports تستخدم ايضا من خلال passive ftp
Find the setting
TCP_IN and
TCP_OUT in the list, and add the following to each:
لكى يكون
كود:
TCP_IN = "20,1234,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2079,2080,2082,2083,2086,2087,2095,2096,49152:65534"
او ادخل هذا الامر وابحث عن البروت ثم استبدله بـ 1234
كود:
nano /etc/csf/csf.conf
-------------------------
بعد الانتهاء قم بعمل ريستات لسيرفس ftp وكذلك csf
شاهد ايضا
اف تي بي FTP للسي بانال Cpanel الفرق بين Active vs Passive ومن الافضل ؟
المرجع:
https://www.ndchost.com/wiki/guides/...-csf-on-cpanel
https://support.cpanel.net/hc/en-us/...t-for-PureFTPd
https://support.cpanel.net/hc/en-us/...o-CSF-Firewall
https://docs.cpanel.net/knowledge-ba...-passive-mode/
رد: شرح تغيير بورت إف تي بي Change FTP Port with WHM & CSF
يمكنك ازالة البورت 20 و 21 فكلاهما للـ ftp