searxng / searxng-docker

The docker-compose files for setting up a SearXNG instance with docker.
GNU Affero General Public License v3.0
1.01k stars 247 forks source link

Searxng (docker)+VPN (host) #190

Closed wastlnd closed 8 months ago

wastlnd commented 8 months ago

I want to run a locally self hosted private docker instance. My host computer uses a VPN that simply works with a OpenVPN configuration file. The problem is that my SearxNG searches still seem to come from my real local IP, while normal browsing comes from my VPN location. What could I do to route my queries through the host VPN? I tried to edit the settings.yml file copying the VPN location's IP in the outgoing -->proxies section (http://:8080) but I get no connection at all.

wastlnd commented 8 months ago

Update: when I type "ip" in the search bar Searxng returns the IP that my VPN is connected too. Very odd, because my search results are very fast, as fast as when I have no VPN in my host computer, and no engine is still blocking me. Is it technically possible that though the container is tunneling its traffic through the VPN searxng is still sending queries from my private IP?

unixfox commented 8 months ago

officially we only support socks, HTTP, HTTPS proxies. if your VPN provider does not support these types of proxies, for the official support you are out of luck.

and then there are other ways to achieve what you want with a vpn. some uses gluetun, other use methods to pass the traffic to a container that host openvpn client.

I'm going to close this issue because officially we do not support VPN solutions for tunneling the traffic.

You are free to do any search online for other solutions, search in the main issue tracker https://github.com/searxng/searxng/issues or github discussion https://github.com/searxng/searxng/discussions or join our matrix room for asking for help: https://matrix.to/#/#searxng:matrix.org