Skip to content

Instantly share code, notes, and snippets.

@chorrell
Created May 7, 2012 12:22
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 chorrell/2627486 to your computer and use it in GitHub Desktop.
Save chorrell/2627486 to your computer and use it in GitHub Desktop.
Example IPFilter config
# Allow all out going connections
pass out from Your.Public.IP to any keep state
# SSH
pass in quick from any to Your.Public.IP port=22
# SMTP
pass in quick from any to Your.Public.IP port=25
# HTTP
pass in quick from any to Your.Public.IP port=80
# POP
pass in quick from any to Your.Public.IP port=110
# IMAP
pass in quick from any to Your.Public.IP port=143
# HTTPS
pass in quick from any to Your.Public.IP port=443
# Webmin/Virtualmin
pass in quick from any to Your.Public.IP port=10000
# Block everything else coming in
block in from any to Your.Public.IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment