Basic Concepts

Four tables and five chains; The filter table is responsible for filtering; INPUT chain processing inbound; OUTPUT outbound.

Common Operations

Open port 80: iptables - A INPUT - p TCP - dport 80- j Accept. Ban IP: iptables - A INPUT - s malicious IP - j DROP.

Save rules

Service iptables save rule, restart without loss.

Disclaimer: Articles on this site come from original content, reposts, AI generation, and other sources. If there are copyright or other issues, pleaseclick here to feedback, and our company will verify and handle it promptly.