07-22-2019, 07:35 AM
A few hours ago I tried studying iptables! But some errors made my VPS unable to connect! Is there a solution to this problem?
iptables -F
iptables -X
iptables -A INPUT -p tcp --dport 9022 -j ACCEPT
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
(07-22-2019, 12:30 PM)Hidden Refuge Wrote: Great to hear that it works.
You have no access to emergency SSH in your VPS control panel? Ok. How come? No VPS control panel? Usually SolusVM and Virtualizor both have either emergency SSH or VNC features.
Maybe open a support ticket?