8000 GitHub - fopiko/danted: Fast script for installing & configing Danted--Socks5 Proxy Server.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ danted Public
forked from Lozy/danted

Fast script for installing & configing Danted--Socks5 Proxy Server.

Notifications You must be signed in to change notification settings

fopiko/danted

{"props":{"initialPayload":{"allShortcutsEnabled":false,"path":"/","repo":{"id":313276531,"defaultBranch":"master","name":"danted","ownerLogin":"fopiko","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-11-16T11:12:53.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/46435801?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1679126212.687872","canEdit":false,"refType":"branch","currentOid":"0c29075b9605823e966c9bf9987399323da6727f"},"tree":{"items":[{"name":"docker-1.4.2","path":"docker-1.4.2","contentType":"directory"},{"name":"docker","path":"docker","contentType":"directory"},{"name":"script","path":"script","contentType":"directory"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"README_CN.md","path":"README_CN.md","contentType":"file"},{"name":"install.sh","path":"install.sh","contentType":"file"},{"name":"install_centos.sh","path":"install_centos.sh","contentType":"file"},{"name":"install_debian.sh","path":"install_debian.sh","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":null,"totalCount":8,"showBranchInfobar":true},"fileTree":null,"fileTreeProcessingTime":null,"foldersToFetch":[],"treeExpanded":false,"symbolsExpanded":false,"isOverview":true,"overview":{"banners":{"shouldRecommendReadme":false,"isPersonalRepo":false,"showUseActionBanner":false,"actionSlug":null,"actionId":null,"showProtectBranchBanner":false,"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_repo","releasePath":"/fopiko/danted/releases/new?marketplace=true","showPublishActionBanner":false},"interactionLimitBanner":null,"showInvitationBanner":false,"inviterName":null,"actionsMigrationBannerInfo":{"releaseTags":[],"showImmutableActionsMigrationBanner":false,"initialMigrationStatus":null}},"codeButton":{"contactPath":"/contact","isEnterprise":false,"local":{"protocolInfo":{"httpAvailable":true,"sshAvailable":null,"httpUrl":"https://github.com/fopiko/danted.git","showCloneWarning":null,"sshUrl":null,"sshCertificatesRequired":null,"sshCertificatesAvailable":null,"ghCliUrl":"gh repo clone fopiko/danted","defaultProtocol":"http","newSshKeyUrl":"/settings/ssh/new","setProtocolPath":"/users/set_protocol"},"platformInfo":{"cloneUrl":"https://desktop.github.com","showVisualStudioCloneButton":false,"visualStudioCloneUrl":"https://windows.github.com","showXcodeCloneButton":false,"xcodeCloneUrl":"xcode://clone?repo=https%3A%2F%2Fgithub.com%2Ffopiko%2Fdanted","zipballUrl":"/fopiko/danted/archive/refs/heads/master.zip"}},"newCodespacePath":"/codespaces/new?hide_repo_select=true\u0026repo=313276531"},"popovers":{"rename":null,"renamedParentRepo":null},"commitCount":"142","overviewFiles":[{"displayName":"README.md","repoName":"danted","refName":"master","path":"README.md","preferredFileType":"readme","tabName":"README","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSockd\u003c/h1\u003e\u003ca id=\"user-content-sockd\" class=\"anchor\" aria-label=\"Permalink: Sockd\" href=\"#sockd\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDante socks5 server (v1.3.2/v1.4.2) auto-install and management script\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAbout\u003c/h2\u003e\u003ca id=\"user-content-about\" class=\"anchor\" aria-label=\"Permalink: About\" href=\"#about\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo build a socks5 server, we have lots of open-source programs to reach that, \u003ca href=\"https://www.inet.no/dante/\" rel=\"nofollow\"\u003eDante\u003c/a\u003e is one of them.\nI have been using Dante for years and starting to write this auto-install and management script two years ago.\nThis is the second update to match the systemd and new OS release like Debian 8 , CentOS 7.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eComparing with the apt-get or building from source manually, this script will benefit you bellow\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eAuto-recognize, detect the machine's system automatically and compile from source code.\u003c/li\u003e\n\u003cli\u003eAuto-config, check the system's network or read from argument to auto-generate config file.\u003c/li\u003e\n\u003cli\u003eSame-rotation, in multi-ipaddr system. It works like when using different ip address to connect socks5, your external ip address will be different. That's the main reason why I using Dante for years.\u003c/li\u003e\n\u003cli\u003eMulti-authorization, you can configure authorization by pam, system or using whitelist.\u003c/li\u003e\n\u003cli\u003eDocker support [New]\u003c/li\u003e\n\u003cli\u003eSupport Dante Latest version 1.4.2 [New]\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstall by Docker\u003c/h2\u003e\u003ca id=\"user-content-install-by-docker\" class=\"anchor\" aria-label=\"Permalink: Install by Docker\" href=\"#install-by-docker\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDocker Run\u003c/h3\u003e\u003ca id=\"user-content-docker-run\" class=\"anchor\" aria-label=\"Permalink: Docker Run\" href=\"#docker-run\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# sockd.passwd is a `htpasswd` file contains socks5 auth user/password. \ndocker run -d \\\n --name sockd \\\n --publish 2020:2020 \\\n --volume sockd.passwd:/home/danted/conf/sockd.passwd \\\n lozyme/sockd\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e sockd.passwd is a `htpasswd` file contains socks5 auth user/password. \u003c/span\u003e\ndocker run -d \\\n --name sockd \\\n --publish 2020:2020 \\\n --volume sockd.passwd:/home/danted/conf/sockd.passwd \\\n lozyme/sockd\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDocker Compose\u003c/h3\u003e\u003ca id=\"user-content-docker-compose\" class=\"anchor\" aria-label=\"Permalink: Docker Compose\" href=\"#docker-compose\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGenerate compose\u003c/h4\u003e\u003ca id=\"user-content-generate-compose\" class=\"anchor\" aria-label=\"Permalink: Generate compose\" href=\"#generate-compose\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"#\n# wget https://raw.githubusercontent.com/Lozy/danted/dev/docker/docker-compose.yaml\n#\nversion: '3'\n\nservices:\n\n sockd:\n image: lozyme/sockd\n restart: always\n ports:\n - 2020:2020\n volumes:\n - sockd.passwd:/home/danted/conf/sockd.passwd\n # - sockd.conf:/home/danted/conf/sockd.conf\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e wget https://raw.githubusercontent.com/Lozy/danted/dev/docker/docker-compose.yaml\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e\u003c/span\u003e\n\u003cspan class=\"pl-ent\"\u003eversion\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003e3\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-ent\"\u003eservices\u003c/span\u003e:\n\n \u003cspan class=\"pl-ent\"\u003esockd\u003c/span\u003e:\n \u003cspan class=\"pl-ent\"\u003eimage\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003elozyme/sockd\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003erestart\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003ealways\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003eports\u003c/span\u003e:\n - \u003cspan class=\"pl-c1\"\u003e2020:2020\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003evolumes\u003c/span\u003e:\n - \u003cspan class=\"pl-s\"\u003esockd.passwd:/home/danted/conf/sockd.passwd\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e - sockd.conf:/home/danted/conf/sockd.conf\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRun\u003c/h4\u003e\u003ca id=\"user-content-run\" class=\"anchor\" aria-label=\"Permalink: Run\" href=\"#run\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker-compose up -d\"\u003e\u003cpre\u003edocker-compose up -d\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCheck\u003c/h4\u003e\u003ca id=\"user-content-check\" class=\"anchor\" aria-label=\"Permalink: Check\" href=\"#check\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"ss -lnp | grep 2020\"\u003e\u003cpre\u003ess -lnp \u003cspan class=\"pl-k\"\u003e|\u003c/span\u003e grep 2020\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUser Show/Add/Modify/Delete\u003c/h4\u003e\u003ca id=\"user-content-user-showaddmodifydelete\" class=\"anchor\" aria-label=\"Permalink: User Show/Add/Modify/Delete\" href=\"#user-showaddmodifydelete\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"[Show] $docker exec docker_sockd_1 script/pam show\n[Add/Modify] $docker exec docker_sockd_1 script/pam add USER PASSWORD\n[Delete] $docker exec docker_sockd_1 script/pam del USER\"\u003e\u003cpre\u003e[Show] \u003cspan class=\"pl-smi\"\u003e$docker\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eexec\u003c/span\u003e docker_sockd_1 script/pam show\n[Add/Modify] \u003cspan class=\"pl-smi\"\u003e$docker\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eexec\u003c/span\u003e docker_sockd_1 script/pam add USER PASSWORD\n[Delete] \u003cspan class=\"pl-smi\"\u003e$docker\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eexec\u003c/span\u003e docker_sockd_1 script/pam del USER\u003c/pre\u003e\u003c/div\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eYou should run bellow to change default password\u003c/p\u003e\n\u003cp dir=\"auto\"\u003edocker exec docker_sockd_1 script/pam add sockd sockd\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eVerify\u003c/h4\u003e\u003ca id=\"user-content-verify\" class=\"anchor\" aria-label=\"Permalink: Verify\" href=\"#verify\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl https://ifconfig.co --socks5 127.0.0.1:2020 --proxy-user sockd:sockd\"\u003e\u003cpre\u003ecurl https://ifconfig.co --socks5 127.0.0.1:2020 --proxy-user sockd:sockd\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstall by Script\u003c/h2\u003e\u003ca id=\"user-content-install-by-script\" class=\"anchor\" aria-label=\"Permalink: Install by Script\" href=\"#install-by-script\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh \nbash install.sh\n\n# run with options: bash install.sh option1 option2\nbash install.sh --ip=\u0026quot;A.A.A.A:B.B.B.B\u0026quot; --port=2016 --user=sockd --passwd=sockd --whitelist=\u0026quot;X.X.X.X/32\u0026quot;\n\"\u003e\u003cpre\u003ewget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh \nbash install.sh\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e run with options: bash install.sh option1 option2\u003c/span\u003e\nbash install.sh --ip=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eA.A.A.A:B.B.B.B\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --port=2016 --user=sockd --passwd=sockd --whitelist=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eX.X.X.X/32\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\u003c/pre\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003cem\u003eif you want to uninstall, using this command\u003c/em\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"bash install.sh --uninstall\"\u003e\u003cpre\u003ebash install.sh --uninstall\u003c/pre\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003cem\u003eif you want to add user\u003c/em\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"/etc/init.d/sockd adduser USERNAME PASSWORD\"\u003e\u003cpre\u003e/etc/init.d/sockd adduser USERNAME PASSWORD\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOptions\u003c/h2\u003e\u003ca id=\"user-content-options\" class=\"anchor\" aria-label=\"Permalink: Options\" href=\"#options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eLong Option\u003c/th\u003e\n\u003cth align=\"left\"\u003eShort Option\u003c/th\u003e\n\u003cth\u003eValue refer\u003c/th\u003e\n\u003cth\u003edescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--ip=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003eip address list (a.a.a.a:b.b.b.b) *#change ';' to ':' *\u003c/td\u003e\n\u003ctd\u003eSocks5 Server Ip address\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--port=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003eDefault: 2016\u003c/td\u003e\n\u003ctd\u003eport for dante socks5 server\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--version=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003eDefault: 1.3.2\u003c/td\u003e\n\u003ctd\u003edante server version, latest is 1.4.2\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--user=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003ePam-Auth Username\u003c/td\u003e\n\u003ctd\u003eSocks5 Auth user\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--passwd=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003ePam-Auth Password\u003c/td\u003e\n\u003ctd\u003eSocks5 Auth passwd\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--whitelist=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003ewhitelist ip range (a.a.a.a/32:b.b.b.b/32)\u003c/td\u003e\n\u003ctd\u003eSocks5 Auth IP list\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--whitelist-url=\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003eonline white list file (url)\u003c/td\u003e\n\u003ctd\u003eSocks Auth whitelist http online\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--from-package\u003c/td\u003e\n\u003ctd align=\"left\"\u003e-p\u003c/td\u003e\n\u003ctd\u003e--\u003c/td\u003e\n\u003ctd\u003eInstall package from Bin package\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--update-whitelist\u003c/td\u003e\n\u003ctd align=\"left\"\u003e-u\u003c/td\u003e\n\u003ctd\u003e--\u003c/td\u003e\n\u003ctd\u003eupdate white list\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--force\u003c/td\u003e\n\u003ctd align=\"left\"\u003e-f\u003c/td\u003e\n\u003ctd\u003e--\u003c/td\u003e\n\u003ctd\u003eforce install sockd\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e--help\u003c/td\u003e\n\u003ctd align=\"left\"\u003e-h\u003c/td\u003e\n\u003ctd\u003e--\u003c/td\u003e\n\u003ctd\u003eprint help info\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eManagement\u003c/h2\u003e\u003ca id=\"user-content-management\" class=\"anchor\" aria-label=\"Permalink: Management\" href=\"#management\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003ecommand\u003c/th\u003e\n\u003cth align=\"left\"\u003eoption\u003c/th\u003e\n\u003cth\u003edescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd start\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd start\u003c/td\u003e\n\u003ctd\u003estart socks5 server daemon\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd stop\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd stop\u003c/td\u003e\n\u003ctd\u003estop socks5 server daemon\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd restart\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd restart\u003c/td\u003e\n\u003ctd\u003erestart socks5 server daemon\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd reload\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd reload\u003c/td\u003e\n\u003ctd\u003ereload socks5 server daemon\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd status\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003c/td\u003e\n\u003ctd\u003esystemd process status\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd state\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd state\u003c/td\u003e\n\u003ctd\u003erunning state\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd tail\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd tail\u003c/td\u003e\n\u003ctd\u003esock log tail\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd adduser\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd adduser\u003c/td\u003e\n\u003ctd\u003eadd pam-auth user: service sockd adduser NAME PASSWORD\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eservice sockd deluser\u003c/td\u003e\n\u003ctd align=\"left\"\u003e/etc/init.d/sockd deluser\u003c/td\u003e\n\u003ctd\u003edelete pam-auth user: service sockd deluser NAME\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTest Pass\u003c/h2\u003e\u003ca id=\"user-content-test-pass\" class=\"anchor\" aria-label=\"Permalink: Test Pass\" href=\"#test-pass\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eOS release\u003c/th\u003e\n\u003cth align=\"left\"\u003ePlatform\u003c/th\u003e\n\u003cth\u003eProvider\u003c/th\u003e\n\u003cth\u003eResult\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eDebian GNU/Linux 8 (jessie)\u003c/td\u003e\n\u003ctd align=\"left\"\u003ex86_64\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eDebian GNU/Linux 7 (wheezy)\u003c/td\u003e\n\u003ctd align=\"left\"\u003ex86_64\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eDebian GNU/Linux 7 (wheezy)\u003c/td\u003e\n\u003ctd align=\"left\"\u003ei686\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eUbuntu 16.10 (Yakkety Yak)\u003c/td\u003e\n\u003ctd align=\"left\"\u003ex86_64\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eUbuntu 14.04.5 LTS\u003c/td\u003e\n\u003ctd align=\"left\"\u003ei686\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eCentOS Linux 7 (Core)\u003c/td\u003e\n\u003ctd align=\"left\"\u003ex86_64\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eCentOS Linux 6\u003c/td\u003e\n\u003ctd align=\"left\"\u003ex86_64\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\ 8000 n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003eCentOS Linux 6\u003c/td\u003e\n\u003ctd align=\"left\"\u003ei686\u003c/td\u003e\n\u003ctd\u003evultr\u003c/td\u003e\n\u003ctd\u003epass\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003c/article\u003e","loaded":true,"timedOut":false,"errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Sockd","anchor":"sockd","htmlText":"Sockd"},{"level":2,"text":"About","anchor":"about","htmlText":"About"},{"level":2,"text":"Install by Docker","anchor":"install-by-docker","htmlText":"Install by Docker"},{"level":3,"text":"Docker Run","anchor":"docker-run","htmlText":"Docker Run"},{"level":3,"text":"Docker Compose","anchor":"docker-compose","htmlText":"Docker Compose"},{"level":4,"text":"Generate compose","anchor":"generate-compose","htmlText":"Generate compose"},{"level":4,"text":"Run","anchor":"run","htmlText":"Run"},{"level":4,"text":"Check","anchor":"check","htmlText":"Check"},{"level":4,"text":"User Show/Add/Modify/Delete","anchor":"user-showaddmodifydelete","htmlText":"User Show/Add/Modify/Delete"},{"level":4,"text":"Verify","anchor":"verify","htmlText":"Verify"},{"level":2,"text":"Install by Script","anchor":"install-by-script","htmlText":"Install by Script"},{"level":2,"text":"Options","anchor":"options","htmlText":"Options"},{"level":2,"text":"Management","anchor":"management","htmlText":"Management"},{"level":2,"text":"Test Pass","anchor":"test-pass","htmlText":"Test Pass"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Ffopiko%2Fdanted"}}],"overviewFilesProcessingTime":0}},"appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-2e7f7047116e.js","githubDevUrl":null,"enabled_features":{"copilot_workspace":null,"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}}
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sockd

Dante socks5 server (v1.3.2/v1.4.2) auto-install and management script

About

To build a socks5 server, we have lots of open-source programs to reach that, Dante is one of them. I have been using Dante for years and starting to write this auto-install and management script two years ago. This is the second update to match the systemd and new OS release like Debian 8 , CentOS 7.

Comparing with the apt-get or building from source manually, this script will benefit you bellow

  • Auto-recognize, detect the machine's system automatically and compile from source code.
  • Auto-config, check the system's network or read from argument to auto-generate config file.
  • Same-rotation, in multi-ipaddr system. It works like when using different ip address to connect socks5, your external ip address will be different. That's the main reason why I using Dante for years.
  • Multi-authorization, you can configure authorization by pam, system or using whitelist.
  • Docker support [New]
  • Support Dante Latest version 1.4.2 [New]

Install by Docker

Docker Run

# sockd.passwd is a `htpasswd` file contains socks5 auth user/password. 
docker run -d \
    --name sockd \
    --publish 2020:2020 \
    --volume sockd.passwd:/home/danted/conf/sockd.passwd \
    lozyme/sockd

Docker Compose

Generate compose

#
# wget https://raw.githubusercontent.com/Lozy/danted/dev/docker/docker-compose.yaml
#
version: '3'

services:

  sockd:
    image: lozyme/sockd
    restart: always
    ports:
      - 2020:2020
    volumes:
      - sockd.passwd:/home/danted/conf/sockd.passwd
      # - sockd.conf:/home/danted/conf/sockd.conf

Run

docker-compose up -d

Check

ss -lnp | grep 2020

User Show/Add/Modify/Delete

[Show]          $docker exec docker_sockd_1 script/pam show
[Add/Modify]    $docker exec docker_sockd_1 script/pam add USER PASSWORD
[Delete]        $docker exec docker_sockd_1 script/pam del USER

You should run bellow to change default password

docker exec docker_sockd_1 script/pam add sockd sockd

Verify

curl https://ifconfig.co --socks5 127.0.0.1:2020 --proxy-user sockd:sockd

Install by Script

wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh 
bash install.sh

# run with options: bash install.sh option1 option2
bash install.sh --ip="A.A.A.A:B.B.B.B" --port=2016 --user=sockd --passwd=sockd --whitelist="X.X.X.X/32"
  • if you want to uninstall, using this command
bash install.sh --uninstall
  • if you want to add user
/etc/init.d/sockd adduser USERNAME PASSWORD

Options

Long Option Short Option Value refer description
--ip= ip address list (a.a.a.a:b.b.b.b) *#change ';' to ':' * Socks5 Server Ip address
--port= Default: 2016 port for dante socks5 server
--version= Default: 1.3.2 dante server version, latest is 1.4.2
--user= Pam-Auth Username Socks5 Auth user
--passwd= Pam-Auth Password Socks5 Auth passwd
--whitelist= whitelist ip range (a.a.a.a/32:b.b.b.b/32) Socks5 Auth IP list
--whitelist-url= online white list file (url) Socks Auth whitelist http online
--from-package -p -- Install package from Bin package
--update-whitelist -u -- update white list
--force -f -- force install sockd
--help -h -- print help info

Management

command option description
service sockd start /etc/init.d/sockd start start socks5 server daemon
service sockd stop /etc/init.d/sockd stop stop socks5 server daemon
service sockd restart /etc/init.d/sockd restart restart socks5 server daemon
service sockd reload /etc/init.d/sockd reload reload socks5 server daemon
service sockd status systemd process status
service sockd state /etc/init.d/sockd state running state
service sockd tail /etc/init.d/sockd tail sock log tail
service sockd adduser /etc/init.d/sockd adduser add pam-auth user: service sockd adduser NAME PASSWORD
service sockd deluser /etc/init.d/sockd deluser delete pam-auth user: service sockd deluser NAME

Test Pass

OS release Platform Provider Result
Debian GNU/Linux 8 (jessie) x86_64 vultr pass
Debian GNU/Linux 7 (wheezy) x86_64 vultr pass
Debian GNU/Linux 7 (wheezy) i686 vultr pass
Ubuntu 16.10 (Yakkety Yak) x86_64 vultr pass
Ubuntu 14.04.5 LTS i686 vultr pass
CentOS Linux 7 (Core) x86_64 vultr pass
CentOS Linux 6 x86_64 vultr pass
CentOS Linux 6 i686 vultr pass

About

Fast script for installing & configing Danted--Socks5 Proxy Server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Roff 52.1%
  • Shell 40.3%
  • C 5.5%
  • Dockerfile 2.1%
0