How to Whitelist/Allow an IP address on CentOS, Redhat, Fedora Linux Server

How to Whitelist/Allow Incoming connection from an IP address

Login into your Linux server via SSH as ‘root’ user

Run the command

iptables -A INPUT -s IPADDRESS -j ACCEPT

to whitelist/Allow the IP address

Save the Iptables rule by running the command

service iptables save

You must replace “IPADDRESS” in the Step 2 with the IP address you wish to whitelist.

How to Whitelist/Allow Outgoing connection to an IP address

Login to the Linux server via SSH as ‘root’ user

Run the command

iptables -A OUTPUT -d IPADDRESS -j ACCEPT

to whitelist Outgoing connections

Run the command

service iptables save

to save the IPtables rules.

Var dette svaret til hjelp?

Relaterte artikler

How to install and use MTR on Windows and Mac OS X

Install and use MTR on Windows Download WinMTR (Windows) (Windows) Run WinMtr.exe...

How to use worldshield.ws panel

Worldshield.ws is the DDoS mitigation control panel that nexonhost.com provides for you to manage...

How to get Real Visitors IPs on your backend

How to Get Real Visitor IPs in Web Server Access Logs In order to receive the real visitor IPs...

How to use the MTR command on Linux

How to use the MTR command on Linux   MTR (Matt’s traceroute) is a...

How to Install PowerDNS and Poweradmin on CentOS 7

Step 1 - Install EPEL and Remi Repositories First of all, we need to install dependencies for...