Sie sind auf Seite 1von 21

- Gateway:

o IP: 172.16.64.1
o OS: pfSense
o Username: admin
o Password: pfsense
o Management site: http://172.16.64.1

- Mail server
o IP: 172.16.75.200
o OS: Ubuntu
o Package: Postfix, Courier
o Username: root
o Password: kg3f1&ph
o Management site: http://mica.edu.vn/mail/admin

- Web + MySQL server
o IP: 172.16.64.17
o OS: Ubuntu
o Package: Apache, PHP, MySQL
o Username: mica
o Password: $x7Ta_D>3%

- DNS server
o IP: 172.16.64.50
o OS: Ubuntu
o Package: Bind
o Username: mica
o Password: mica

- DHCP server
o IP: 172.16.64.45
o OS: Ubuntu
o Package: dhcp-server
o Username: mica
o Password: mica

- Babelplus:
o IP: 172.16.64.18
o http://storage.mica.edu.vn
o OS: Synology DiskStation Manager 3.1
o Username: admin
o Password: mica




1.Gateway:
- Configure interfaces (WAN, LAN)
- Configure NAT
- Configure firewall
- Monitor network parameters

2.Mail:
- Manage email accounts (create, delete)
- Manage mailing lists

3.Web:
- Manage MICA site (and other sites that hosted on MICA server, span.mica.edu.vn,
ref-vn.com)

4.Database:
- Manage database system
- Backup databases periodically

5.File sharing babelplus:
- Manage user accounts
- Manage share directories

6.Manage other servers: DHCP, DNS
7.IPTV Project
- Integrate Vietnamese language into IPTV platform
- Install IP TV server
- Build remote control using smart phone for IPTV platform
- Build yellow page service
- Build interactive learning service

8.SmartHome
- Receive command and control TV
- Receive command and control camera


1. Gateway: pfSense
Reference: http://www.pfsense.org/
- Install:
o Download the installation file from the site.
o Install it on a PC.
o During the installation process, the system asks you to configure the LAN
interface, enter the following information:
IP address: 172.16.64.1
Subnet mask: 255.255.192.0
Network: 172.16.64.0
- Configure:
o Using a web browser to access to address: http://172.16.64.1, the
configuration web page provided by pfSense.
o WAN interface: go to Interface WAN and enter the following
information:
Type: Static
IP address: 113.160.41.218/30
Gateway: 113.160.41.217

o NAT: go to Firewall NAT
External
port
Protocol NAT IP Internal
port
Service
53 UDP 172.16.64.50 53 DNS
80 TCP 172.16.64.17 80 HTTP
25 TCP 172.16.75.200 587 SMTP
587 TCP 172.16.75.200 587 SMTP
110 TCP 172.16.75.200 110 POP3
143 TCP 172.16.75.200 143 IMAP


o Rules: go to Firewall Rules
Block all UDP traffic except DNS packages
Block all outgoing SMTP traffic (destination port is 25) except
packages come from MAIL server or go to HUST mail server.


- Monitoring tools:
o Network bandwidth consumes by each machine in real time: Status
Traffic graph
o Total network bandwidth consumes by each machine: Services
BandwidthD
o Capture network package: Diagnostics Package Caputer

2. Web server: Linux, Apache, PHP and MySQL
Reference: http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-
support-on-ubuntu-11.04-lamp
- Install:
o Prepare a Ubuntu server
o Log in as root:
sudo su
o Installing MySQL:
apt-get install mysql-server mysql-client
You will be asked to provide a password for the MySQL root user - this password is valid
for the user root@localhost as well as root@server1.example.com, so we don't have to
specify a MySQL root password manually later on:
New password for the MySQL "root" user: yourrootsqlpassword
Repeat password for the MySQL "root" user: yourrootsqlpassword
o Installing Apache:
apt-get install apache2
Apache's default document root is /var/www on Ubuntu, and the configuration file is
/etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the
/etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules),
/etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.
o Installing PHP:
apt-get install php5 libapache2-mod-php5
We must restart Apache afterwards:
/etc/init.d/apache2 restart
o Getting MySQL Support In PHP:
apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick
php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-
recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

