OpenVPN Server as Tor Hidden Service

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
LookingForAnswers
OpenVpn Newbie
Posts: 4
Joined: Sat Feb 27, 2021 6:46 pm

OpenVPN Server as Tor Hidden Service

Post by LookingForAnswers » Sat Feb 27, 2021 7:03 pm

Looking to configure OpenVPN Server as Tor hidden service.

OpenVPN is listening at 10.8.0.0:1194
Netstat shows listening at 0.0.0.0:1194

I created a tor hidden service like so
these are the lines that I added in my torrc file.

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 1194 127.0.0.1:1194

Tor shows running at 127.0.0.1:9050 in netstat.
Also I tested with 'curl' and it shows that Tor is up and running.

I restarted tor and go the xxx.onion hostname.

I used that hostname in my openvpn client config like so

Client Config

client
dev tun
proto tcp-client
resolv-retry 60
nobind
persist-key
persist-tun
remote-cert-tls server
ca <redacted>.crt
cert <redacted>.crt
key <redacted>.key
comp-lzo
verb 3
reneg-sec 3600
<connection>
remote xxx.onion 1194
socks-proxy 127.0.0.1 9150
socks-proxy-retry
</connection>



Loaded this conf into OpenVPN Connect client on Windows.
But I get error:

Code: Select all

Transport Error: DNS resolve error on xxx.onion for TCPv4 session. The requested name is a valid but no data of the requested type was found
Any idea of what the issue could be?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN Server as Tor Hidden Service

Post by TinCanTech » Sat Feb 27, 2021 7:07 pm

Invalid host name.

LookingForAnswers
OpenVpn Newbie
Posts: 4
Joined: Sat Feb 27, 2021 6:46 pm

Re: OpenVPN Server as Tor Hidden Service

Post by LookingForAnswers » Sat Feb 27, 2021 7:09 pm

TinCanTech wrote:
Sat Feb 27, 2021 7:07 pm
Invalid host name.
Is the "xxx.onion" hostname invalid. I rechecked it with the name that was generated by tor, and it matches?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN Server as Tor Hidden Service

Post by TinCanTech » Sat Feb 27, 2021 7:11 pm

Openvpn does not use TOR ..

LookingForAnswers
OpenVpn Newbie
Posts: 4
Joined: Sat Feb 27, 2021 6:46 pm

Re: OpenVPN Server as Tor Hidden Service

Post by LookingForAnswers » Sat Feb 27, 2021 7:14 pm

TinCanTech wrote:
Sat Feb 27, 2021 7:11 pm
Openvpn does not use TOR ..
I was following https://forums.whonix.org/t/how-to-setu ... rvice/3410

The guy seems to have got it to work...

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN Server as Tor Hidden Service

Post by TinCanTech » Sat Feb 27, 2021 7:26 pm

Please read the Official Openvpn Howto

LookingForAnswers
OpenVpn Newbie
Posts: 4
Joined: Sat Feb 27, 2021 6:46 pm

Re: OpenVPN Server as Tor Hidden Service

Post by LookingForAnswers » Sat Feb 27, 2021 7:27 pm

TinCanTech wrote:
Sat Feb 27, 2021 7:26 pm
Please read the Official Openvpn Howto
Please give me a clue!

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN Server as Tor Hidden Service

Post by TinCanTech » Sat Feb 27, 2021 7:44 pm

Try to ping your chosen host name and figure it out, this is how you learn ..

Post Reply