From 5ca83fa9b8c59e5553298dedb092796cb57af8b6 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 7 Jul 2019 02:27:44 +0200 Subject: [PATCH] add the demo config --- content/post/proxy-clearnet-2-onion.md | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 content/post/proxy-clearnet-2-onion.md diff --git a/content/post/proxy-clearnet-2-onion.md b/content/post/proxy-clearnet-2-onion.md new file mode 100644 index 0000000..13ebc4f --- /dev/null +++ b/content/post/proxy-clearnet-2-onion.md @@ -0,0 +1,35 @@ ++++ +title = "Clearnet -> Onion Website" +date = 2019-07-07T02:23:49+02:00 +author = "MH" +cover = "" +tags = ["Tor", "Setup", "Concept", "Proxy"] +description = "Why not have a hidden service on a normal Site?" +showFullContent = false +draft = true ++++ + +``` +root@wwwtest2tor2:/opt# grep '' * +nginx_site.conf:server { +nginx_site.conf: listen 80 default_server; +nginx_site.conf: listen [::]:80 default_server; +nginx_site.conf: root /var/www/html; +nginx_site.conf: server_name _; +nginx_site.conf: location / { +nginx_site.conf: +nginx_site.conf: proxy_pass http://127.0.0.1:81; +nginx_site.conf: proxy_set_header Host "mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion"; +nginx_site.conf: proxy_set_header Accept-Encoding ""; +nginx_site.conf: proxy_set_header Via "$host"; +nginx_site.conf: subs_filter 'mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion' '10.40.8.206'; +nginx_site.conf: +nginx_site.conf: } +nginx_site.conf:} +proxy_http_2_socks5.sh:#!/bin/bash +proxy_http_2_socks5.sh:export hiddenservice="mxoal6ts2kwnxkpbxuc6ls5c43jnaefpdjx27tnjncgmobnec2untnad.onion:80" +proxy_http_2_socks5.sh:socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:127.0.0.1:"$hiddenservice",socksport=9050 & +resolv.conf:nameserver 127.0.0.1 +torrc:DNSPort 53 +torrc:AutomapHostsOnResolve 1 +```