Whitelist an IP address in IPTables.

How to whitelist IP address 192.168.0.1

Step 1: Log into the server via SSH.

Step 2: Allow incoming connections from 192.168.0.1

# iptables -A INPUT -s 192.168.0.1 -j ACCEPT

Step 3: Allow outgoing connections to 192.168.0.1

# iptables -A OUTPUT -d 192.168.0.1 -j ACCEPT

 

  • IPTables, Whitelist, SSH, block ip, whitelist ip
  • 21 Users Found This Useful
Was this answer helpful?

Related Articles

How to flush your DNS cache

Your home computer creates a cache for all DNS settings. It does this to save time each time you...

What is the root login for my new VPS server?

The root login is the same password our system sent you in your welcome email. You just change...

What is the path to PERL?

The path to PERL in PERL script is:#!/usr/local/bin/perl

Do you troubleshoot scripts and apps?

Hello,Sorry, but troubleshooting sripts and apps needs to be done by the scipt maker or a...

Can I change my web hosting main domain name?

Yes, and it's very easy.Just add a support ticket like this:  old: olddomain.comnew:...