iptables use

We’re using iptables to connect to the terminal, such as whitelisting (especially on your own) that we use to put the ip block on what you don’t want to access your server, or especially those you want to access.


// to list blocked IPs;
iptables -L INPUT -v -n

// to delete (remove block) the blocked IP;
iptables -D INPUT -s x.x.x.x -j DROP

// To add (make reliable) the IP addresses to the whitelist;
// INPUT: to inputs, OUTPUT: to outputs
iptables -A INPUT -s  x.x.x.x -j ACCEPT
iptables -A OUTPUT -s x.x.x.x -j ACCEPT

Leave a Reply

Your email address will not be published. Required fields are marked *