Ruijie Community

Title: How to configure Wireguard VPN on Ruijie Reyee EG [Print this page]

Author: xiangwei.yao@ru    Time: 2025-4-15 18:04
Title: How to configure Wireguard VPN on Ruijie Reyee EG
Wireguard VPN has a better forwarding performance than OpenVPN, as it works on L3, and for compatibility, it is much more better than IPsec or L2TP over IPsec(which experience many issues with Windows)

Reyee EG router in R340 has introduced wireguard, below is the configuration step, currectly it recommended to configure it through eweb:

1. Go to the device eweb, click on VPN>Wireguard VPN> Wireguard VPN server> Add


2. Configure the server parameters of the VPN click Add for adding some Wireguard clients



3. For add a user, input the username and user interface IP, and click



4. After adding the client, click OK for save the configuration




5. Download the wireguard client and import the configuration file to connect to the server.




note: if you experience that you can connect the VPN but no traffic is received, try to delete the configuration file 0.0.0.0/0 and check if it works:







Author: ywlee@ales.my    Time: 2025-6-6 02:44
thank you , can I the wireguard file for another like mobile phone with using Wireguard Client software installed?

Thank you

Author: tenny.bagindo@y    Time: 2025-7-14 03:14
The issue, if I set wireguard client on eg and would like to specified src address traffic routed via wireguard interface with PBR.
The traffic will not goes over wg.
But if I add 0.0.0.0/0 on wireguard client configuration, all traffic will goes over wg.

How do I solve this issue. It's look like the wg client config will overwrite global routing table

Author: v-yuchen3@ruiji    Time: 2025-7-14 12:57
Tenny Bagindo replied at 2025-7-14 03:14
The issue, if I set wireguard client on eg and would like to specified src address traffic routed vi ...

Hi Sir,
Can you specify the specific model of the device? Because some devices do not support certain functions.

Author: tenny.bagindo@y    Time: 2025-7-14 15:44
GTAC-Morning replied at 2025-7-14 12:57
Hi Sir,
Can you specify the specific model of the device? Because some devices do not support cer ...

Dear Morning,
I use following router, the wireguard work perfectly, the only issue, I could not manage custom routing, if I setup AllowedIPs on wireguard client configuration, that effect the whole network.

EG305GH-P-E
Software Version: ReyeeOS 2.360.0.1709

Hardware Version: 1.60



Best Regards


Tenny

Author: v-yuchen3@ruiji    Time: 2025-7-14 21:31
Tenny Bagindo replied at 2025-7-14 15:44
Dear Morning,
I use following router, the wireguard work perfectly, the only issue, I could not ma ...

Hi sir,
can you tell me what the computer route?
you can use cmd and print: route print
and send it to me
last send me your wireguard config file

Author: tenny.bagindo@y    Time: 2025-7-16 15:50
GTAC-Morning replied at 2025-7-14 21:31
Hi sir,
can you tell me what the computer route?
you can use cmd and print: route print

Dear Morning,
I use smartphone since my PC was broken. And I currently has no access to any PC.

The point is, if I add 0.0.0.0/0 to AllowedIP on wireguard client configuration on rg-eg router. The whole network traffic will goes over wireguard interface.

I just want to route particular traffic such as url filter hence PBR.

For workaround, I set url filter on rg-eg PBR menu to route match url over WAN1 of Rg-eg.

Then ui setup mikrotik router as client of ruijie router to have wireguard connection to my VPN server. And connect the LAN interface of mikrotik to back to ruijie eg WAN1 port. And route all traffic coming from ruijie-WAN1 over wireguard interface of mikrotik router.

Yes it is not ideal but if you have such as routing table, routing rules, that we could configure will be nice. I don't have to setup another router only for this purpose.

Best regards
Tenny

Author: v-yuchen3@ruiji    Time: 2025-7-18 00:32
Tenny Bagindo replied at 2025-7-16 15:50
Dear Morning,
I use smartphone since my PC was broken. And I currently has no access to any PC.

Hi sir,
pls send me your wireguard config file.this is must.


Author: tenny.bagindo@y    Time: 2025-8-3 20:13
GTAC-Morning replied at 2025-7-18 00:32
Hi sir,
pls send me your wireguard config file.this is must.

This is my wireguard config, when i add 0.0.0.0/0 in allowedIPs, the whole traffic will route via wireguard.

I just want to use specified traffic route via this interface for example hence PBR url routing.










Welcome to Ruijie Community (https://community.ruijie.com/) Powered by Discuz! X3.2