DEV Community

muckitymuck
muckitymuck

Posted on

Linux and Windows Services

The first service to add to your Linux box is the yum(Yellowdog Updater, Modified.) It is the package management utility that is super useful on modern linux. It is useful in newer cases for now we will be using APT(Advanced Package Tool)

image
image

Other services we will be exploring here are Apache web server and Nginx.
image
image

After installing, we can check its status on the system.
image
We can start and stop it with the same commands.
image
Similar command structure works for apache.

For Security reasons, you should replace your VSFTPd with a SFTP service. SFTP does not actually use ftp protocol, it uses ssh services and emulates the ftp process.
image
image
image

We, of course, need to set up open ssh on our server to make this work for us.
image

Also, edit the ssh_config file by adding the last 5 lines to the file.
sudo nano /etc/ssh/ssh_config
image
You can set up a new user to connect to the sftp service.
image
Connecting to the service is similar to this:
image
Make sure to change the ip to your needs.

We can secure our Nginx service in our firewall with the ufw commands.
image

image
image
Your UFW can be configured by port number and IP address. This will by default configure for IPv6 if you are just doing ports.
image
You can turn off IPv6 by going into /etc/default/ufw :
image
Windows Server is, as always, doing its own thing for web servers. They use IIS.
image
The Easy Way to install IIS is to go through Server Manager and pick the IIS role.
image
You might need to install Windows Authentication for the service to use instead of Kerberos.
image

You can configure the Windows Firewall service to control connections to the server:
image
image

Top comments (0)