Posts

Showing posts with the label Network

Sử dụng nload để mornitor traffic và bandwidth network thời gian thực

Image
Nếu bạn muốn kiểm tra xem traffic và bandwidth network hiện tại của server Linux đang quản lý như thế nào, công cụ nload sẽ giúp bạn làm điều này. Nload hoạt động khá nhẹ, kiểm tra traffic và bandwidth network realtime giúp cho người quản trị hệ thống có kênh thông tin hữu ích về hoạt động mạng hiện tại trên server. 1. Cài đặt - Download:  http://sourceforge.net/projects/nload/ Version mới nhất tại thời điểm hiện tại sử dụng trong bài viết là nload -0.7.4. - Buidl từ source code: tar xvf /path/to/nload-0.7.4.tar.gz cd /path/to/nload-0.7.4/ ./configure --prefix=/usr/local/nload make make install Trong phần cài đặt trên, mặc định tôi cài đặt nload tại thư mục /usr/local/nload. 2. Chạy nload Việc sử dụng nload khá đơn giản, ví dụ tôi cần monitor card mạng eth0, sử dụng nload như sau: /usr/local/nload/bin/nload eth0 Output sẽ hiện thị: Đối với card mạng khác sử dụng tương tự.

20 lệnh netstat cho Linux sysadmin

Image
netstat  ( network statistics ) là một lệnh cho việc quản trị mạng. Lệnh có sẵn trong các HĐH nổi tiếng như Linux, Windows, BSD, MAC, ... Sau đó là thủ thuật sử dụng lệnh này trong việc quản trị hệ thống Linux Thủ thuật sử dụng lệnh netstat cho Linux sysadmin 1. Liệt kê tất cả các port TCP/UDP ở trạng thái LISTENING # netstat -a | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:sunrpc *:* LISTEN tcp 0 52 192.168.0.2:ssh 192.168.0.1:egs ESTABLISHED tcp 1 0 192.168.0.2:59292 www.gov.com:http CLOSE_WAIT tcp 0 0 localhost:smtp *:* LISTEN tcp 0 0 *:59482 *:* LISTEN udp 0 0 *:35036 *:* udp 0 0 *:npmp-local ...

Amazon AWS Route 53 GEO DNS Configurations

Image
Y ou can send visitors to different servers based on country of their IP address using Amazon Route 53 cloud based dns server. For example, if you have a server in Amsterdam, a server in America, and a server in Singapore, then you can easily route traffic for visitors in Europe to the Amsterdam server, people in Asia go to the Singapore server and those in the rest of the world be served by the American server. This will results into the various kinds of benefits such as: Better performance  as you are sending web site visitors to their nearest web server. Reduced load  on origin. Geomarketing /online advertising. Restricting content  to those geolocated in specific countries (I am not a big fan of DRM). In some cases you can get potentially  lower costs  and more. In this post, I will explain how to configure and test GeoDNS using AWS Route 53 service. Our sample setup Fig.01: Sample geodns setup for HTTP/SMTP service Please note that IPs (...