A
A
dhcp, dhcp-devel, bind, nfs-utils, samba, vsftpd, openssh-server, openldap, openldap-clients, openldap-
servers, httpd, mod_ssl, postfix, dovecot
3. Configure Network Interfaces: Connect the virtual network cards according to the
provided network diagram.
4. Disable Firewalls:
5. Verify Package Installation: Ensure all specified packages are installed on both machines.
• DHCP
• DHCP Relay
• DNS
• NFS
• Samba
• FTP
• SSH
• HTTP
• SMTP
• POP3
SELINUX=disabled
net.ipv4.ip_forward = 1
sysctl -p
• Configure the relay to forward requests from Vmnet3 to the DHCP server on Srv-interne.
2. Register the external domain with a .ma registrar (handled by the instructor).
B.
• Edit /etc/vsftpd/vsftpd.conf:
anonymous_enable=NO
local_enable=YES
mkdir /site1
Edit /etc/httpd/conf.d/site1.conf:
<VirtualHost *:80>
DocumentRoot /site1
</VirtualHost>
mkdir /site2
Edit /etc/httpd/conf.d/site2.conf:
<VirtualHost *:8008>
DocumentRoot /site2
Listen 8008
</VirtualHost>
• Edit /etc/postfix/main.cf:
myhostname = mail.HOUCHAIMI.isgi
mydomain = HOUCHAIMI.isgi
relayhost = [20.20.16.2]
• Restart Postfix:
• Restart Dovecot:
useradd AYOUB
passwd AYOUB
groupadd HOUCHAIMI
mkdir -p /HOUCHAIMI/AYOUB
• Edit /etc/exports:
• Restart NFS:
Samba Configuration:
smbpasswd -a AYOUB
• Edit /etc/samba/smb.conf:
[partage-AYOUB]
path = /HOUCHAIMI/AYOUB
read only = no
• Restart Samba:
• Verify with:
ip addr show
• Site 1:
mkdir /var/www/html/site1
<VirtualHost 20.20.16.3:80>
DocumentRoot /var/www/html/site1
</VirtualHost>
• Site 2:
mkdir /var/www/html/site2
<VirtualHost 20.20.16.4:80>
DocumentRoot /var/www/html/site2
</VirtualHost>
• Restart HTTP:
site1 IN A 20.20.16.3
site2 IN A 20.20.16.4
• Edit /etc/postfix/main.cf:
myhostname = mail.HOUCHAIMI.ma
mydomain = HOUCHAIMI.ma
• Restart Postfix:
1. Enable IP Forwarding:
Edit /etc/sysctl.conf:
net.ipv4.ip_forward = 1
sysctl -p
1. Enable IPTABLES:
iptables -F
iptables -t nat -F
iptables -t mangle -F