Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created June 2, 2016 18:50
Show Gist options
  • Save bcomnes/1bcabba9e0a711377ac12d089751ea02 to your computer and use it in GitHub Desktop.
Save bcomnes/1bcabba9e0a711377ac12d089751ea02 to your computer and use it in GitHub Desktop.
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment