relaysrv

-i <ip>         bind the specific ip address, default is all interface on the host
-p <port>       the listening port for relay protocol, default is 21080
-u <port>       the port use for UDP relay. default is random
-r <start>-<end> the port range use for outbound UDP relay
-L <port>       the remote telnet port for debugging. default is none(no remoting debugging)
-c <nconn>      the number of allowed client connection. default is 2000
-n <ncpu>       number of cpu(s) on the runing host, for load balancing. default is 2
-a <module:args> load a authentication module, the module name can be either a builtin module name or a shared object(*.so) file, args is argumenet string pass to the authentication module
--listen 	from version 2.04 the default listen interface will be limited to 127.0.0.1, use this option to enable listen on all interfaces.

example:
    relaysrv -p 21080 -L 21081 -u 1701 -r 30000-60000 -c 3000


database authentication 

localhost       the database server ip address
db_user         the database user for relay database
db_passwrod     the dbtabase user's password for relay dbtabase
relay_db        the database name for relay server
relay_tabse     the database's table for relay server
relay_user      relay authentication user name
relay_password  relay authentication passwrod

example:
    /relaysrv -p 21080 -L 21081 -u 1701 -r 30000-60000 -c 3000 --listen -a "/root/relay/relayauth_mysql.so:127.0.0.1,db_user,db_password,relay_db,relay_table,relay_user,relay_password"
