How to Whitelist or Block IPs in your Firewall on Linux – iptables, firewalld, ufw

Knowing how to Whitelist and Blacklist IPs in your firewall can be very important when you want to allow or deny connection to your server, based on an IP address. Below we will cover how to allow and deny connections from IPs in IP Tables, Firewalld, and UFW. IPTables: Allowing or Denying connections from IPs Read more about How to Whitelist or Block IPs in your Firewall on Linux – iptables, firewalld, ufw[…]

Add IP and Port to iptables

How to add an IP to access the plesk panel and ssh Open flle /etc/sysconfig/iptables: # nano /etc/sysconfig/iptables -A INPUT -s 72.177.xxx.xxx/32 -p tcp -m tcp –dport 8443 -j ACCEPT -A INPUT -s 66.226.xx.xx/32 -p tcp -m tcp –dport 10222 -j ACCEPT Save and restart iptables service iptables restart