đPort Forwarding For Local SSH, WebServer, and FTP Service
Introduction
Port forwarding is a mechanism that allows users to direct incoming data traffic to specific ports on a router or firewall to specific devices within a local network. Every device connected to the internet has a unique IP address and port. Port forwarding ensures that requests or data coming in through a particular port are forwarded to the intended device.
Port forwarding is very useful, and can be used for many different functions ranging from better security and blocking unwanted access, to playing games, managing home camera access, and so on. Also useful for remote computer access and hiding yourself or your network from prying eyes.
Toppology
Configuration Router
In this material, when someone SSH there will be 2 possibilities.
When SSH to port 22, he is redirected to Debian 10- Router
When SSH to port 222, he is redirected to Debian 10- Server
Configuration IPTABLES DMZ (SSH)
Configuration IPTABLES DMZ (FTP)
Configuration IPTABLES DMZ (HTTP server)
Configuration Server
Install vsftpd
*attention
Proftpd and vsftpd are two very popular FTP servers for Unix/Linux systems. Although they are very similar in terms of function, there are some important differences.
The main benefit of proftpd is that it has a configuration file that is very easy to manage. The syntax of proftpd.conf is very similar to the Apache configuration file. This makes for quite efficient standardization of configuration files. This is easy to spot because of the modular architecture.
vsftpd is the default FTP server for Ubuntu, CentOS, Fedora, and Red Hat. This makes it very easy to install compared to proftpd, but it doesn't come as easily as a configuration file. vsftpd is also reported to be more secure.
Change File vsftpd
nano /etc/vsftpd.conf
Determines Who Users Can Access vsftpd's FTP
Configuration is Completed
Check SSH Service
Check WebServer Service
Check FTP Service
Last updated