Reverse Wireguard Tunnel

Setup: I have two routers in two different countries. Router S is in the Kingdom of Freetopia and router C is in Cgnatistan.
Goal: I want to traffic internet from each router through the other.

Router S is a gl.inet router and Router C is not. S is configured as a wireguard server and C is connected to it using the client config.

That side of the connection is working fine. I'd like to know if anyone has any ideas on how to configure S to route through C using the existing wg connection from C.

Sorry I did not quite understand your goal or demand.

S: GL router as VPN server.
C: Others router, as VPN client.

My understand is that, if you want to the traffic from the router S to the router C, right?
It cannot. VPN network technical principle. All VPN traffic which wants to access the Internet, it must go out from VPN server. Or if go out from client, how to make sure the cyber security and protect the real IP, etc?

Here's a diagram of what I'm trying to achieve:

From this program. Worth a read. In the diagram "VPS" would be my S and "Breakout Box" would be C.

Every VPN can be used in both directions, just a question of ...

  • Routing rules
  • Firewall rules
  • NAT rules

Generally speaking, it should be possible, but I don't really know how to do that with WG.

2 Likes

Update: this idea can achieve.

Simply say, for server: all traffic forward to the someone client, for client: all traffic from the wgclient forward to its WAN. It needs to some routing rules.