Skip to content

Instantly share code, notes, and snippets.

@phonedph1
Created November 13, 2019 17:11
Show Gist options
  • Save phonedph1/298aa335c8c598d9ebe684c397aa1fcc to your computer and use it in GitHub Desktop.
Save phonedph1/298aa335c8c598d9ebe684c397aa1fcc to your computer and use it in GitHub Desktop.
rmRule(0)
-- refresh existing NMG, and then set new rule
dropTest:clear()
for line in io.lines("/tmp/ips") do dropTest:addMask(line) end
addAction(NetmaskGroupRule(dropTest, true, true), DropAction())
topRule()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment