Add virtual server concepts for multiple network.
authorNeutron Soutmun <neo.neutron@gmail.com>
Tue, 31 Mar 2009 16:04:41 +0000 (23:04 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Tue, 31 Mar 2009 16:04:41 +0000 (23:04 +0700)
commitd5429ac493626297fd051130458377c954ff3cda
tree870f4e528fdf424d0264b09423ed711d77b0fb06
parent7c6d7c9643ce0f11b6084a68e24c9117fe4c2111
Add virtual server concepts for multiple network.

2009-03-31  Neutron Soutmun <neo.neutron@gmail.com>

* +src/rh-server.{h,c}:
  - Add virtual server concepts, make the clients from different interface to
    access the particular virtual server, differentiate clients by their IP.

* src/rahunasd.{h,c}, src/rh-config.{c,h}, src/rh-ipset.{h,c},
  src/rh-task.{h,c}, src/rh-task-{bandwidth,dbset,ipset,memset}.{h,c},
  src/rh-utils.{h,c}, src/rh-xmlrpc-cmd.{h,c}, src/rh-xmlrpc-server.c:
  - Redesign, rewrite and adjust the code to support the virtual server
    concepts.
  - Improve the memory management by replace old static memory allocation by
    dynamic memory allocation (GList), therefore fix the memory leak in
    earlier version.

* example/{bandwidth.sh.in,firewall.sh.in},
  example/rahunas.conf.in,
  +example/rahunas-vserver.conf.in:
  - Add new virtual server config example file which need to put into the
    config directory (default: /etc/rahunas/rahunas.d).
  - Update config file to support the new virtual server concepts,
    for earlier config file is not compatible now.
  - Update the bandwidth and firewall example script to support virtual
    server.

* configure.ac, Makefile.am: Update make file according to new changes.

* weblogin/networkchk.php: Add new client's IP check for determine the
  network of each client and get the appropriate config,
  differentiate client to access the particular virtual server by vserver_id.

* weblogin/{config,index,locale,login,logout}.php,
  weblogin/rahu_xmlrpc.class.php: Adjust for virtual server concepts.
38 files changed:
ChangeLog
configure.ac
data/rahunas.db
example/bandwidth.sh.in
example/firewall.sh.in
example/rahunas-vserver.conf.in [new file with mode: 0644]
example/rahunas.conf.in
src/Makefile.am
src/rahunasd.c
src/rahunasd.h
src/rh-config.c
src/rh-config.h
src/rh-ipset.c
src/rh-ipset.h
src/rh-server.c [new file with mode: 0644]
src/rh-server.h [new file with mode: 0644]
src/rh-task-bandwidth.c
src/rh-task-bandwidth.h
src/rh-task-dbset.c
src/rh-task-dbset.h
src/rh-task-ipset.c
src/rh-task-ipset.h
src/rh-task-memset.c
src/rh-task-memset.h
src/rh-task.c
src/rh-task.h
src/rh-utils.c
src/rh-utils.h
src/rh-xmlrpc-cmd.c
src/rh-xmlrpc-cmd.h
src/rh-xmlrpc-server.c
weblogin/config.php
weblogin/index.php
weblogin/locale.php
weblogin/login.php
weblogin/logout.php
weblogin/networkchk.php [new file with mode: 0644]
weblogin/rahu_xmlrpc.class.php