Archive for the ‘IP Network’ Category

0063 | block IP ต่างประเทศ ไม่ให้ FTP เข้ามาได้

Thursday, June 11th, 2009 Posted in IP Network, Linux | 4 Comments »

บทความสิ้นคิด ก๊อปวางก็ใช้งานได้ทันทีไม่ต้องปรุง (ยิ่งกว่ามาม่าอีก)

iptables -D INPUT -p tcp --dport 21 -j FTPFILTER
iptables -N FTPFILTER
iptables -F FTPFILTER
iptables -A FTPFILTER -j REJECT
for i in `wget -qO - http://www.icez.net/files/thaiiplist`; do
iptables -I FTPFILTER -s $i -j ACCEPT
done
iptables -A INPUT -p tcp --dport 21 -j FTPFILTER

เสร็จแล้วอย่าลืมสั่ง save iptables ด้วยนะครับ
Redhat/CentOS/Fedora: service iptables save
Debian/Ubuntu: iptables-save

ขอบคุณรายการ ip ประเทศไทย จาก http://software77.net/geo-ip/

Tags: ,

0034 | SEO IP…

Monday, October 6th, 2008 Posted in IP Network, Misc | 6 Comments »

นั่งนึกเรื่อง SEO…

เค้าคุยกันเรื่องทำ link ภายในวงเว็บที่อยู่คนละ IP class C
เราก็มานั่งนึกๆ … อึม… ว่าไปเราก็มีอยู่หลาย class เหมือนกันแฮะ

61.19.250.x
61.19.252.x
61.47.59.x
85.197.99.x
202.151.189.x
203.146.129.x
203.146.140.x
203.146.170.x
203.150.230.x
210.1.31.x
210.1.51.x
210.1.60.x
210.86.182.x

มีเยอะๆ อย่างนี้เอาไปทำอะไรดีเนี่ย – -‘

.

ปล. หาให้ครบ 20 class จะได้อะไรมั้ยเนี่ย 555+

Tags: