Friday, October 1, 2010

Chống DOS đơn giản dạng SYN attack

If you want to block an ip when it reaches a limited number of connections then here is your solution
This script limits to 100 connections and on port 80, you can change both of them and run this at cron on every 1 minute.

#!/bin/bash

#Collecting list of ip addresses connected to port 80

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 > /root/blocked.ip.txt

Sunday, September 26, 2010

Có tiền đầu tư vào đâu?


Bất động sản chưa tan băng, thị trường chứng khoán chưa có nhiều khởi sắc, trong khi giá USD đang dần ổn định sau đợt điều chỉnh tỷ giá tháng 8-2010. Liệu tiết kiệm và vàng có là kênh đầu tư hút tiền trong thời gian tới?
 

Khái niệm đơn giản về khẩu độ ống kính

Cơ cấu chỉnh khẩu độ chính là một loại van tiết lưu ánh sáng đặt trong ống kính , cấu tạo bởi các lá thép mỏng chồng so le với nhau, ở giữa mở ra một lỗ tròn đồng tâm với các thấu kính.

Các cánh thép này có thể trượt trên nhau khi ta điều chỉnh để tạo ra độ mở lớn hay nhỏ cho ánh sáng đi qua. Hoạt động bóp nhỏ/mở rộng khẩu độ khẩu độ của ống kính giống như sự điều tiết của con ngươi mắt. Độ mở lớn hay nhỏ sẽ cho ánh sáng đi vào phim hay CCD (của digital camera) nhiều hay ít. Trị số khẩu độ được sắp xếp theo chuỗi lớn dần gọi là f-number. Độ mở ống kính là giá trị được xác định bởi độ dài tiêu cự (focal length = khoảng cách từ tâm ống kính tới mặt phim hay CCD) của nó với đường kính lỗ xuyên sáng do các lá thép mở ra.

Sunday, October 25, 2009

SSH Port Forwarding

Introduction
SSH is typically used for logging into remote servers so you have shell access to do maintenance, read your email, restart services, or whatever administration you require. SSH also offers some other native services, such as file copy (using scp and sftp) and remote command execution (using ssh with a command on the command line after the hostname).

Saturday, October 17, 2009

Create a Hot Backup Server

The goal is to create a backup that will provide a server which has been replicated to act as a replacement if the original server goes down. This example is assuming exact same hardware and two servers on the same network.

Nikto: Scan Apache for Security Holes

Nikto is a tool that can be used to assess your web server security. The purpose of nikto is to test specific security aspects that are typically security risks. It is a Perl program designed to locate mis-configurations, files and programs that are insecure and to located outdated applications. Warning : This tool may have legal consequences if you use it on sites which you do not have permission…use with discretion and at your own risk.

Getting Started With ModSecurity

Using ModSecurity is not easy. The complexity of your site, your use of PHP, MySQL and other scripting languages will make it more difficult to configure correctly. Basically, the more complex your site, the more time you will need to work out issues with rules. This tutorial will provide you with several important tips to get started with ModSecurity.