Created
September 24, 2012 16:34
-
-
Save fzerorubigd/3776881 to your computer and use it in GitHub Desktop.
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
user.privileged: proxy | |
# when running as usual, it will use the unprivileged userid of: | |
user.notprivileged: nobody | |
logoutput: stderr | |
#logoutput: syslog | |
#the above line will send any logs to /var/log/syslog instead to a terminal | |
internal: eth0 port = 1\9090 | |
internal: 127.0.0.1 port = 9090 | |
external: eth0 | |
method: username none | |
client pass { | |
from: 136.201.251.21/0 port 1-65535 to: 0.0.0.0/0 | |
# 136.201.251.21/0 = specific ip address. | |
} | |
client pass { | |
from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0 | |
} | |
client block { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
log: connect error | |
} | |
#Finally block other traffic | |
block { | |
from: 0.0.0.0/0 to: 127.0.0.0/8 | |
log: connect error | |
} | |
pass { | |
from: 136.201.251.21/0 to: 0.0.0.0/0 | |
protocol: tcp udp | |
} | |
pass { | |
from: 127.0.0.0/8 to: 0.0.0.0/0 | |
protocol: tcp udp | |
} | |
block { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
log: connect error | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment