sudo apt install isc-dhcp-server
- Default port: 67
- cd /etc/default/
- cd /etc/dhcp/ Perform the configuration in the previous routes...
- File configuration: "dhcpd.conf"
service isc-dhcp-server restart
https://infotips.es/redes/servidor-dhcp-en-ubuntu-server-22-04-lts/service isc-dhcp-server status
sudo apt install openssh-server
- Default port: 22
- cd /etc/ssh/ Perform the configuration in the previous routes...
- Port change: file "sshd_config"
sudo systemctl start ssh
sudo systemctl status ssh
sudo apt-get install vsftpd
- Default port: 21
Perform the configuration in the previous routes...
- Port change: /etc/vsftpd.conf -> listen_port=21
Init, restart, status...sudo gedit /etc/vsftpd.conf
sudo init.d/vsftpd restart
sudo init.d/vsftpd start
sudo apt install apache2
- Default port: Listen 80
- Port change: /etc/apache2/ports.conf
sudo gedit /etc/apache2/ports.conf
Create or modify an Apache VirtualHost :
sudo gedit /etc/apache2/sites-enabled
Change the port of your preference File: "000-default.conf" or other files "example.conf"
Allow Apache to bind to the new port
sudo systemctl restart apache2
sudo netstat -tlpn| grep apache
sudo ss -tlpn| grep apache
Now, to check that the connection is correct, we will access it from a browser using the following syntax:
http://Direccion_IP:8081
sudo systemctl start apache2
sudo systemctl status apache2
sudo systemctl stop apache2
- Routes htmls: cd /var/www/html/
Read write and execute for all users (not recommendable)
sudo chmod 777 /var/www/html/
Read write and execute only for the file owner (recommendable)
sudo chmod 755 /var/www/html/
For individual files the owner has read write and execute permission
sudo chmod 664 /var/www/html/index.html
sudo su
Create new user with "name-user"
adduser name-user
Give administrator permissions
adduser name-user sudo
SSH permisions with an IP
Delete user
sudo userdel -r name-user