The following Iptables rules will block all Torrent traffic on your server:

Log all torrent blocked traffic:

iptables -N LOG > /dev/null 2> /dev/null
iptables -F LOG
iptables -A LOG -j LOG --log-prefix "LOG"
iptables -A LOG -j DROP

Torrent block rules:

iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j LOG
iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j LOG
iptables -A FORWARD -m string --algo bm --string "peer_id=" -j LOG
iptables -A FORWARD -m string --algo bm --string ".torrent" -j LOG
iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j LOG
iptables -A FORWARD -m string --algo bm --string "torrent" -j LOG
iptables -A FORWARD -m string --algo bm --string "announce" -j LOG
iptables -A FORWARD -m string --algo bm --string "info_hash" -j LOG

This is another way to run phpMyAdmin on Nginx.

1. Install phpMyAdmin on Nginx:

apt-get install phpmyadmin

When the pop up shows up, select neither Apache or Lighttpd. You don’t need any to run phpMyAdmin on Nginx.

Screen Shot 2013-03-29 at 12.34.34 AM

And say select NO for the Configure database for phpmyadmin with dbconfig-common:

Screen Shot 2013-03-29 at 12.34.20 AM

2. Configure phpMyAdmin to work with Nginx:

Add the followings to /etc/nginx/sites-available/default file after the server{ statement: Continue Reading…

Debian wheezy is a Debian distribution and development codename that was released after Squeeze to develop and update a lot of packages in order to make use of security build flags through dpkg-buildflags. Its function is to allow several protections over security concerns like predictable locations of memory values, stack smashing and more. Wheezy is the current aliases for testing distribution which packages that is testing is unstable and not completely fit and not ready for release yet. Wheezy distribution also contains modern packages and it is being updated constantly until it enters the frozen state and ready to be released.

This Debian distribution’s security updates are being provided by Debian testing security team. It is an automatically generated type of Debian distribution that is produced from uneven distribution by some sets of scripts that try to move packages that are on the verge of lacking critical bugs release. In order for a specific version of a package to move into testing or Wheezy distribution it should be in unstable stage for either 2, 5 or 10 days hinging on the upload’s urgency; it should be brand new and compiled on every architecture; it should not have release critical bugs that does not apply to the version that is currently in testing; its dependencies should be satisfiable by either by group of packages that are going to be installed or packages that are already in testing and lastly it is important that the operation for installing the package to testing does not break or damage any packages that is currently in testing.

This is a visual walk-through of an installation of Debian Wheezy. In this post I will show you how to install Debian Wheezy and I will use screenshots.

1. First download a Debian Wheezy installer from here:

http://cdimage.debian.org/cdimage/wheezy_di_rc1/i386/iso-cd/debian-wheezy-DI-rc1-i386-netinst.iso

Then burn that image to a CD and boot from it.
wheezy1

2. Choose the language to be used for the installation process.

w2

3. Select your location:

This will be used to set your time zone. You should choose the country where you have the server.

w3

4. Select your keymap: Continue Reading…

LPIC1 – Assessment Test

Valic —  March 27, 2013 — 3 Comments

The assessment test is produced from the introduction of your companion text.
This test is created for you, to test your knowledges, take this test before start studying for LPIC exams.

 

Take Assessment Test:

It is possible to configure logon or welcome banner in the SSH server with the use of the Banner directive in /etc/ssh/sshd_config file.The Banner directive is only available for SSH protocol version 2 and by default there are no banner configured.

1. Create a banner file.

First you need to create the file that will include your banner for your users. In Debian, the default banner is located in /etc/issue.net file

nano /etc/issue.net

You can put here anything you want or just a welcome message like this:

###############################################################

Welcome to my server!
Disconnect IMMEDIATELY if you are not an authorized user!

###############################################################

2. Configure the /etc/ssh/sshd_config file

Now, add or remove the # from the beginning of the line Banner /etc/issue.net from /etc/ssh/sshd_config file.

nano  /etc/ssh/sshd_config
Banner /etc/issue.net

Restart sshd daemon for the changes to take effect Continue Reading…

Page 5 of 6812345678910...2030405060...Last »