LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2015, 05:16 AM   #1
tyrolite
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
Heterogeneous VPN between home network(IPv6) and remote Raspberry Pi(IPv4)


Hello,

I'm trying to setup a VPN(using OpenVPN) between 2 machines:
Computer A: a Raspberry Pi used as a lowcost surveillance system running Raspbian connected to internet via a 3G link,behind CGN and IPv4 only.
Computer B: my home laptop running Archlinux connected via a fiberlink, also behind CGN but is IPv6 capable.

My first trial was to setup the openvpn server on A but 3G networks don't allow incoming connections...

The only option left is to run the openvpn server on B but I can get only an IPv6 public address from the second ISP.

I found similar issues on this forum with suggestions to use a tunnel broker.There was a free hosted vpn called Hamachi, but the free part is gone.

The 'surveillance system' is just an Ip cam streaming at 4FPS grandma's house in a remote village, so the live stream will be used rarely on motion triggered events.I also need SSH and FTP access to the remote machine.

So how do I get a link between A and B?
Is there a way to make the setup more simple ?
What other options are there ?

Thanks in advance !
 
Old 04-17-2015, 02:05 PM   #2
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
I'm still using hamachi for free; however there is a 5 client limit per network. Additionally I'm still using version 2.1.0.86 as it does not give me installation/service-start issues. Also i recommend using the LogMeIn dashboard for creating your networks ("My Networks"). If you create them via commandline, you risk losing your creator account.

Last edited by sudowtf; 04-17-2015 at 02:11 PM.
 
1 members found this post helpful.
Old 04-17-2015, 02:15 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
If I'm reading the question correctly, you're basically saying that there is no way to connect directly from A to B (since B has an IPv6 public address), or from B to A (since A blocks incoming connections), using any protocol. Is that correct?

Then I think the only option is a 3rd party IPv4 server that can act as a middle man. I don't see why you need a full hosted VPN server, just basic ssh access should do, and then you can have A autonomously set up reverse ssh tunnels to the 3rd party server on the necessary ports. Is there a reason you need (or think you need) a full VPN? That seems beyond overkill to me.

Last edited by suicidaleggroll; 04-17-2015 at 02:17 PM.
 
1 members found this post helpful.
Old 04-18-2015, 05:15 AM   #4
tyrolite
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sudowtf View Post
I'm still using hamachi for free;
I try to avoid Hamachi because all traffic goes through their servers and when I last used this service(7-8 years ago) it had low connection speed. There are still serveral things I need to try, but if everything else fails then I will give hamachi another try.

Quote:
Originally Posted by suicidaleggroll View Post
If I'm reading the question correctly, you're basically saying that there is no way to connect directly from A to B (since B has an IPv6 public address) ... Is that correct?
Not quite, B is IPv6 capable, but right now it has an IPv4 address. I tried to setup dynamic dns(http://www.dynu.com) for it and I had the option to ping my IP after setup. The ping failed and still fails from sites such as http://ping.eu/ping/, so I assumed that the vpn client(on A) won't be able to reach the server(on B). My assuption is wrong because I talked to my ISP and they said that they don't filter any ports except SMTP and recomended me to use their own dyndns service. I tried it on port 80 with httpd (hosting a test webpage) and it works ! I wanted to adopt IPv6 for the sake of 'internet health' ...

Quote:
Originally Posted by suicidaleggroll View Post
Is there a reason you need (or think you need) a full VPN? That seems beyond overkill to me.
Well, besides the IP cam I want to control other devices such as a relay board for irrigation or read a temperature/humidity sensor, all of these having a simple web interface. I may give access to this interface to a selected few so multiple clients is a plus.

I'm not very good at ssh and only used it to install software on the Pi, so the openvpn aproach seemed more simple and general for using client-server applications that require different open ports.
 
Old 04-20-2015, 10:34 AM   #5
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
Quote:
Originally Posted by tyrolite View Post
I try to avoid Hamachi [...]
cross-platform Hamachi alternatives:

n2n - a Layer Two Peer-to-Peer VPN
SoftEther VPN Project
tinc vpn
freelan (no redhat, et al?)
NeoRouter Free (as opposed to the Mesh and Pro versions)

i have no experience with any of them, but tried to maintain a list for when i was ready to move-on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv4 and IPv6 Dual Stack issue with routes in /etc/network/interfaces darkmode Linux - Networking 1 03-12-2014 06:18 AM
In tspc ipv6 tunnelling, does tunnel broker required for ipv4 to ipv4 communication? nyk.mat Linux - Newbie 2 08-13-2013 09:48 PM
LXer: Network interface operations for IPv4 and IPv6 on AIX version 5.3 LXer Syndicated Linux News 0 12-05-2006 05:03 AM
LXer: Building a heterogeneous home network for Linux and Mac OS X LXer Syndicated Linux News 0 06-10-2006 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration