Giter Club home page Giter Club logo

jarkom-modul-2-iup04-2021's Introduction

IUP 04

Salsabila Irbah 05111942000007
Muh Hilmy Thoriq YR 05111942000012
Nadhif Bhagawanta Hadiprayitno 05111942000029

Problem 1

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 1 1

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

Problem 2

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
2 1

next we need to edit /etc/bind/kaizoku/franky.iup04.com like this
2 2

so when we ping franky.iup04.com and www.franky.iup04.com to check if its direct to skypie ip 2 3

Difficulties:

  • No difficulties

Problem 3

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 3 1

so when we ping with super.franky.iup04.com and www.super.franky.iup04.com it will direct to skypie ip like this 3 2

Difficulties:

  • wrong approach at first time

Problem 4

Also create a reverse domain for the main domain

First we need to edit /etc/bind/named.conf.local like this
4 1

then we edit /etc/bind/kaizoku/2.210.192.in-addr.arpa files
4 2

so when we check the reverse of our ip 192.210.2.2 it will direct to franky.iup04.com
4 3

Difficulties:

  • No difficulties

Problem 5

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
5 1

water7 run apt-get update and apt-get install bind9 -y then edit /etc/bind/named.conf.local file
5 2

to check if it works, we need to run service bind9 stop then ping franky.iup04.com
5 3

Difficulties:

  • No difficulties

Problem 6

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
6 1

edit /etc/bind/named.conf.options file like this
6 2

water7 edit /etc/bind/named.conf.options file like this
6 2

edit /etc/bind/named.conf.local file like this
6 3

edit /etc/bind/sunnygo/mecha.franky.iup04.com like this
6 4

test ping should be like this
6 5

Difficulties:

  • No difficulties

Problem 7

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
7 1

test ping should be like this
7 2

Difficulties:

  • wrong approach at the first time

Problem 8

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
8 1

make directory /var/www/franky.iup04.com and extract franky the required files in here
8 2

Difficulties:

  • Wrong wget link so can't unzip, must using raw data link

Problem 9

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
9 1

Edit file /etc/apache2/sites-available/franky.iup04.com.conf like this
9 2

Difficulties:

  • No difficulties

Problem 10

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
10 1

Make directory /var/www/super.franky.iup04.com and put the downloaded files in there

Difficulties:

  • No difficulties

Problem 11

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
11 1

Difficulties:

  • No difficulties

Problem 12

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 12 1

Difficulties:

  • No difficulties

Problem 13

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
13 1

Difficulties:

  • No difficulties

Problem 14

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
14 1

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
14 3

Difficulties:

  • No difficulties

Problem 15

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
15 1

Edit /var/www/general.mecha.franky.iup04.com/.htaccess like this
15 2

Difficulties:

  • Can't open with correct password

Problem 16

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
16 1

Edit /etc/apache2/sites-available/000-default.conf like this
16 2

Difficulties:

  • No difficulties

Problem 17

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
17 1

Edit /var/www/super.franky.iup04.com/.htaccess like this
17 2

Difficulties:

  • franky.png cant downloaded

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.