You are on page 1of 8

Expand IDS Companys Network


Problems :

Scale of operations of the company is expanding. To match that growth requires to expand
the companys network.


Setting up a new server to provide network services needed to create a local network for
the company.


Successfully set of services on the server:



Setting up the server may provide dynamic IP using DHCP Services

Setting up the server can identify the domain name using DNS Services
Setting up the server for clients in the network can communicate via internal mail
using Squirrel Mail - Postfix - Dovecot - Apache (Bind Service)
- Set up sharing of environmental data through the system sync corporate intranet
using SAMBA Service
Configuring Server
1. Installing CentOS Server
Server will be installed on a CentOS 7 platform can choose 1 of 2 copies
of the DVD, Minimal
The installation steps are presented in the following article:
Add 2 users : root and admin
2. Basic settings for server
Update new version using command :
yum update . Follow instructions from the command line
After that you must reboot system
3. Installing and Setting up the DHCP Services for Server
Install some packages :
yum install dhcp
Set up files in all directions as follows :
After that you must start an enable dhcpd using command line:
systemctl enable dhcpd
systemctl start dhcpd
Operating Status of DHCP Service : systemctl status dhcpd
Log file to manage the DHCP Service :
tail f /var/log/messages

The client after connection to the system must be in automatic mode to

update IP (DHCP)
4. Configuring DNS Services
Install some packages : yum install bind*
Config file named.conf
Create files to resolve domain name to IP ( frd .zone and )
Using command : systemctl start named , to start DNS services
Using command : systemctl enable named, to enable DNS Services
startup with OS
DNS operates through Port 53 . So we are open firewall at port 53
firewall-cmd --permanent --add-port=53/tcp
firewall-cmd --permanent --add-port=53/udp
firewall-cmd --reload
Set permission :
chgrp named R /var/named
Chown -v root:named /etc/named.conf
If you skip this step when accessing services using DNS for name
resolution as mail domain will fail Permission Denied.
Regulations can be found in more detail in:
5. Configuring Mail Server
Install some packages :
yum install epel-release
yum install postfix
yum install dovecot
yum install squirrelmail
After that , you can configure some parameters :
Set hostname : trong file /etc/hosts
Disable SElinux
Apache Server operates at port 80 . So we must open port 80 in
Configure file main.conf
Using command : systemctl start postfix, to start postfix service
Using command : systemctl enable postfix , to enable postfix
service and startup with OS
Configure file dovecot.conf
./ to set up parameters of Mail
You can reference to after link :
6. Configuring SAMBA server
Purpose : Sharing file and configure to Active Directory Domain
Step by step :
Sharing file :
o yum install samba*
o Create a folder to share ( /etc/samba/shared)
o Set permission for this folder :
chmod R 0777 /etc/samba/shared
o Configure file smb.conf in folder samba
o You can reference to after article :

Domain controller
Similar setup steps as above.
o Addition some information to file smb.conf
workgroup = UNIXMEN

add machine script = /usr/sbin/useradd -d /dev/null -g 200 -s /sbin/nologin -M %u

logon script = logon.bat
logon path = \\%L\Profiles\%U
domain logons = Yes
preferred master = Yes
domain master = Yes
idmap config * : backend = tdb

comment = Home Directories
read only = No
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

comment = Network Logon Service

path = /var/lib/samba/netlogon
browseable = No
path = /var/lib/samba/profiles
read only = No
create mask = 0755
o Using command: testparm , to test samba
o Create 2 folders are Profiles and netlogon in local folder
o Set permission for those folders ( chose : 1777)
o Add some account to system using command :
useradd [Username]
o Create a group using command :
groupadd [Group name]
o Add password for user , using command :
smbpasswd [Username]
o Disable firewall
o Set SELinux : samba_domain_controller on ;
samba_enable_home_dirs on

7. Network Map



1. User account ( Server Account )

- Username : root
- Password : 0p;/9ol.

Username : admin
Password : 0p;/9ol.
Mail : Squirrel Mail
Account :
o Username : minh.vo
o Password : 0p;/9ol.

3. Share file Active Directory Domain Controller (Samba server)

- Username : user1 , user2
- Password : 0p;/9ol.

DHCP server
IP : ( router gateway)
Range : (253 clients)
Broadcast :
Protocols : TCP/UDP

5. DNS server
- DNS : to resolve domain name
Fill this IP on the client to enter the page
6. Some problems cant resolve
- Send mail localhost to internet ( eg: Gmail, Yahoo ) .
o Solution : Using iRedMail Server
- Disconnect to internet in IP range
o Solution : Routing Router to know Range IP ( . You can choose :
RIP or Static Routing for Router.

After one month from receipt of the problem and go through the process to learn, study the
relevant knowledge. I have completed the work as follows:Xy dng thnh cng mng ni b cho
cng ty
o Building successful internal mail system for the company
o Building successful gadgets to share files between users within the company
Besides, there exist a number of issues unresolved:
o Router not know the way out to the internet
o Not developed internal mail sent to the mail server outside the internet (Gmail,
Yahoo ...)