Salsabila Irbah 05111942000007
Muh Hilmy Thoriq YR 05111942000012
Nadhif Bhagawanta Hadiprayitno 05111942000029
EniesLobby will be used as DNS Master, Water7 will be used as DNS Slave, and Skypie will be used as Web Server. There are 2 clients, namely Loguetown and Alabasta. All nodes are connected to the Foosha router, so they can access the internet
First we need to make topologies like this
Then we can run command iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE -s 192.210.0.0/16
in foosha console, and run command echo nameserver 192.168.122.1 > /etc/resolv.conf
in other nodes so we can connect to internet
Difficulties:
- No difficulties
Luffy wants to contact Franky who is in EniesLobby with denden mushi. You are asked by Luffy to create the main website by accessing franky.iup04.com
with the alias www.franky.iup04.com
in the kaizoku folder.
first we need to run apt-get update
and apt-get install bind9 -y
in enieslobby console and edit /etc/bind/named.conf.local
file like this
next we need to edit /etc/bind/kaizoku/franky.iup04.com
like this
so when we ping franky.iup04.com
and www.franky.iup04.com
to check if its direct to skypie ip
Difficulties:
- No difficulties
After that create a subdomain super.franky.iup04.com
with the alias www.super.franky.iup04.com
whose DNS is set at EniesLobby and points to Skypie(3). Also create a reverse domain for the main domain
first we need to edit /etc/bind/kaizoku/franky.iup04.com
like this
so when we ping with super.franky.iup04.com
and www.super.franky.iup04.com
it will direct to skypie ip like this
Difficulties:
- wrong approach at first time
Also create a reverse domain for the main domain
First we need to edit /etc/bind/named.conf.local
like this
then we edit /etc/bind/kaizoku/2.210.192.in-addr.arpa
files
so when we check the reverse of our ip 192.210.2.2
it will direct to franky.iup04.com
Difficulties:
- No difficulties
In order to still be able to contact Franky if the EniesLobby server is damaged, then make Water7 the DNS Slave for the main domain
enieslobby
first we need to edit /etc/bind/named.conf.local
files
water7
run apt-get update
and apt-get install bind9 -y
then edit /etc/bind/named.conf.local
file
to check if it works, we need to run service bind9 stop
then ping franky.iup04.com
Difficulties:
- No difficulties
After that there is a subdomain mecha.franky.yyy.com
with the alias www.mecha.franky.yyy.com
which was delegated from EniesLobby to Water7 with the IP going to Skypie in the sunnygo folder
enieslobby
edit /etc/bind/kaizoku/franky.iup04.com
file like this
edit /etc/bind/named.conf.options
file like this
water7
edit /etc/bind/named.conf.options
file like this
edit /etc/bind/named.conf.local
file like this
edit /etc/bind/sunnygo/mecha.franky.iup04.com
like this
Difficulties:
- No difficulties
To facilitate communication between Luffy and his colleagues, a subdomain was created through Water7 with the name general.mecha.franky.iup04.com
with the alias www.general.mecha.franky.iup04.com
which points to Skypie
water7
edit /etc/bind/sunnygo/mecha.franky.iup04.com
Difficulties:
- wrong approach at the first time
After configuring the server, then the Webserver configuration is done. First with the webserver www.franky.iup04.com
. First, luffy needs a webserver with DocumentRoot on /var/www/franky.iup04.com.
skypie
install apachew
, wget
, php
, unzip
, libapache2-mod-php7.0
download all files required with wget
command and edit /etc/apache2/sites-available/franky.iup04.com.conf
make directory /var/www/franky.iup04.com
and extract franky
the required files in here
Difficulties:
- Wrong
wget
link so can't unzip, must using raw data link
After that, Luffy also needs that the url www.franky.iup04.com/index.php/home
can be www.franky.iup04.com/home.
run a2enmod rewrite
and service apache2 restart
Edit file /var/www/franky.iup04.com/.htaccess
like this
Edit file /etc/apache2/sites-available/franky.iup04.com.conf
like this
Difficulties:
- No difficulties
After that, on the subdomain www.super.franky.iup04.com
, Luffy needs an asset store that has DocumentRoot on /var/www/super.franky.iup04.com
Edit /etc/apache2/sites-available/super.franky.iup04.com.conf
like this
Make directory /var/www/super.franky.iup04.com
and put the downloaded files in there
Difficulties:
- No difficulties
However, in the /public folder, Luffy wants to only be able to do directory listings
Edit /etc/apache2/sites-available/super.franky.iup04.com.conf
like this
Difficulties:
- No difficulties
Not only that, Luffy also prepared an error file 404.html in the /error folder to replace the error code in apache
Edit /etc/apache2/sites-available/super.franky.iup04.com.conf
like this
Difficulties:
- No difficulties
Luffy also asked Nami to make a virtual host configuration. This virtual host aims to be able to access the asset file www.super.franky.iup04.com/public/js
to www.super.franky.iup04.com/js
.
Edit /etc/apache2/sites-available/super.franky.iup04.com.conf
Difficulties:
- No difficulties
And Luffy asked for the web www.general.mecha.franky.yyy.com
it can only be accessed with port 15000 and port 15500
Edit /etc/apache2/sites-available/general.mecha.franky.iup04.com.conf
file like this
Edit /e![14 2](https://user-images.githubusercontent.com/81411468/139205867-96f768d7-27e8-45b8-bab5-6a78609940c3.PNG) tc/apache2/ports.conf
file like this
make directory /var/www/general.mecha.franky.iup04.com
and put the downloaded file in there
Difficulties:
- No difficulties
with authentication username luffy
and password onepiece
and file at /var/www/general.mecha.franky.iup04.com
Run htpasswd -c /etc/apache2/.htpasswd luffy
Edit /etc/apache2/sites-available/general.mecha.franky.iup04.com.conf
like this
Edit /var/www/general.mecha.franky.iup04.com/.htaccess
like this
Difficulties:
- Can't open with correct password
And every time you access the Skypie IP it will be automatically redirected to www.franky.iup04.com
Edit /var/www/html/.htaccess
like this
Edit /etc/apache2/sites-available/000-default.conf
like this
Difficulties:
- No difficulties
Because Franky also wants to invite his friends to be able to contact him through the website www.super.franky.yyy.com
, and because web server visitors will definitely be confused by the random images that exist, Franky also asks to replace the image request that has the substring "franky" will redirected to franky.png. Then help Luffy to configure this dns and web server!
Edit /etc/apache2/sites-available/super.franky.iup04.com.conf
like this
Edit /var/www/super.franky.iup04.com/.htaccess
like this
Difficulties:
- franky.png cant downloaded