Hello!
I have a PMG-Cluster on 2 public available VPS servers and want to increase the security.
I found this:
https://github.com/killmasta93/tutorials/wiki/PMG-Harden
Most of it makes the filter rules more advanced, but I am interested in the server itself. So one thing mentioned there, would be fail2ban.
One thing I found in the `syslog`, is that many many incoming requests on the ssh service are incoming.
So I tried to modify the "/etc/ssh/sshd_config"
but this broke the cluster sync, because it uses rsync.
I also just had a nmap scan:
In the firewall settings I just could find a few of them: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#firewall_settings
Which ports are you closing? What are port 111, 517 and 518 used for?
I actually don't need the API access - is it needed for a cluster? Can you disable that?
What do you do to harden your PMG server? Or would you say it is "secure" by default?
I have a PMG-Cluster on 2 public available VPS servers and want to increase the security.
I found this:
https://github.com/killmasta93/tutorials/wiki/PMG-Harden
Most of it makes the filter rules more advanced, but I am interested in the server itself. So one thing mentioned there, would be fail2ban.
One thing I found in the `syslog`, is that many many incoming requests on the ssh service are incoming.
So I tried to modify the "/etc/ssh/sshd_config"
Code:
Port 222
PasswordAuthentication no
UsePAM no
PermitRootLogin prohibit-password
I also just had a nmap scan:
Code:
> $ nmap -p 1-35000 pmg-03.XXX.de
Starting Nmap 7.80 ( https://nmap.org ) at 2023-02-08 01:08 CET
Nmap scan report for pmg-03.XXX.de (45.132.XXX.XXX)
Host is up (0.038s latency).
Not shown: 34993 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
26/tcp open rsftp
111/tcp open rpcbind
517/tcp filtered talk
518/tcp filtered ntalk
8006/tcp open wpl-analytics
Which ports are you closing? What are port 111, 517 and 518 used for?
I actually don't need the API access - is it needed for a cluster? Can you disable that?
What do you do to harden your PMG server? Or would you say it is "secure" by default?
Last edited: