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: - s malicious IP - j DROP.

Save rules

Restarting the iptables rule will result in loss. Save with iptables save and load automatically upon startup.

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.