- Configure:
o Virtual hosts
Open configuration file to edit:
vim /etc/apache2/site-enabled/000-default
After editing, that file looks like:
# www.mica.edu.vn - Default Virtual Host
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName www.mica.edu.vn
ServerAlias mica.edu.vn
DocumentRoot "/var/www/www.mica.edu.vn"
LogLevel warn
ErrorLog /var/log/apache2/www.mica.edu.vn-error.log
CustomLog /var/log/apache2/www.mica.edu.vn-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# www.pfiev.edu.vn
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName www.pfiev.edu.vn
ServerAlias pfiev.edu.vn
DocumentRoot "/var/www/www.pfiev.edu.vn"
LogLevel warn
ErrorLog /var/log/apache2/www.pfiev.edu.vn-error.log
CustomLog /var/log/apache2/www.pfiev.edu.vn-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# www.ref-vn.com
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName www.ref-vn.com
ServerAlias ref-vn.com
DocumentRoot "/var/www/www.ref-vn.com"
LogLevel warn
ErrorLog /var/log/apache2/www.ref-vn.com-error.log
CustomLog /var/log/apache2/www.ref-vn.com-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# span.mica.edu.vn
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName span.mica.edu.vn
DocumentRoot "/var/www/span.mica.edu.vn"
LogLevel warn
ErrorLog /var/log/apache2/span.mica.edu.vn-error.log
CustomLog /var/log/apache2/span.mica.edu.vn-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# images.mica.edu.vn
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName images.mica.edu.vn
DocumentRoot "/var/www/images.mica.edu.vn"
LogLevel warn
ErrorLog /var/log/apache2/images.mica.edu.vn-error.log
CustomLog /var/log/apache2/images.mica.edu.vn-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# imagine-it-vn.com
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName www.imagine-it-vn.com
ServerAlias imagine-it-vn.com
DocumentRoot "/var/www/imagineit"
LogLevel warn
ErrorLog /var/log/apache2/imagineit-it-vn.com-error.log
CustomLog /var/log/apache2/imagineit-it-vn.com-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>

# imagine-it-vn.net
<VirtualHost *:80>
ServerAdmin admin@mica.edu.vn
ServerName www.imagine-it-vn.net
ServerAlias imagine-it-vn.net
DocumentRoot "/var/www/imagineit"
LogLevel warn
ErrorLog /var/log/apache2/imagineit-it-vn.net-error.log
CustomLog /var/log/apache2/imagineit-it-vn.net-access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.html.var index.jsp
index.php index.php3
</IfModule>
</VirtualHost>
- Deploy web site:
o Copy the code of web site into the directory /var/www
o Create a database and an account in MySQL server.
- Database information:
Site Database Username Password
mica.edu.vn joomla_mica_stable joomla_stable IQ@O$xztfw
ref-vn.com ref ref R3FD84CC3$$
pfiev.edu.vn pfiev17 pfiev client_pfiev
span.mica.edu.vn span span span
mica.edu.vn/horde horde_new horde mdp_Mica_mail$
BASILIC (Intranet) basilicdb basilic_intranet mdp_Mica_basilic_intranet$
BASILIC (Public) basilicdb basilic_public mdp_Mica_basilic_public$
images.mica.edu.vn micadatabase_final imagedemo lanlt


3. DHCP server: Linux and dhcpd
Reference: http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-
ubuntu-server.html
- Install:
o Prepare a Ubuntu server
o Installing dhcpd:
sudo apt-get install dhcp3-server
- Configure
o Edit /etc/dhcp3/dhcpd.conf file using the following command:
sudo vim /etc/dhcp3/dhcpd.conf
o You need to change the following sections in /etc/dhcp3/dhcpd.conf file:
default-lease-time 600;
max-lease-time 7200;

option subnet-mask 255.255.192.0;
option broadcast-address 172.16.127.255;
option routers 172.16.64.1;
option domain-name-servers 172.16.64.50;
option domain-name mica.edu.vn;

subnet 172.16.64.0 netmask 255.255.192.0 {
range 172.16.75.2 172.16.78.254;
option routers 172.16.64.1;
}


4. DNS server: Linux and BIND
Reference: http://www.ubuntugeek.com/dns-server-setup-using-bind-in-ubuntu.html
- Install:
o Prepare a Ubuntu server
o Installing BIND:
sudo apt-get install bind9 dnsutils
- Configure:
o Open file /etc/bind/named.conf.local
sudo vim /etc/bind/named.conf.local
o Open file /etc/bind/named.conf.local
acl internals
{
172.16.64.0/18;
};

view "internal"
{
match-clients { internals; };
zone "mica.edu.vn"
{
type master;
file "/etc/bind/internals/mica.edu.vn.db";
};
zone "ref-vn.com"
{
type master;
file "/etc/bind/internals/ref-vn.com.db";
};
zone "pfiev.edu.vn"
{
type master;
file "/etc/bind/internals/pfiev.edu.vn.db";
};

zone "imagine-it-vn.com"
{
type master;
file "/etc/bind/internals/imagine-it-vn.com.db";
};

zone "imagine-it-vn.net"
{
type master;
file "/etc/bind/internals/imagine-it-vn.net.db";
};
zone "16.172.in-addr.arpa"
{
type master;
file "/etc/bind/internals/mica.edu.vn.rev";
};
};

