I have configured a Openvpn server using ocserv according to this article. Now I want to force the traffic of ocserv to go through Tor Network:

Clients => Openconnect Server => Tor => Internet.

I have installed tor also.
When I run sudo ocserv vpn server starts successfully. but when I try sudo torify ocserv it gives me following error:

listen() failed: Operation not permitted
Cannot listen to specified ports

What's the problem and how can I fix it?

More information

The listen port of server is 4443.
Without using tor, it works perfectly and I can connect to it without any problem.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.