device behind DD-WRT modem/router can't connect to internet

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 0:13    Post subject: device behind DD-WRT modem/router can't connect to internet Reply with quote
Hi,

I'm new to DD-WRT, and I'm not exactly tech-savvy.

I have a DD-WRT flashed D-Link DIR-825 modem/router (let's call it VPN router). I use Privateinternetaccess as my VPN provider. I want to put my Popcorn Hour A500, a hard drive media player, behind the VPN router. So the intended set up is: Popcorn Hour->VPN router->standard modem->ISP.

When I configured the VPN router on my PC, via PC->VPN router->standard modem->ISP, I received "connected success" status and i could access internet from my PC fine.

When I placed the VPN router between Popcorn Hour and my standard modem, lights on VPN router all light up blue, meaning all is working fine. However, the Popcorn Hour was not able to connect to the internet or home network.

The Popcorn Hour network settings are:
DHCP: auto
IP: 192.168.0.24
Subnet Mask: 255.255.255.0
Gateway: 192.168.0.1 (note: this is the IP of my standard modem connected to ISP)
DNS: Auto
Primary DNS: 8.8.8.8
Secondary DNS: 8.8.4.4

Please see my VPN router's DD-WRT set up in the images below (I can only attach 3).

There must be some simple answer to this. I just can't figure it out myself. I greatly appreciate if anyone can point me to the right direction.

Thanks[/img]
Sponsor
jxm
DD-WRT Guru


Joined: 23 Jul 2017
Posts: 706
Location: Brisbane, Australia

PostPosted: Mon Jan 28, 2019 4:43    Post subject: Reply with quote
Your Popcorn Hour device is using an IP address that is in the subnet of your gateway router, and it is using the gateway router's address as its Default Gateway. It needs to get a new IP configuration from DHCP on the VPN router.

Power off the Popcorn device, remove the WAN cable from the VPN router, and switch on the Popcorn device. Check thait it gets an address in the 192.168.1.x subnet and has a default gateway of 192.168.1.1. When it does, reconnect the cable to the WAN port of the VPN router. (Actually it should not be necessary to unplug the WAN cable, but a little insurance never hurts).

Test to ensure it now works.

Cheers
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 6:00    Post subject: Reply with quote
Thanks a million, JXM. It worked!!! Much appreciated!

Here come a new question:
When my Popcorn Hour's IP address was 192.168.0.24, I could see its internal hard drive from my PC and transfer files through my home network.

My pc's IP setup is:
IPv4 Address. . . . . . . . . . . : 192.168.0.23
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

Now my Popcorn Hour has a new set of IP:
DHCP: Auto
IP: 192.168.1.113
Subnet Mask: 255.255.255.0
Gateway:192.168.1.1
DNS: Auto
Primary DNS:192.168.1.1
Secondary DNS: 0.0.0.0

How do I access the hard drive on my Popcorn Hour from my home network?

Thanks again!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3792
Location: Netherlands

PostPosted: Mon Jan 28, 2019 8:43    Post subject: Reply with quote
you basically want to connect two subnets from two routers.
there is always communication from downstream (the VPN router in your case) to upstream so from your popcorn device you can reach your PC on the standard router but not the other way around.

I hope that makes sense i have difficulty typing with 1 finger (had little accident)

see attached doc, i am sure jxm can explain Smile

mind you there is no windows discovery and no dlna/media streaming between subnets, if you want that you have to rethink your network setup

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 9:14    Post subject: Reply with quote
Thank you, egc.

Can I change the VPN router's IP address to 192.168.0.x? I guess that won't work, will it?

Hope your finger gets better soon.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3792
Location: Netherlands

PostPosted: Mon Jan 28, 2019 9:23    Post subject: Reply with quote
no you can not.
you can set up the vpn router as a WAP: https://wiki.dd-wrt.com/wiki/index.php/Wireless_access_point
but do not turn off dnsmasq and leave router in gateway mode.
Problem is that you manually have to configure your popcorn device to use this WAP as gateway (or if your standard router supports dnsmasq you can do it from there)

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 9:35    Post subject: Reply with quote
Thanks egc. You type fast with one finger Cool.

If I have to go manually, I might as well unplug the Popcorn Hour from the VPN router and plug it directly with the standard modem and reset IP to the standard modem when I need to transfer files between my PC and Popcorn Hour.

Is thert any easier ways?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3792
Location: Netherlands

PostPosted: Mon Jan 28, 2019 9:40    Post subject: Reply with quote
the easiest way is to use the ddwrt router as you standard router, then you can do it all with one router.
with Policy based routing you can route the popcorn device through the vpn and other devices through the wan.

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 10:12    Post subject: Reply with quote
Hmmmm,that will slow down the speed of my whole home network.

Also, I'm on a optical cable. I need to flash the optical fibre modem provided by my ISP.

I don't know if you experienced the same, I always got asked to verify I was not a robot when I did a google search behind VPN.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 3792
Location: Netherlands

PostPosted: Mon Jan 28, 2019 17:35    Post subject: Reply with quote
on vpn you are indeed a robot Smile

Your best bet is probably to set your ddwrt router as a WAP (see previous post) and set a static ip on your popcorn device with the WAP as gateway, you then have the best of both worlds

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
Simple PBR (Policy Based Routing) script: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN server setup guide:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
dfeng9999
DD-WRT Novice


Joined: 27 Jan 2019
Posts: 6

PostPosted: Mon Jan 28, 2019 20:06    Post subject: Reply with quote
Thanks egc. How do I do that? Need a little bit detailed guidance there. No rush, I can wait till your finger is healed.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum