Archive for the ‘Networking’ Category.

Installing Tor Server and Client on Arch Linux

tor.jpeg

Tor is a free software implementation of second-generation onion routing – a system which claims to enable its users to communicate anonymously on the Internet.  Its primary goal is to protect its users against traffic analysis attacks.  The Tor Project’s home page has a great simplified write up about how Tor actually works here: http://www.torproject.org/overview.html.en

Originally sponsored by the US Naval Research Laboratory, Tor became an Electronic Frontier Foundation (EFF) project in late 2004, and the EFF supported Tor financially until November 2005. Tor software is now developed by the Tor Project, which since December 2006 is a research/education non-profit organization based in the United States of America that receives a diverse base of financial support.

Getting Tor working both as a client and as a server is no sweat on Arch Linux and below are the steps.

Continue reading ‘Installing Tor Server and Client on Arch Linux’ »

Scan for and connect to networks from an openbox pipe menu

wireless.jpg

Source

So the other day when i was using wifi-select (awesome tool) to connect to a friends hot-spot, i realized “hey! this would be great as an openbox pipe menu.”  i’m fairly decent in bash and i knew both netcfg and wifi-select were in bash so why not rewrite it that way?

Continue reading ‘Scan for and connect to networks from an openbox pipe menu’ »

Automagically set titles to boxes you ssh in screen.

terminal.png

I use GNU Screen a lot – as in basically all the time, and when I SSH somewhere I like to set the title of the screen I’m in, so I can easily keep track of loads of them.

To do this I’ve come up with a script which can be executed by SSH when it connects to a remote server.

Continue reading ‘Automagically set titles to boxes you ssh in screen.’ »

Stop ssh brute force attack using SuSEfirewall

suse.png

Edit /etc/sysconfig/SuSEfirewall2:

#do not open ssh ports here
FW_SERVICES_EXT_TCP=""
FW_CONFIGURATIONS_EXT=""

#add this rule
FW_SERVICES_ACCEPT_EXT="0.0.0.0/0,tcp,22,,hitcount=3,blockseconds=60,recentname=ssh"

#Restart firewall:
rcSuSEfirewall2 restart

Now attacker will just have three attempts to break in.

Remote file editing using emacs + ssh

emacs.png

Get TRAMP (Transparent Remote file Access, Multiple Protocol) :

http://savannah.gnu.org/projects/tramp/

Install it :

cd ~/.emacs.d/
tar -xvzf /your/download/folder/tramp-2.X.X.tar.gz
ln -s tramp-2.X.X tramp
cd tramp
./configure --with-contrib
make
sudo make install

Configure your emacs to use it :
1. Add the following in your .emacs

;; Remote file editing via ssh
(add-to-list 'load-path "~/.emacs.d/tramp/lisp/")
(require 'tramp)
(setq tramp-default-method "ssh")

2. Launch your emacs
3. C-x C-f /user@your.host.com:/path/to/file

Warning :
Seems it doesn’t work if no password is required to login to host (using public key for example). But not sure at all…

Tcpdump cheat sheet

Howto SetUp Dual NIC Bonding On Debian & Ubuntu

ubuntu.png

Bonding is creation of a single bonded interface by combining 2 or more ethernet interfaces. This helps in high availability and performance improvement.

How to setup dual-dual bonding (two bonds of two interfaces each) on Ubuntu as quickly as possible.

Continue reading ‘Howto SetUp Dual NIC Bonding On Debian & Ubuntu’ »

Use curl or wget to backup your Delicious Bookmarks

delicious.png

Social bookmarking service Delicious is a great way to save and share your bookmarks, but what happens if they go the way of JournalSpace and lose all your data? You need backups!

Since Delicious is owned by Yahoo there isn’t a serious risk of complete data loss, but it’s better to have a local backup of your data than risk losing your account with no recourse for data retrieval. Since there are a number of ways to accomplish this, we’ll cover the geekiest method today, which was derived from but slightly different from the article linked below.

Continue reading ‘Use curl or wget to backup your Delicious Bookmarks’ »

Nagios Network Monitoring System Setup in Ubuntu

ubuntu.png

Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external “plugins” which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.

Continue reading ‘Nagios Network Monitoring System Setup in Ubuntu’ »

HOWTO: ActiveDirectory authentication in Ubuntu 8.04 & 8.10

ubuntu.png

Since Ubuntu 8.04 (Hardy Heron), and now Ubuntu 8.10 (Intrepid Ibex) it come the Likewise Open package that makes basic Active Directory authentication in Ubuntu a breeze.

Continue reading ‘HOWTO: ActiveDirectory authentication in Ubuntu 8.04 & 8.10’ »

Pages: 1 2 3 4 5 6 7 8 9 Next