iptables Syntax Generator
Rule Type:
Firewall Rule
NAT Rule
Chain:
INPUT
FORWARD
OUTPUT
Add/Delete:
APPEND
INSERT
DELETE
Rule Number:
Action:
ACCEPT
DROP
REJECT
LOG
New Destination:
Source IP:
Destination IP:
Protocol:
ANY
TCP
UDP
ICMP
Source Port:
Destination Port:
ICMP Type:
Reject With:
Input Interface:
Output Interface:
State:
NEW
ESTABLISHED
RELATED
INVALID
Generated iptables Syntax:
Generate iptables Syntax
Sudo
Clear