Skip to content

Instantly share code, notes, and snippets.

@Wind4
Forked from phoenixlzx/sniproxy.conf
Last active August 29, 2015 14:13
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 Wind4/db05377e77bfec896129 to your computer and use it in GitHub Desktop.
Save Wind4/db05377e77bfec896129 to your computer and use it in GitHub Desktop.
# sniproxy example configuration file
# lines that start with # are comments
# lines with only white space are ignored
user daemon
# PID file
pidfile /var/run/sniproxy.pid
error_log {
# Log to the daemon syslog facility
syslog deamon
# Alternatively we could log to file
filepath /var/log/sniproxy.log
# Control the verbosity of the log
priority notice
}
listen 443 {
proto tls
table https_hosts
}
listen 465 {
proto tls
table xmpp_imap_smtp
}
listen 993 {
proto tls
table xmpp_imap_smtp
}
listen 995 {
proto tls
table xmpp_imap_smtp
}
listen 5222 {
proto tls
table xmpp_imap_smtp
}
listen 5223 {
proto tls
table xmpp_imap_smtp
}
listen 5269 {
proto tls
table xmpp_imap_smtp
}
# named tables are defined with the table directive
table https_hosts {
# WordPress
(.*\.|)wp\.com$ *
(.*\.|)wordpress\.com$ *
# Wikipedia
(.*\.|)wikipedia\.org$ *
# Twitter
(.*\.|)twimg\.com$ *
(.*\.|)tinypic\.com$ *
(.*\.|)twitpic\.com$ *
(.*\.|)twitter\.com$ *
# bit.ly
bitly\.com *
bit\.ly *
# Google
(.*\.|)googleapis\.com$ *
(.*\.|)google\.com$ *
(.*\.|)youtube\.com$ *
(.*\.|)ytimg\.com$ *
(.*\.|)googlehosted\.com$ *
(.*\.|)googleusercontent\.com$ *
(.*\.|)ggpht\.com$ *
(.*\.|)gstatic\.com$ *
(.*\.|)googlemail\.com$ *
(.*\.|)googlecode\.com$ *
(.*\.|)blogspot\.com$ *
(.*\.|)gmail\.com$ *
# Amazon
(.*\.|)amazonaws.com *
# CDN
github\.global\.ssl\.fastly\.net *
cdn\.sstatic\.net *
}
table xmpp_imap_smtp {
(.*\.|)google\.com$ *
(.*\.|)googlemail\.com$ *
(.*\.|)gmail\.com$ *
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment