Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import iptc
- rule = iptc.Rule()
- rule.in_interface = "wlo1"
- rule.protocol = 0
- rule.src = "192.168.66.213"
- target = iptc.Target(rule, "DROP")
- rule.target = target
- chain = iptc.Chain(iptc.Table(iptc.Table.FILTER), "INPUT")
- chain.insert_rule(rule)
Add Comment
Please, Sign In to add comment