Skip to content

Instantly share code, notes, and snippets.

@m4dEngi
Created April 20, 2018 14:14
Show Gist options
  • Save m4dEngi/e432cd83ab203e641aba0bf5d542cbc7 to your computer and use it in GitHub Desktop.
Save m4dEngi/e432cd83ab203e641aba0bf5d542cbc7 to your computer and use it in GitHub Desktop.
logoutput: stderr
internal: eth0 port = 27015
external: eth0
socksmethod: pam.username
user.privileged: root
user.unprivileged: nobody
user.libwrap: nobody
client pass {
from: 0/0 to: 0/0
log: error
socksmethod: pam.username
pam.servicename: sockd
}
socks pass {
from: 0/0 to: 0/0
log: error
command: connect
socksmethod: pam.username
}
# deny proxied to lo
socks block {
from: 0.0.0.0/0 to: 127.0.0.0/8
log: error
}
socks block {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind
log: error
}
#91.108.4.0/22
#91.108.8.0/22
#91.108.12.0/22
#91.108.16.0/22
#91.108.56.0/22
#91.108.56.0/23
#91.108.56.0/24
#149.154.160.0/20
#149.154.160.0/22
#149.154.164.0/22
#149.154.168.0/22
#149.154.168.0/23
#149.154.170.0/23
socks pass {
from: 0.0.0.0/0 to: 91.108.4.0/22
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 91.108.8.0/22
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 91.108.12.0/22
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 91.108.16.0/22
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 91.108.56.0/22
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 149.154.160.0/20
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 149.154.164.0/20
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 149.154.168.0/20
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0.0.0.0/0 to: 149.154.170.0/20
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0/0 to: .telegram.org
log: connect disconnect error
socksmethod: pam.username
}
socks pass {
from: 0/0 to: .t.me
log: connect disconnect error
socksmethod: pam.username
}
# deny the rest
socks block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment