Created
January 28, 2021 17:53
-
-
Save atomlab/a65c7eb8dd6281638e56f5f8fd8e632e to your computer and use it in GitHub Desktop.
Default ferm conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def $TRUSTED = ( | |
); | |
domain (ip) { | |
table filter { | |
chain INPUT { | |
policy DROP; | |
# connection tracking | |
mod state state INVALID DROP; | |
mod state state (ESTABLISHED RELATED) ACCEPT; | |
# allow local packet | |
interface lo ACCEPT; | |
# respond to ping | |
proto icmp ACCEPT; | |
# allow SSH connections | |
proto tcp dport ssh ACCEPT; | |
saddr $TRUSTED proto (tcp udp) ACCEPT; | |
} | |
chain OUTPUT { | |
policy ACCEPT; | |
# connection tracking | |
#mod state state INVALID DROP; | |
mod state state (ESTABLISHED RELATED) ACCEPT; | |
} | |
chain FORWARD { | |
policy DROP; | |
# connection tracking | |
mod state state INVALID DROP; | |
mod state state (ESTABLISHED RELATED) ACCEPT; | |
} | |
} | |
} | |
@include ferm.d/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment