How to run psyBNC
From psybnc about page: psyBNC is an easy-to-use, multi-user, permanent IRC-Bouncer with many features.
It allows you to stay connected to IRC even when you disconnect from your favorite IRC client, allowing you to remain online on IRC servers.
Installation and Configuration
Since OpenWrt Backfire 10.3 psybnc can simply be installed by running
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install psybnc sudo |
Then you must to configure psybnc:
root@OpenWrt:~# vi /usr/share/psybnc/psybnc.conf |
The original contect file is:
PSYBNC.SYSTEM.PORT1=50001
PSYBNC.SYSTEM.ME=psybnc_mipsel
PSYBNC.SYSTEM.HOST1=*
PSYBNC.HOSTALLOWS.ENTRY0=*;*
USER1.USER.NICK=change_me
USER1.USER.USER=psybnc_admin
USER1.USER.PASS=change_me
USER1.USER.RIGHTS=1
USER1.USER.VLINK=0
USER1.USER.LOGIN=psybnc_admin |
Then you edit to you own taste, here is one example:
PSYBNC.SYSTEM.PORT1=6667
PSYBNC.SYSTEM.ME=psybnc_mipsel
PSYBNC.SYSTEM.HOST1=*
PSYBNC.HOSTALLOWS.ENTRY0=*;*
USER1.USER.NICK=luminoso
USER1.USER.USER=lumos
USER1.USER.PASS=firsttimepassword
USER1.USER.RIGHTS=1
USER1.USER.VLINK=0
USER1.USER.LOGIN=lumos |
The password should be at the first run on plaintext. Then, psybnc will encrypt it for you.
Running psyBNC
For security reasons psybnc should not be run as root user. For that directory permissions must be fixed to run psybnc has nobody user.
root@OpenWrt:~# chmod o+rw /usr/share/psybnc
root@OpenWrt:~# chmod o+rw /usr/share/psybnc/psybnc.conf
root@OpenWrt:~# chmod o+rw /usr/share/psybnc/psybnc.pid |
And finally run the psybnc for the first time
root@OpenWrt:~# sudo -u nobody /usr/sbin/psybnc |
And you're ready. Use your favorite IRC client to connect to your router address and chosen port.
Alternative method to run psyBNC as nobody
This method requires LuCI installed, it starts the psybnc process after setting uid and gid to "nobody".
root@OpenWrt:~# lua -lnixio -e 'nixio.setgid(65534); nixio.setuid(65534); nixio.exec("/usr/sbin/psybnc")' |
External links
doc/howto/proxy.psybnc.txt · Last modified: 2011/03/06 18:44 by orca
