daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest May 8th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.         for index in range(0, len(self.table["name"])):
  2.             subprocess.call(["sudo", "iptables", "--table", "filter", self.table["option"][index], "INPUT", "--source", self.table["ip"][index],
  3.             "--protocol", "tcp", "--dport", self.table["port"][index], "--jump", "LOG", "--log-prefix", self.table["name"][index]])
  4.             subprocess.call(["sudo", "iptables", "--table", "filter", self.table["option"][index], "INPUT", "--source", self.table["ip"][index],
  5.             "--protocol", "tcp", "--dport", self.table["port"][index], "--jump", "DROP"])
  6.             if block_icmp == True:
  7.                 subprocess.call(["sudo", "iptables", "--table", "filter", self.table["option"][index], "INPUT", "--source", self.table["ip"][index],
  8.                 "--protocol", "icmp", "--jump", "LOG", "--log-prefix", self.table["name"][index]])
  9.                 subprocess.call(["sudo", "iptables", "--table", "filter", self.table["option"][index], "INPUT", "--source", self.table["ip"][index],
  10.                 "--protocol", "icmp", "--jump", "DROP"])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top