Skip to content

Instantly share code, notes, and snippets.

@marios88
Created June 27, 2021 15:52
Show Gist options
  • Save marios88/cf7bc6279fbab1e02672f62eb99abbb0 to your computer and use it in GitHub Desktop.
Save marios88/cf7bc6279fbab1e02672f62eb99abbb0 to your computer and use it in GitHub Desktop.
Dante 1.4 socks5 proxy simple configuration
#logging
logoutput: stdout
#debug: 1
#server address specification
internal: 192.168.1.51 port = 1080
external: eth0
#server identities (not needed on solaris)
#user.privileged: root
user.notprivileged: osmc
#user.libwrap: libwrap
#reverse dns lookup
#srchost: nodnsmismatch
#authentication methods
clientmethod: none
socksmethod: none
##
## SOCKS client access rules
##
#rule processing stops at the first match, no match results in blocking
#block access to socks server from 192.0.2.22 (exception for pass rule below)
#allow connections from local network (192.0.2.0/24)
client pass {
from: 192.168.1.0/24 to: 0.0.0.0/0
log: error connect disconnect
}
client pass {
from: xxx.xxx.xxx.150/32 to: 0.0.0.0/0
log: error connect disconnect
}
client pass {
from: xxx.xxx.xxx.181/32 to: 0.0.0.0/0
log: error connect disconnect
}
client block {
#block connections from 192.0.2.22/32
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error connect disconnect
}
##
## SOCKS command rules
##
#rule processing stops at the first match, no match results in blocking
#block communication with www.example.org
# block {
# from: 0.0.0.0/0 to: www.example.org
# command: bind connect udpassociate
# log: error # connect disconnect iooperation
# }
#generic pass statement - bind/outgoing traffic
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind connect udpassociate
log: error # connect disconnect iooperation
}
#block incoming connections/packets from ftp.example.org
# block {
# from: 0.0.0.0/0 to: ftp.example.org
# command: bindreply udpreply
# log: error # connect disconnect iooperation
# }
#generic pass statement for incoming connections/packets
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: error # connect disconnect iooperation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment