PPTP Server/Client VPN and MiniDLNA: DLNA over VPN

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Wed May 04, 2016 22:41    Post subject: PPTP Server/Client VPN and MiniDLNA: DLNA over VPN Reply with quote
Hi,

I've got VPN (PPTP Server/Client) working fine, connecting two networks (192.x.x.x and 172.x.x.x).

Each one network has a MiniDLNA running and working fine for its devices, on the same network, isolated.

But, I can't see MiniDLNA working outside of those network.

I really need any help on this.

Tnx, Marcelo.
Sponsor
mwbuss8
DD-WRT Guru


Joined: 23 Feb 2015
Posts: 751

PostPosted: Thu May 05, 2016 1:20    Post subject: Reply with quote
Can you manually configure the dlna client? I suspect it's like network discovery on file managers, it doesn't show across subnets.
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Thu May 05, 2016 2:55    Post subject: Reply with quote
I don't think so (eg: TV, Smartphones)...

Maybe something related to IGMP? Any ideas?
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 7:01    Post subject: Reply with quote
You need to enable broadcast support on PPTP server side...
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Thu May 05, 2016 16:04    Post subject: Reply with quote
No avail and it was disabled before your suggestion.

Maybe there is something else. A question: have you tried something like this, in order to help me?

Tnx again!
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Thu May 05, 2016 16:29    Post subject: Reply with quote
uncheck filter multicast in firewall settings
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Thu May 05, 2016 18:39    Post subject: Reply with quote
No avail either. I have even set in Advanced Routing the following static routes, in short:

- VPN Server Side (Router 192.168.1.1):

Route 1: 172.168.1.0 255.255.255.0 172.168.1.1 ANY
Route 2: 172.168.1.1 255.255.255.255 0.0.0.0 ANY
Route 3: 172.168.1.0 255.255.255.0 172.168.1.1 ANY

- VPN Client Side (Router 172.168.1.1):

Route 1: 192.168.1.0 255.255.255.0 192.168.1.1 ANY
Route 2: 192.168.1.1 255.255.255.255 0.0.0.0 ANY
Route 3: 192.168.1.0 255.255.255.0 192.168.1.1 ANY

Any help is welcome!

Obrigado, Marcelo.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 19:28    Post subject: Reply with quote
msantos2007 wrote:
No avail and it was disabled before your suggestion.

Maybe there is something else. A question: have you tried something like this, in order to help me?

Tnx again!


yes!
The problem is ARP across the tunnel, ddwrt uses bcrelay deamon. bcrelay simply plays as a broadcast repeater. When bcrelay receives packets from the incomming interface, it will then relay them to the outgoing interface. First make sure it is compiled in your build. enable it and ssh to your router and type "bcrelay"... it will make some load on CPU thats why it is disabled by default...
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 19:34    Post subject: Reply with quote
Code:
May 05 21:24:29 93.86.240.200 pptpd: CTRL (BCrelay Launcher): Launching BCrelay with pid 0
May 05 21:24:29 93.86.240.200 pptpd: MGR: Maximum of 3 connections available
May 05 21:24:29 93.86.240.200 pptpd: MGR: BCrelay incoming interface is br0
May 05 21:24:29 93.86.240.200 pptpd: MGR: BCrelay outgoing interface is regexp ppp[0-9].*
May 05 21:24:29 93.86.240.200 bcrelay: Running as child


you should have something like this in your log after enabling it...
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Thu May 05, 2016 20:27    Post subject: Reply with quote
Well, bcrelay is not compiled... Game over?

"bcrelay: pptpd was compiled without support for bcrelay, exiting.
run configure --with-bcrelay, make, and install."


Tnx again!
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Fri May 06, 2016 5:34    Post subject: Reply with quote
You have 2 solutions. Use EoIP, or configure WINS server on both sides of tunnel... or some kind of proxy-ARP that I am not aware of...
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Mon May 09, 2016 13:55    Post subject: Reply with quote
Hi Guys!

It's working fine and without applying neither of both solutions proposed by Mile-Lile!

I'm still trying figure out what happened, because its was working in somewhere in between those suggestions presented by tatsuya46 and Mile-Lile.

I'm using Windows Media Player and VLC Player for Windows and BubbleUPnP and UPnPlay for Android to check those changes. UPnPlay is the only app what detects both DLNA Servers.

Thank you guys!
Marcelo - Brazil


Last edited by msantos2007 on Mon May 09, 2016 14:08; edited 1 time in total
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Mon May 09, 2016 14:03    Post subject: Tricking routers Reply with quote
Another question:

Once Windows Media Player, VLC Player and BubbleUPnP can not detect the other side MiniDLNA Server, how can I assign a local IP address for the remote device? Please consider the following:

Network 1: MiniDLNA Server 1: IP 172.168.1.1
Network 2: MiniDLNA Server 2: IP 192.168.1.1

Goal:

Network 1:
- MiniDLNA Server 1: IP 172.168.1.1
- MiniDLNA Server 2: IP 172.168.1.2 as 192.x.x.1

Network 2:
- MiniDLNA Server 1: IP 192.168.1.1
- MiniDLNA Server 2: IP 192.168.1.2 as 172.x.x.1


How can I do it?



Obrigado, Marcelo.
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Tue May 17, 2016 13:18    Post subject: Using IGMP Reply with quote
What about using IGMP?

Is there any example which I can work with?

Tnx!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware 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