view "external"
{
match-clients { any; };
zone "mica.edu.vn"
{
type master;
file "/etc/bind/externals/mica.edu.vn.db";
};

zone "ref-vn.com"
{
type master;
file "/etc/bind/externals/ref-vn.com.db";
};
zone "pfiev.edu.vn"
{
type master;
file "/etc/bind/externals/pfiev.edu.vn.db";
};

zone "imagine-it-vn.com"
{
type master;
file "/etc/bind/externals/imagine-it-vn.com.db";
};

zone "imagine-it-vn.net"
{
type master;
file "/etc/bind/externals/imagine-it-vn.net.db";
};
};

o Create the zone files
sudo vim /etc/bind/internal/mica.edu.vn.db

$TTL 3600
@ IN SOA ns1.mica.edu.vn. root (
20110413 ; Serial
28800 ; Refresh
3600 ; Retry
604800 ; Expire
38400 ) ; Minimum 25 minutes

mica.edu.vn. IN NS ns1.mica.edu.vn.
IN A 172.16.64.17
ns1 IN A 172.16.64.50
babel IN A 172.16.75.220
db IN A 172.16.64.17
solomon IN A 172.16.75.200
michel-ange IN A 172.16.64.17
www IN CNAME michel-ange
smtp IN CNAME solomon
pop IN CNAME solomon
span IN CNAME michel-ange
trac IN CNAME michel-ange
images IN CNAME michel-ange
svn IN CNAME michel-ange
mica.edu.vn. IN MX 10 smtp.mica.edu.vn.

sudo vim /etc/bind/external/mica.edu.vn.db

$TTL 3600
@ IN SOA ns1.mica.edu.vn. root (
20110228
28800
3600
604800
38400 )

mica.edu.vn. IN NS ns1.mica.edu.vn.
IN A 113.160.41.218
ns1 IN A 113.160.41.218
www IN A 113.160.41.218
smtp IN A 113.160.41.218
pop IN A 113.160.41.218
span IN A 113.160.41.218
images IN A 113.160.41.218
mica.edu.vn. IN MX 10 smtp.mica.edu.vn.

5. Mail server: Linux, Postfix, Courier and MySQL
Reference: http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-
mysql-and-squirrelmail-ubuntu-10.10
- Install
o Prepare a Ubuntu server
o Install Postfix, Courier, Saslauthd
sudo apt-get install postfix postfix-mysql postfix-doc mysql-client courier-
authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap
courier-imap-ssl postfix-tls libsasl2-2 libsasl2-modules libsasl2-modules-sql
sasl2-bin libpam-mysql openssl libpam-smbpass
o Create a database and an account on MySQL server
Database: maildb
Username: mica_mail
Password: mdp_Mica_mail$
- Configure:
o Create six text files
vim /etc/postfix/mysql-virtual_domains.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT domain AS virtual FROM domains WHERE domain='%s'
hosts = db.mica.edu.vn

vim /etc/postfix/ mysql-virtual_forwardings.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT destination FROM forwardings WHERE source='%s'
hosts = db.mica.edu.vn

vim /etc/postfix/ mysql-virtual_mailboxes.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-
1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users WHERE email='%s'
hosts = db.mica.edu.vn

vim /etc/postfix/ mysql-virtual_email2email.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT email FROM users WHERE email='%s'
hosts = db.mica.edu.vn

vim /etc/postfix/ mysql-virtual_transports.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT transport FROM transport WHERE domain='%s'
hosts = db.mica.edu.vn

vim /etc/postfix/ mysql-virtual_mailbox_limit_maps.cf

user = mail_admin
password = mdp_Mica_mail$
dbname = maildb
query = SELECT quota FROM users WHERE email='%s'
hosts = db.mica.edu.vn

- Manage email accounts:
o Access the management page and log in as an administrator.
http://mica.edu.vn/mail/admin/index.html
o Create new account

o Show all account

o Edit an account: reset the password, configure forwarding mails

o Create new mailing list

o Edit mailing list

- Mail client configuration:
o Webmail client: http://www.mica.edu.vn/horde
o Change your password: http://mica.edu.vn/mail/user/change_password.html
o POP3:
Server name: pop.mica.edu.vn
Port: 110
Security setting: STARTTLS
o IMAP:
Server name: pop.mica.edu.vn
Port: 143
Security setting: STARTTLS
o SMTP:
Server name: smtp.mica.edu.vn
Port: 587
Security setting: STARTTLS, Authentication required

- Spam monitoring:
o Go to site: http://www.mxtoolbox.com/Public/Tools/Blacklists.aspx
o Enter MICA IP address: 113.160.41.218
o Check to indentify which services list MICA IP into black list.
o Using the information is provided by that service to fix the problem.

Das könnte Ihnen auch gefallen