Professional Documents
Culture Documents
net/publication/335023411
CITATIONS READS
3 159
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
[Teaching Innovation Project] Creation of Templates to Facilitate the Creation of Software Engineering Final Degree Projects View project
All content following this page was uploaded by Jose Manuel Redondo on 04 November 2019.
Understand Infrastructure
Administration concepts
the easy way
Ninja design by: Vanessa Redondo López (@creative_vanesa)
Avatar design by: Inmaculada Martínez Lobo (@inmmastar)
V0.11 (2 zines)
Changelog
V0.11 (08/08/2019):
* Public release
* Pilot project for zines about infrastructure
administration concepts: 2 Docker-related zines
This file is just a project demo and will be growing in
content over time.
This Dockerfile that creates a Nginx Ubuntu 18.04 Now you can spawn as many custom Nginx as you need!
Web Server serving our own content! Docker Hub (https://hub.docker.com/)
-d: runs detached (no shell, just runs Nginx) has a LOT of predefined images
# Use the official Nginx image from Docker Hub 1 Maps a local port to port 80 of each container
FROM nginx Multiple ready-to-use installations of
$> docker run –d –p 8080:80 test/mynginx
# Update repositories popular software are there (MySQL,
RUN apt-get update Oracle DBMS, Node, Apache…)!
$> docker run –d –p 8081:80 test/mynginx
# Upgrade container software (no user input is allowed)
RUN apt-get –y full-upgrade Also images corresponding to major OS
# Copy the web files from a host dir to the container
$> docker run –d –p 8100:80 test/mynginx (Ubuntu, Debian, Kali Linux…)
# Dir “webfiles” is in the same location as the Dockerfile For safety, try to use certified / official /
COPY webfiles /usr/share/nginx/html
localhost:8080 localhost:8081 localhost:8100 verified publisher images only!!
2 Use them to acquire what you need
$> docker build –t=“test/mynginx” . without effort!
A new updated Nginx image with our web page! They need much much less resources than a VM!
@The_Rounded_Man presents…
Even with forbidden communications, we can link Whenever you link two containers, Docker We can now properly create container infrastructures as
containers by name so they can see each other! complex as we need!
will create some environment variables
1
$> docker run –d --name=db app/mysql automatically 172.17.0.1 172.17.0.2 172.17.0.3 172.17.0.4
These contain the linked container
The web server only “see” the database! address, DNS name, exposed ports, …
2
$> docker run –d --name=web --link=db \ Any information needed to work with
> app/nginx
these variables instead of IPs Proxy Web MySQL
The proxy only “see” the web server! Internal network IPs are assigned via Container Container Container
3 DHCP, so they are variable through runs
$> docker run –d --name=proxy --link=web \
> app/customLinux This way, the infrastructure can be
The host can communicate with all containers,
recreated without taking care of the but we can restrict inter-container
assigned IPs! communication as much as we want!
@The_Rounded_Man presents…
References
Num Reference
J. M. Redondo, "FanCines: Understand C Sharp concepts the easy way," 1 5 2019. [Online]. Available:
[1]
https://www.researchgate.net/publication/333104441_FanCines_Understand_C_Sharp_concepts_the_easy_way
J. M. Redondo, Introducción Práctica a la Administración Segura de Servidores Apache Bajo Linux, vol. 1, Oviedo, Asturias: Servicio de Publicaciones de la
[2]
Universidad de Oviedo, 2019, p. 530.
J. M. Redondo, "Are You Breathacking? Introduction to hacking with a practical example," 1 7 2019. [Online]. Available:
[3]
https://www.researchgate.net/publication/334303691_Are_You_Breath-hacking_Introduccion_en_Espanol_al_mundo_del_hacking_con_un_ejemplo_practico
[4] J. M. Redondo and D. Cuesta, "Towards Improving Productivity in NMap Security Audits," Journal of Web Engineering (JWE), vol. 18, no. 7, pp. 1-38, 09 2019.
I. Llaneza, J. M. Redondo and L. Vinuesa, "Towards Lightweight Mobile Pentesting Tools to Quickly Assess Machine Security Levels," IEEE Latin America
[5]
Transactions, p. pp, 8 2019.
View publication stats