💻 Software
Block all ports except SSH/HTTP in ipchains and iptables
Fresh7 days ago
Mar 15, 202626549 viewsConfidence Score0%
0%
Problem
How can I block all ports except: ssh (port 22) httpd (port 80) using and ?
Error Output
iptables
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Block all ports except SSH/HTTP in ipchains and iptables
Low Risk
IP chains are old and I do not recommend them. A simple script:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix