How to Unblock International Access to a VPS


You block the VPS international access and you need to remove those rules because the VPS needs to be accessible from overseas following the command that can be used.

 

Please type the following command to be able to edit files iptables

vi /etc/sysconfig/iptables

If you're already logged in on file iptables and remove parts

-A INPUT -p icmp -m set --match-set indonesia src -j ACCEPT-A INPUT -p udp -m set --match-set indonesia src -j ACCEPT-A INPUT -p tcp -m set --match-set indonesia src -j ACCEPT-A INPUT -i eth1 -j DROP


If successful, it will display like this

Next, please type in the following command

vi /var/spool/cron/root

Then make sure you delete on the following sections

@monthly /root/allowindonesia.sh@monthly /root/update-allow-indonesia.sh

 

Your VPS can be accessed from international connections back.



>> This article is an extension of the VPS International Access Block guide

How to Install LAMP (Linux, Apache, MariaDB, PHP 7) on Ubuntu
How to Block International Access to a VPS