Page 1 of 1
Disable ssh and ping
Posted: Wed Jul 05, 2023 3:26 pm
by webstyler
Hello guys
We have install new OpenVPN Access Server, last release.
How to:
- disable ping so main IP not respond?
- disable ssh access?
For both we can work from hypervisor
Thanks
Re: Disable ssh and ping
Posted: Tue Jul 11, 2023 9:18 am
by openvpn_inc
Hello webstyler,
SSH can be turned off by using system management in the operating system. Disabling ping response is something that can be done with iptables rules. Both things are something that are pretty easy to find instructions about online. Here's some examples;
To turn off SSH service entirely:
systemctl stop --now ssh
systemctl disable --now ssh
And stop responding to ICMP:
nano /etc/sysctl.conf
Add this line:
net.ipv4.icmp_echo_ignore_al = 1
Save and exit from nano, then run:
sysctl -p
Note that you must be root for these commands to work, or else prepend it with sudo, as per normal procedure on Linux.
Kind regards,
Johan