BROKEN USE 1.2 version. 1.1 version no longer supported.
The version of the vhost.tcl that is included in all current sBNC 1.1 packages isn't working as you would expect. There is a new version, that both fixes a lot of bugs and adds passworded vhosts. What is probably the most important new feature is that new users get a free vhost when they are added, instead of pilling up on the default vhost.
Remember to configure vhost.tcl in the top of the file.
# format: ip limit hostname password
set ::trust {
{1.3.3.7 30 im.leet.lol}
{8.00.85 5 i.like.boobs test}
{124.2.5.1 5 if.you.dont.edit.this.then.you.are.a.complete.retard coolpassword}
}
# Give regular user access to any vhost being not 0 in limit (think of it as a super-password)
set ::vhostoverridepassword "root"
# Set the defaulthost which is given for outgoing connections (eg. the ip of eth0)
set ::defaulthost "1.3.3.7"
The following commands are available:
/sbnc set vhost <ip> [password] /sbnc vhosts [-sBNC] 1.3.3.7 (im.leet.lol) 6/30 connections [-sBNC] 8.00.85 (i.like.boobs) 0/5 connections [password protected] [-sBNC] 124.2.5.1 (if.you.dont.edit.this.then.you.are.a.complete.retard) 0/5 connections [password protected] [-sBNC] -- End of VHOSTS.
Note that there's also a webifc hack available, which supplies an extra password box under vhost settings. Because of the current webifc structure, the iface doesnt return errormessages to the user (if for example a user inputted an incorrect password). This will hopefully be fixed in 1.2.
settings.php for the web interface is included to give support for passworded vhosts there.