โดยทั่วไป directadmin จะเข้าทาง port 2222 นะครับ
ถ้ารหัสเราไม่แข็งแรงโอกาสที่จะโดนเจาะก็ง่ายมากครับ นอกจากนี้เรายังจะได้รับเมลพวก brute force attack มาเยอะแยะมากมาย ซึ่งวิธีนี้จะแก้ปัญหา brute force จาก directadmin ได้เช่นกันครับ
แนะนำให้ทำการเปลี่ยน port นี้เป็นตัวเลขอย่างอื่นนะครับ เช่น 2334 1322 9845 เป็นต้นครับ
วิธีทำเข้าไปแก้ไขไฟล์ 2 ไฟล์นี้ครับ
1. /usr/local/directadmin/conf/directadmin.conf
ตรง port=2222 แก้เป็นเลขที่เราต้องการเลยครับ
2. /var/www/html/redirect.php
ตรง ‘port=2222’ แก้เป็นตัวเลขเดียวกับข้อ 1 นะครับ
ขั้นตอนสุดท้ายคือสั่ง restart directadmin ใน command line :
# service directadmin restart
เท่านี้ก็เรียบร้อยแล้วครับ เราไม่สามารถเข้าทาง port เดิมได้แล้ว ให้เข้าทาง port ที่เพิ่งแก้ไปแทนนะครับ
วิธีนี้ยังช่วยแก้ปัญหาเมล brute force attack เช่นเดียวกันครับ
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. You can find full details of our Privacy Policy here.