Ruijie Community

Title: VPN Vlan internet for single Lan port on EG210G [Print this page]

Author: Steve@supportos    Time: 2022-10-23 15:33
Title: VPN Vlan internet for single Lan port on EG210G
HI Hope someone can help

I have 2 x RG-EG210G-P routers at two sites
Site A - 192.168.5.X connected to internet PPOE and setup as VPN Server - All works well
Site B - 192.168.110.X connected to internet Via Fixed IP
At Site B I have configured a Vlan 88 on IP Range 192.168.188.X with DHCP and created a Wireless SSID SS88 and dedicated LAN port 7 to Vlan 88
If I connect a computer VIA network port Lan 7 or connect wirelessly to SS88 I get a 192.168.188.X IP address and internet works through the normal fixed IP internet connection (Site B)
I have VPN setup between the routers and from both the Vlan 1 and Vlan 88 I can ping the network on Site A router (192.168.5.1)
How do I configure that Vlan88 uses the internet connection on Site A instead of the internet connection on Site B

Hope someone can help
Cheers
Steve

Author: zhangwei13    Time: 2022-10-24 17:40
Hi sir, sorry for not reply timely.
For reyee EG, we are suggest to conifgure open VPN to achieve that, you may refer to the following post to configure Open VPN in Reyee EG.
https://community.ruijienetworks.com/forum.php?mod=viewthread&tid=2866



Author: zhangwei13    Time: 2022-10-24 17:43
GTAC-Wayne replied at 2022-10-24 17:40
Hi sir, sorry for not reply timely.
For reyee EG, we are suggest to conifgure open VPN to achieve th ...

Please keep the below option as 'Yes', then the traffic of clients will go through the server



Author: Steve@supportos    Time: 2022-10-24 20:04
GTAC-Wayne replied at 2022-10-24 17:43
Please keep the below option as 'Yes', then the traffic of clients will go through the server

HI

Thank you, that works well for the whole network, how do I allocate the open VPN connection for VLAN 88 Only

Best regards
Steve

Author: zhangwei13    Time: 2022-10-25 14:26
Steve Walker replied at 2022-10-24 20:04
HI

Thank you, that works well for the whole network, how do I allocate the open VPN connection fo ...

Hi sir, you can try configure the PBR in the branch to allow except vlan88 to go through the WAN port of EG to access the internet.





Author: zhangwei13    Time: 2022-11-3 10:58
GTAC-Wayne replied at 2022-10-25 14:26
Hi sir, you can try configure the PBR in the branch to allow except vlan88 to go through the WAN p ...

Dear sir
May I know any progress now? Do you need any assistance from us?
Best regards
Wayne

Author: Steve@supportos    Time: 2023-1-18 19:22
Edited by Steve Walker at 2023-1-20 23:04

GTAC-Wayne replied at 2022-11-3 10:58
Dear sir
May I know any progress now? Do you need any assistance from us?
Best regards
Hi Wayne
Apologies for the late reply we moved in the interim now we are finally settled
Sorry this didn't work I then purchased a EG105G-P-V2 (192.168.111.1) setup the VPN and connected the lan port on WAN1 of the EG210G and mapped Vlan 88 to Wan 1 and that worked all internet traffic on vlan 88 is redirected to the internet connection on 192.168.5, but now the problem I have is I can't ping 192.168.111.1 from 192.168.5.1 even though I have setup the open VPN connection as a router to router, need devices on 192.168.5.x to access devices on Vlan 88 and IP range 192.168.111.x. I can ping any delice on 192.168.5.x network from any delice on 192.168.111.x but not the other way round.
I can ping the virtual IP address (10.80.12.2) on 192.168.111.1 from 192.168.5.1 but not 192.168.111.1 or any other IP address in the 192.168.111.x range.
I have tried adding static routes bit that didn't work either.
any Suggestions.
Best regards
Steve


OK created my own solution
on 192.168.5.1 I added a L2TP server (on top of the Openvpn server)  and added a L2TP VPN link on 192.168.110.1 to 192.168.5.1 now I have two way connection between 192.168.5.x and 192.168.110.x as well as internet access from 192.168.5.1 on Vlan 88 (192.168.88.x)

works like a dream

I hope this helps someone else one day



Author: Charles K    Time: 2023-1-21 16:04
Edited by Charles K at 2023-1-21 16:06

Steve Walker replied at 2023-1-18 19:22
GTAC-Wayne replied at 2022-11-3 10:58
Dear sir
May I know any progress now? Do you need any assista ...
I see your update.  Thanks.  
How did you direct the Vlan 88 to the "L2TP VPN link on 192.168.110.1" so that Vlan 88 uses the Internet from the L2TP server?
I can create my Vlan and my L2TP client but how to marry them??
Thanks again.





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