Skip to content

Instantly share code, notes, and snippets.

@technolize
Created July 30, 2015 17:40
Show Gist options
  • Save technolize/ad7565519223c1e9a4e6 to your computer and use it in GitHub Desktop.
Save technolize/ad7565519223c1e9a4e6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<direct>
<rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT</rule>
<rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 20 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</rule>
<rule priority="1" table="filter" ipv="ipv4" chain="INPUT_direct">-p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED -j ACCEPT</rule>
</direct>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment