From a6f731cc5fb7e2e13123df863b5e2e18c93dfd8f Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 27 Feb 2019 16:42:21 +0100 Subject: [PATCH] Tor: Configure wget, curl, youtube-dl instead of wrapping them --- .config/youtube-dl/config | 2 ++ .curlrc | 2 ++ .local/bin/curltor | 3 --- .local/bin/wgettor | 3 --- .local/bin/ytdl | 3 --- .wgetrc | 4 ++++ 6 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .config/youtube-dl/config create mode 100644 .curlrc delete mode 100755 .local/bin/curltor delete mode 100755 .local/bin/wgettor delete mode 100755 .local/bin/ytdl create mode 100644 .wgetrc diff --git a/.config/youtube-dl/config b/.config/youtube-dl/config new file mode 100644 index 00000000..bb06978c --- /dev/null +++ b/.config/youtube-dl/config @@ -0,0 +1,2 @@ +# Use Tor: +--proxy socks5://127.0.0.1:9050 \ No newline at end of file diff --git a/.curlrc b/.curlrc new file mode 100644 index 00000000..c8bf2909 --- /dev/null +++ b/.curlrc @@ -0,0 +1,2 @@ +## Use Tor: +socks5 = localhost:9050 diff --git a/.local/bin/curltor b/.local/bin/curltor deleted file mode 100755 index 7b138a7b..00000000 --- a/.local/bin/curltor +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -curl --socks5 localhost:9050 -H "User-Agent: " "$@" diff --git a/.local/bin/wgettor b/.local/bin/wgettor deleted file mode 100755 index 8597e03e..00000000 --- a/.local/bin/wgettor +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -torsocks wget "$@" diff --git a/.local/bin/ytdl b/.local/bin/ytdl deleted file mode 100755 index 50869d2e..00000000 --- a/.local/bin/ytdl +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -youtube-dl --proxy socks5://127.0.0.1:9050 "$@" diff --git a/.wgetrc b/.wgetrc new file mode 100644 index 00000000..c4d38aa8 --- /dev/null +++ b/.wgetrc @@ -0,0 +1,4 @@ +http_proxy = http://localhost:8118 +https_proxy = http://localhost:8118 +ftp_proxy = http://localhost:8118 +use_proxy = on \ No newline at end of file