Guest User

Untitled

a guest
Feb 16th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import iptc
  2.  
  3. rule = iptc.Rule()
  4. rule.in_interface = "wlo1"
  5. rule.protocol = 0
  6. rule.src = "192.168.66.213"
  7.  
  8. target = iptc.Target(rule, "DROP")
  9. rule.target = target
  10.  
  11. chain = iptc.Chain(iptc.Table(iptc.Table.FILTER), "INPUT")
  12. chain.insert_rule(rule)
Add Comment
Please, Sign In to add comment