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.

Briefly;

// 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 *

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny