Proxy server over Wireguard

Hello,

I have OpenWRT on the router, with Wireguard client running there.

Is it possible to setup proxy server on the router, so that everyone in the local network will use proxy, which will go through wireguard?

So I want to make this:
Clients from 192.168.1.* -> Proxy server on the router 192.168.1.1 -> Proxy going through Wireguard interface wg0.

1 Like

Yes, see: https://openwrt.org/docs/guide-user/services/proxy/overview

Yes, but you don't need a proxy to route LAN traffic to the VPN.

I see it, as an easy way to route through wireguard in specific application.

2 Likes

Can't see options which proxy package to look for, and what configuration options to use...

srelay -i 192.168.1.1:8899 -J wg0 -r -s -v

Something like this?

1 Like

Yes, but srelay seems to be abandoned/dropped, so you should probably use something else.

You can use dropbear as a socks proxy, so no need to install anything extra. However it will be cpu intensive.
It would be better to just do Policy Based Routing. There are 3 options for that:

  1. mwan3 package
  2. pbr package
  3. a set of rules/routes for each internet connection.
2 Likes