Skip to content

Instantly share code, notes, and snippets.

@fzerorubigd
Created September 24, 2012 16:34
Show Gist options
  • Save fzerorubigd/3776881 to your computer and use it in GitHub Desktop.
Save fzerorubigd/3776881 to your computer and use it in GitHub Desktop.
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