Ezbounce tutorial

Ezbounce is a cool peice of software that has many useful features for the hardcore IRC user. If your a regular IRC user who wants to hide your identity, stay connected to channels whilst offline and have a centralized IRC session – be sure to check this guide out.

From the ezbounce website.

ezbounce is an Internet Relay Chat (IRC) proxy server.
Features include:

* Multi-user support
* Full access control (ban and allow lists)
* Full IPv6 support
* Secure Sockets Layer (SSL) support
* Lots of tweakable settings

Obtaining ezbounce
The first thing you will need to do is install the software onto an available Linux machine. You will need to recompile this from scratch, so make sure you have the appropriate gcc compilers already installed.

james[/home/james]# wget http://druglord.freelsd.org/ezbounce/ezbounce-1.04b.tar.gz

(If that doesn’t work – the link might be dead – head to the official download site)

Next we need to extract the ezbounce files.

james[/home/james]# gunzip ezbounce-1.04b.tar.gz
james[/home/james]# tar xvf ezbounce-1.04b.tar

cd to the newly created folder. The next step is to configure and compile ezbounce. We can do this with the following commands.

james[~/ezbounce-1.04b]# ./configure
james[~/ezbounce-1.04b]# make
james[~/ezbounce-1.04b]# make install

If all goes well the executable should appear in the folder your currently in. Next we need to configure ezbounce.

Ezbounce comes with two config files, one with minimal options and another containing all possible options.

For this guide we’ll just use the minimal one (ezb.conf). Open up ezb.conf in your favourite text editor. Most of the options you can leave by default. You’ll want to edit the user bracket. Here is an example.

user lego
		from *
		to *
	set is-admin 1
	set password pass123
	set enable-incoming-dcc-proxying 1
	set enable-outgoing-dcc-proxying 1
	set enable-detach-command 1
	set enable-auto-detach 1
	set enable-vhost-command 1
	set enable-fake-idents 1


This user block allows me to connect to any server, FROM any location. The “is-admin” makes me an admin and “password” line sets my password. You may read the readme for a more in depth explanation about each available option.

Next, run ezbounce!

james[~/ezbounce-1.04b]# ./ezbounce ezb.conf


Whilst trying to connect to a windows 2003 server via smbclient, I kept recieivng the error message “NT_STATUS_BAD_NETWORK_NAME”. After much google searching I found that the solution is to drop the trailing slash .. so simple .. so easy. I hate samba.

The error I kept receiving was

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

smbclient //server/Data/ -U james

smbclient //server/Data -U james


Removing startup init scripts (rc.d)

For some reason I always get confused which command works on what operating system in order to remove startup scripts under a redhat based distribution.

For Centos use
/sbin/chkconfig –del

For Debian use

WHM account missing

Do you have an account in Web Host Manager (WHM) that for some reason, is missing under the “list accounts” page? This can sometimes happen when you try a cPanel transfer and it fails. The easiest solution to fix this “WHM account missing” problem, is to follow this step;

Login to the console vi SSH and run the following command;




Installing BitTorrent via YUM

Are you trying to install BitTorrent on Centos using YUM? By default it won’t work.
I tried a rpm -i bittorrent, but it reported that I needed 6 python dependencies.
Screw that. What to save some time? Try this!

cd /etc/yum.repos.d
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

Next open up this file (/etc/sysconfig/rhn/sources) and add this line;

yum kb-centos-extras http://centos.karan.org/el4/extras/stable/$ARCH/RPMS

Next all you have to do is update and install!

yum update
yum install bittorrent

Having troubles with Unrouteable address messages?!?

Use the following exim command to debug and find where your config has gone wrong!

/usr/sbin/exim -d -bt test@domain.com

Remove all Postfix queue items


postsuper -d ALL

       -d queue_id
              Delete one message with the named queue ID from the
              named   mail  queue(s)  (default:  hold,  incoming,
              active and deferred).

              If a queue_id of - is specified, the program  reads
              queue  IDs  from  standard  input.  For example, to
              delete  all  mail  with   exactly   one   recipient

              mailq | tail +2 | grep -v '^ *(' | awk  'BEGIN { RS
              = "" }
                  # $7=sender, $8=recipient1, $9=recipient2
                  { if ($8 == "user@example.com" && $9 == "")
                        print $1 }
              ' | tr -d '*!' | postsuper -d -

              Specify "-d ALL" to remove all messages; for  exam-
              ple,  specify  "-d ALL deferred" to delete all mail
              in the deferred queue.  As a  safety  measure,  the
              word ALL must be specified in upper case.

Important Exim Commands

How many mails on the Queue
exim -bpr | grep “<" | wc -l How many Frozen mails on the queue
exim -bpr | grep frozen | wc -l

Deleteing Frozen Messages
exiqgrep -z -i | xargs exim -Mrm

Moving data between mysql hosts

Just something I used today to move a 60Meg table .. something phpMyAdmin refused to import :)

This command will utilize mysqldump to move data between two mysql servers. You need to make sure you have permission to access the SECOND server, either by specifying an access mask or using a wildcard (%) to allow anyone to connect.

mysqldump dbNAME tblNAME --user=root --pass=password | mysql --host= --user=root --pass=password -C dbNAME

Deleting email from mail queue

I had the need to delete all bounce messages in a sendmail mail queue, so I used the following

find /var/spool/mqueue -name '*' -type f |xargs grep -l "User unknown" |xargs rm

Disable System Beep in VMWARE

If you, like me, can’t stand that obnoxious system beep in VMWare and have discovered that you can’t cut speaker wires inside a VM, you will probably appreciate this tip. Add the following line to your preferences file (~/.vmware/preferences on linux, preferences.ini on windows):

mks.noBeep = TRUE

Now your internal speaker will no longer drive you crazy each time there is more than one tab completion option, and your ear-drums won’t bleed each time the FreeBSD bootloader starts.

Removing mail from the Exim mail queue

Jonesy came through again with a command that helped me out big time. I had all this mail queued up that I wanted to remove.

mailq |grep -B1 your@address.com|awk '{print $2 "-D"}' |grep -v "^-D$" |sed 's/-D$//g' |awk '{print "/usr/sbin/exim -Mrm "$1}'|sh

Pretty much this will remove all items that are stuck in the EXIM queue that are destined for your@address.com

« Previous Entries Next Entries »