Linux Administrator - Block a specific incoming port

Linux Administrator

Privacy Policy

RSS Feed


Acoustic Guitar Tips
Anna Kendrick
Beekeeping Tips
BLISS
Catherine Zeta Jones
My View On Things
Cheap Auto Insurance
Cheap Places to Live
Delta Shaper
Easy Wood Projects
Free Sheet Music
Funny Clean Jokes
Healthy Carbs
Heidi Klum
Improve Your Credit
Ivory Tower Group
Keke Palmer
Linda Ronstadt
Linux Administrator
Money Spigot
Nicole Kidman
Planet Cabinet
Quality Dating Advice
Rustic Cabinets
Sacramento Hiking
Sandra Bullock
Spintax Tool
The Actress
Who Are The Beatles


Block a specific incoming port

Block a specific incoming port

Let's say you want to block ftp traffic on a temporary basis, but you don't want to shut down the ftp server. That's where a temporary block would come in handy. You can do this with the trusty iptables tool. Use a line like this:

/sbin/iptables -A INPUT -p tcp --destination-port 21 -j DROP


Return To Main Page