×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Massimo Zappino
Added: Jan 31, 2015 5:32 PM
Modified: Aug 27, 2017 3:32 PM
Views: 23
  1. iptables -A INPUT -i eth0 -p tcp --destination-port [PORT] -j DROP
  2. # on Debian/Ubuntu to save configuration permanently
  3. iptables-save