# $Id: sockd.conf,v 1.52.10.2.2.2 2017/01/31 07:16:25 karls Exp $ # # A sample danted.conf # # # The config file is divided into three parts; # 1) server settings # 2) rules # 3) routes # # The recommended order is: # Server settings: # logoutput # internal # external # socksmethod # clientmethod # users # compatibility # extension # timeout # srchost # # Rules: # client block/pass # from to # libwrap # log # # block/pass # from to # socksmethod # command # libwrap # log # protocol # proxyprotocol # # Routes: # the server will log both via syslog, to stdout and to /var/log/sockd.log #logoutput: syslog stdout /var/log/sockd.log logoutput: stderr # The server will bind to the address 10.1.1.1, port 1080 and will only # accept connections going to that address. #internal: 10.1.1.1 port = 1080 # Alternatively, the interface name can be used instead of the address. #internal: eth0 port = 1080 # all outgoing connections from the server will use the IP address # 195.168.1.1 #external: 192.168.1.1 # list over acceptable authentication methods, order of preference. # An authentication method not set here will never be selected. # # If the socksmethod field is not set in a rule, the global # socksmethod is filled in for that rule. # # methods for socks-rules. #socksmethod: username none #rfc931 # methods for client-rules. #clientmethod: none #or if you want to allow rfc931 (ident) too #socksmethod: username rfc931 none #or for PAM authentication #socksmethod: pam # # User identities, an important section. # # when doing something that can require privilege, it will use the # userid: user.privileged: root # when running as usual, it will use the unprivileged userid of: user.unprivileged: nobody # If you are not using libwrap, no need for the below line, so leave # it commented. # If you compiled with libwrap support, what userid should it use # when executing your libwrap commands? "libwrap". #user.libwrap: libwrap user.libwrap: nobody # # Some options to help clients with compatibility: # # when a client connection comes in the socks server will try to use # the same port as the client is using, when the socks server # goes out on the clients behalf (external: IP address). # If this option is set, Dante will try to do it for reserved ports as well. # This will usually require user.privileged to be set to "root". #compatibility: sameport # If you are using the Inferno Nettverk bind extension and have trouble # running servers via the server, you might try setting this. #compatibility: reuseaddr # # The Dante server supports some extensions to the socks protocol. # These require that the socks client implements the same extension and # can be enabled using the "extension" keyword. # # enable the bind extension. #extension: bind # # Misc options. # # how many seconds can pass from when a client connects till it has # sent us its request? Adjust according to your network performance # and methods supported. #timeout.negotiate: 30 # on a lan, this should be enough. # how many seconds can the client and its peer idle without sending # any data before we dump it? Unless you disable tcp keep-alive for # some reason, it's probably best to set this to 0, which is # "forever". #timeout.io: 0 # or perhaps 86400, for a day. # do you want to accept connections from addresses without # dns info? what about addresses having a mismatch in dns info? #srchost: nodnsunknown nodnsmismatch # # The actual rules. There are two kinds and they work at different levels. # # The rules prefixed with "client" are checked first and say who is allowed # and who is not allowed to speak/connect to the server. I.e the # ip range containing possibly valid clients. # It is especially important that these only use IP addresses, not hostnames, # for security reasons. # # The rules that do not have a "client" prefix are checked later, when the # client has sent its request and are used to evaluate the actual # request. # # The "to:" in the "client" context gives the address the connection # is accepted on, i.e the address the socks server is listening on, or # just "0.0.0.0/0" for any address the server is listening on. # # The "to:" in the non-"client" context gives the destination of the clients # socks request. # # "from:" is the source address in both contexts. # # # The "client" rules. All our clients come from the net 10.0.0.0/8. # # Allow our clients, also provides an example of the port range command. #client pass { # from: 10.0.0.0/8 port 1-65535 to: 0.0.0.0/0 # clientmethod: rfc931 # match all idented users that also are in passwordfile #} # This is identical to above, but allows clients without a rfc931 (ident) # too. In practice this means the socks server will try to get a rfc931 # reply first (the above rule), if that fails, it tries this rule. #client pass { # from: 10.0.0.0/8 port 1-65535 to: 0.0.0.0/0 #} # drop everyone else as soon as we can and log the connect, they are not # on our net and have no business connecting to us. This is the default # but if you give the rule yourself, you can specify details. #client block { # from: 0.0.0.0/0 to: 0.0.0.0/0 # log: connect error #} # the rules controlling what clients are allowed what requests # # you probably don't want people connecting to loopback addresses, # who knows what could happen then. #socks block { # from: 0.0.0.0/0 to: lo0 # log: connect error #} # the people at the 172.16.0.0/12 are bad, no one should talk to them. # log the connect request and also provide an example on how to # interact with libwrap. #socks block { # from: 0.0.0.0/0 to: 172.16.0.0/12 # libwrap: spawn finger @%a # log: connect error #} # unless you need it, you could block any bind requests. #socks block { # from: 0.0.0.0/0 to: 0.0.0.0/0 # command: bind # log: connect error #} # or you might want to allow it, for instance "active" ftp uses it. # Note that a "bindreply" command must also be allowed, it # should usually by from "0.0.0.0/0", i.e if a client of yours # has permission to bind, it will also have permission to accept # the reply from anywhere. #socks pass { # from: 10.0.0.0/8 to: 0.0.0.0/0 # command: bind # log: connect error #} # some connections expect some sort of "reply", this might be # the reply to a bind request or it may be the reply to a # udppacket, since udp is packet based. # Note that nothing is done to verify that it's a "genuine" reply, # that is in general not possible anyway. The below will allow # all "replies" in to your clients at the 10.0.0.0/8 net. #socks pass { # from: 0.0.0.0/0 to: 10.0.0.0/8 # command: bindreply udpreply # log: connect error #} # pass any http connects to the example.com domain if they # authenticate with username. # This matches "example.com" itself and everything ending in ".example.com". #socks pass { # from: 10.0.0.0/8 to: .example.com port = http # log: connect error # clientmethod: username #} # block any other http connects to the example.com domain. #socks block { # from: 0.0.0.0/0 to: .example.com port = http # log: connect error #} # everyone from our internal network, 10.0.0.0/8 is allowed to use # tcp and udp for everything else. #socks pass { # from: 10.0.0.0/8 to: 0.0.0.0/0 # protocol: tcp udp #} # last line, block everyone else. This is the default but if you provide # one yourself you can specify your own logging/actions #socks block { # from: 0.0.0.0/0 to: 0.0.0.0/0 # log: connect error #} # route all http connects via an upstream socks server, aka "server-chaining". #route { # from: 10.0.0.0/8 to: 0.0.0.0/0 port = http via: socks.example.net port = socks #}
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ImageMagick-6 | Folder | 0755 |
|
|
NetworkManager | Folder | 0755 |
|
|
UPower | Folder | 0755 |
|
|
X11 | Folder | 0755 |
|
|
acpi | Folder | 0755 |
|
|
alternatives | Folder | 0755 |
|
|
apache2 | Folder | 0755 |
|
|
apm | Folder | 0755 |
|
|
apparmor | Folder | 0755 |
|
|
apparmor.d | Folder | 0755 |
|
|
apport | Folder | 0755 |
|
|
apt | Folder | 0755 |
|
|
bash_completion.d | Folder | 0755 |
|
|
binfmt.d | Folder | 0755 |
|
|
bonobo-activation | Folder | 0755 |
|
|
byobu | Folder | 0755 |
|
|
ca-certificates | Folder | 0755 |
|
|
calendar | Folder | 0755 |
|
|
chatscripts | Folder | 2750 |
|
|
cloud | Folder | 0755 |
|
|
cni | Folder | 0700 |
|
|
console-setup | Folder | 0755 |
|
|
cron.d | Folder | 0755 |
|
|
cron.daily | Folder | 0755 |
|
|
cron.hourly | Folder | 0755 |
|
|
cron.monthly | Folder | 0755 |
|
|
cron.weekly | Folder | 0755 |
|
|
cryptsetup-initramfs | Folder | 0755 |
|
|
datadog-agent | Folder | 0755 |
|
|
dbconfig-common | Folder | 0755 |
|
|
dbus-1 | Folder | 0755 |
|
|
debsig | Folder | 0755 |
|
|
default | Folder | 0755 |
|
|
depmod.d | Folder | 0755 |
|
|
dhcp | Folder | 0755 |
|
|
dictionaries-common | Folder | 0755 |
|
|
dnsmasq.d | Folder | 0755 |
|
|
dnsmasq.d-available | Folder | 0755 |
|
|
docker | Folder | 0755 |
|
|
dpkg | Folder | 0755 |
|
|
emacs | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
gconf | Folder | 0755 |
|
|
ghostscript | Folder | 0755 |
|
|
gitlab-runner | Folder | 0700 |
|
|
glvnd | Folder | 0755 |
|
|
gnome | Folder | 0755 |
|
|
gnome-vfs-2.0 | Folder | 0755 |
|
|
groff | Folder | 0755 |
|
|
grub.d | Folder | 0755 |
|
|
gss | Folder | 0755 |
|
|
gtk-2.0 | Folder | 0755 |
|
|
gtk-3.0 | Folder | 0755 |
|
|
ifplugd | Folder | 0755 |
|
|
init | Folder | 0755 |
|
|
init.d | Folder | 0755 |
|
|
initramfs-tools | Folder | 0755 |
|
|
iproute2 | Folder | 0755 |
|
|
iptables | Folder | 0755 |
|
|
iscsi | Folder | 0755 |
|
|
kernel | Folder | 0755 |
|
|
landscape | Folder | 0775 |
|
|
ld.so.conf.d | Folder | 0755 |
|
|
ldap | Folder | 0755 |
|
|
letsencrypt | Folder | 0755 |
|
|
libblockdev | Folder | 0755 |
|
|
libnl-3 | Folder | 0755 |
|
|
libpaper.d | Folder | 0755 |
|
|
lighttpd | Folder | 0755 |
|
|
logcheck | Folder | 0755 |
|
|
logrotate.d | Folder | 0755 |
|
|
lvm | Folder | 0755 |
|
|
mdadm | Folder | 0755 |
|
|
modprobe.d | Folder | 0755 |
|
|
modules-load.d | Folder | 0755 |
|
|
mysql | Folder | 0755 |
|
|
netplan | Folder | 0755 |
|
|
network | Folder | 0755 |
|
|
networkd-dispatcher | Folder | 0755 |
|
|
newt | Folder | 0755 |
|
|
openal | Folder | 0755 |
|
|
openvpn | Folder | 0755 |
|
|
opt | Folder | 0755 |
|
|
pam.d | Folder | 0755 |
|
|
perl | Folder | 0755 |
|
|
php | Folder | 0755 |
|
|
php7 | Folder | 0755 |
|
|
php7 | Folder | 0755 |
|
|
phpmyadmin | Folder | 0755 |
|
|
pm | Folder | 0755 |
|
|
polkit-1 | Folder | 0755 |
|
|
pollinate | Folder | 0755 |
|
|
ppp | Folder | 0755 |
|
|
profile.d | Folder | 0755 |
|
|
pulse | Folder | 0755 |
|
|
python | Folder | 0755 |
|
|
python2.7 | Folder | 0755 |
|
|
python3 | Folder | 0755 |
|
|
python3.6 | Folder | 0755 |
|
|
rc0.d | Folder | 0755 |
|
|
rc1.d | Folder | 0755 |
|
|
rc2.d | Folder | 0755 |
|
|
rc3.d | Folder | 0755 |
|
|
rc4.d | Folder | 0755 |
|
|
rc5.d | Folder | 0755 |
|
|
rc6.d | Folder | 0755 |
|
|
rcS.d | Folder | 0755 |
|
|
rsyslog.d | Folder | 0755 |
|
|
security | Folder | 0755 |
|
|
selinux | Folder | 0755 |
|
|
sensors.d | Folder | 0755 |
|
|
skel | Folder | 0755 |
|
|
sos | Folder | 0755 |
|
|
sound | Folder | 0755 |
|
|
ssh | Folder | 0755 |
|
|
ssl | Folder | 0755 |
|
|
sudoers.d | Folder | 0750 |
|
|
sysctl.d | Folder | 0755 |
|
|
systemd | Folder | 0755 |
|
|
terminfo | Folder | 0755 |
|
|
tmpfiles.d | Folder | 0755 |
|
|
tor | Folder | 0755 |
|
|
ubuntu-advantage | Folder | 0755 |
|
|
udev | Folder | 0755 |
|
|
udisks2 | Folder | 0755 |
|
|
ufw | Folder | 0755 |
|
|
update-manager | Folder | 0755 |
|
|
update-motd.d | Folder | 0775 |
|
|
update-notifier | Folder | 0755 |
|
|
usb_modeswitch.d | Folder | 0755 |
|
|
vim | Folder | 0755 |
|
|
vmware-tools | Folder | 0755 |
|
|
wpa_supplicant | Folder | 0755 |
|
|
xdg | Folder | 0755 |
|
|
xfce4 | Folder | 0755 |
|
|
.pwd.lock | File | 0 B | 0600 |
|
adduser.conf | File | 2.96 KB | 0644 |
|
at.deny | File | 144 B | 0640 |
|
bash.bashrc | File | 2.26 KB | 0644 |
|
bash_completion | File | 45 B | 0644 |
|
bindresvport.blacklist | File | 367 B | 0644 |
|
ca-certificates.conf | File | 7.63 KB | 0644 |
|
ca-certificates.conf.dpkg-old | File | 6.93 KB | 0644 |
|
crontab | File | 722 B | 0644 |
|
crypttab | File | 54 B | 0644 |
|
danted.conf | File | 505 B | 0644 |
|
danted.conf.bak | File | 7.94 KB | 0644 |
|
danted.conf.dpkg-old | File | 645 B | 0644 |
|
debconf.conf | File | 2.9 KB | 0644 |
|
debian_version | File | 11 B | 0644 |
|
deluser.conf | File | 604 B | 0644 |
|
ec2_version | File | 35 B | 0644 |
|
environment | File | 106 B | 0644 |
|
ethertypes | File | 1.29 KB | 0644 |
|
ffserver.conf | File | 8.89 KB | 0644 |
|
fstab | File | 82 B | 0644 |
|
fuse.conf | File | 280 B | 0644 |
|
gai.conf | File | 2.52 KB | 0644 |
|
grafana-agent-back.yaml | File | 3.57 KB | 0644 |
|
grafana-agent.yaml | File | 3.01 KB | 0644 |
|
grafana-agent.yaml.save | File | 3.56 KB | 0644 |
|
group | File | 996 B | 0644 |
|
group- | File | 982 B | 0644 |
|
gshadow | File | 827 B | 0640 |
|
gshadow- | File | 817 B | 0640 |
|
hddtemp.db | File | 6.59 KB | 0644 |
|
hdparm.conf | File | 4.75 KB | 0644 |
|
host.conf | File | 92 B | 0644 |
|
hostname | File | 17 B | 0644 |
|
hosts | File | 597 B | 0644 |
|
hosts.allow | File | 411 B | 0644 |
|
hosts.deny | File | 711 B | 0644 |
|
inputrc | File | 1.71 KB | 0644 |
|
issue | File | 26 B | 0644 |
|
issue.net | File | 19 B | 0644 |
|
kernel-img.conf | File | 110 B | 0644 |
|
ld.so.cache | File | 68.43 KB | 0644 |
|
ld.so.conf | File | 34 B | 0644 |
|
legal | File | 267 B | 0644 |
|
libaudit.conf | File | 191 B | 0644 |
|
locale.alias | File | 2.92 KB | 0644 |
|
locale.gen | File | 9.17 KB | 0644 |
|
localtime | File | 127 B | 0644 |
|
login.defs | File | 10.3 KB | 0644 |
|
logrotate.conf | File | 703 B | 0644 |
|
lsb-release | File | 105 B | 0644 |
|
ltrace.conf | File | 14.52 KB | 0644 |
|
machine-id | File | 33 B | 0444 |
|
magic | File | 111 B | 0644 |
|
magic.mime | File | 111 B | 0644 |
|
mailcap | File | 7.17 KB | 0644 |
|
mailcap.order | File | 449 B | 0644 |
|
manpath.config | File | 5.05 KB | 0644 |
|
mime.types | File | 23.73 KB | 0644 |
|
mke2fs.conf | File | 812 B | 0644 |
|
modules | File | 195 B | 0644 |
|
mtab | File | 0 B | 0444 |
|
nanorc | File | 8.84 KB | 0644 |
|
networks | File | 91 B | 0644 |
|
nsswitch.conf | File | 513 B | 0644 |
|
os-release | File | 386 B | 0644 |
|
overlayroot.conf | File | 6.76 KB | 0644 |
|
overlayroot.local.conf | File | 112 B | 0644 |
|
pam.conf | File | 552 B | 0644 |
|
papersize | File | 3 B | 0644 |
|
passwd | File | 2.35 KB | 0644 |
|
passwd- | File | 2.34 KB | 0644 |
|
popularity-contest.conf | File | 0 B | 0644 |
|
profile | File | 581 B | 0644 |
|
protocols | File | 2.86 KB | 0644 |
|
resolv.conf | File | 715 B | 0644 |
|
rmt | File | 268 B | 0755 |
|
rpc | File | 887 B | 0644 |
|
rsyslog.conf | File | 1.33 KB | 0644 |
|
screenrc | File | 3.58 KB | 0644 |
|
securetty | File | 4.04 KB | 0644 |
|
sensors3.conf | File | 10.13 KB | 0644 |
|
services | File | 18.73 KB | 0644 |
|
shadow | File | 1.89 KB | 0640 |
|
shadow- | File | 1.77 KB | 0640 |
|
shells | File | 103 B | 0644 |
|
sos.conf | File | 100 B | 0644 |
|
subgid | File | 196 B | 0644 |
|
subgid- | File | 177 B | 0644 |
|
subuid | File | 196 B | 0644 |
|
subuid- | File | 177 B | 0644 |
|
sudoers | File | 755 B | 0440 |
|
sysctl.conf | File | 2.62 KB | 0644 |
|
timezone | File | 8 B | 0644 |
|
ucf.conf | File | 1.23 KB | 0644 |
|
updatedb.conf | File | 403 B | 0644 |
|
usb_modeswitch.conf | File | 1.49 KB | 0644 |
|
vdpau_wrapper.cfg | File | 51 B | 0644 |
|
vtrgb | File | 158 B | 0644 |
|
wgetrc | File | 4.83 KB | 0644 |
|
zsh_command_not_found | File | 477 B | 0644 |
|