Skip to content

Instantly share code, notes, and snippets.

@jsravn
Last active June 12, 2018 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsravn/3a9959ec2eec81e7fb302d7f4052dfaf to your computer and use it in GitHub Desktop.
Save jsravn/3a9959ec2eec81e7fb302d7f4052dfaf to your computer and use it in GitHub Desktop.
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
# allow certain ICMP to not break TCP and pings
ACCEPT wan fw icmp 0,3,4,8,11
# example port forwarding
DNAT wan lan:192.168.1.10 tcp 2628
DNAT wan lan:192.168.1.10 udp 2628
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment