Security Consideration's
Utilizing a remote server for I2P operation carries inherent risks associated with online servers. As the server is connected to the internet, it becomes a potential target for hackers and other malicious entities seeking to exploit vulnerabilities or gain unauthorized access. Thus, server security is a critical aspect of maintaining the integrity and confidentiality of your I2P network. This includes implementing strong access controls, ensuring software and system updates are timely installed, employing intrusion detection and prevention systems, and routinely monitoring the server for any suspicious activities.
Change Default SSH Port
Changing the default SSH port enhances security by reducing the likelihood of automated attacks. Many bots and malicious scripts target the default port (22), so changing it to a non-standard, high-numbered port can help avoid basic port scan attacks, acting as a simple but effective layer of security.
The command above will change the default port from 22 to 2222. If you want to change to another port just update the command above. You can select any port from 1-65536 providing it is not in use.
Enabling Firewall
Firewalls are essential as they act as a protective barrier between your internal network (or individual computer) and external threats on the internet. They monitor and control incoming and outgoing network traffic based on predetermined security rules, blocking malicious traffic, and preventing unauthorized access and cyberattacks. Without a firewall, your system is exposed and vulnerable to these threats, jeopardizing the safety of your data and overall network.
First we need to install a firewall, the easiest firewall we found is UFW.
Next we need to enable some ports.
SSH
I2P Remote Console
I2P HTTP Proxy
I2P UDP Port
ufw default allow outgoing - This changes the default firewall policy to allow all outgoing traffic by default.
ufw default allow incoming - This changes the default firewall policy to deny all incoming traffic by default.
ufw allow 2222 - This rule opens the ssh port, you will need to update this number if you selected a different ssh port above.
ufw --force enable - This command enables the UFW firewall.
Last updated
Was this helpful?