LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-29-2013, 08:08 PM   #1
Paul_N
LQ Newbie
 
Registered: Jun 2013
Posts: 2

Rep: Reputation: Disabled
How to Implement Low Speed Point-to-Point Data Link via Linux networking?


How to Implement Low Speed Point-to-Point Data Link via Linux networking?

I asked this question on a Raspberry Pi forum, but only got one response and that didn't really address my question.

I'm not a computer software network person, I'm more of an electronics hardware person. So I need some pointers and suggestions on where to look and how best to get started on a simple network project using two Raspberry Pi systems running Debian Linux to make a data pipe between them.

What I'd like to do is create the functionality of what, in the old days (1960s) in the States was called by the phone company a "nailed-up private line low speed data circuit". The goal being to provide a 24/7 full duplex low speed data pipe between two separated locations. Specifically, I'd like to use two Debian Raspberry-Pis, one in city A and the other in City B, both connected to the internet via Ethernet, to create a simple low speed serial link between those two points, say a full duplex 300 bps ASCII UART link. The endpoints would be residential locations served by a cable modem, so there would be issues of leased IP addresses (rather than static IP addresses) as well as hardware firewall (and also NAT) at each end. I pretty much get that, and can see ways to work around that. The Linux board's serial port hardware could either be the serial port that's integral to the Raspberry Pi, or via a USB-to-serial-port dongle. Either way is fine for my purposes.

What I don't have is knowledge regarding what Linux based networking "service" would be used to get started with something like this, to create the full duplex network link between the Linux boards (the Linux boards having connectivity to each other over the public internet), and get the data from, and put it to, the hardware serial ports on each Linux boards. Any suggestions? It seems to me it might be a little bit like a telnet session, except that I want the near end, and far end, I/O to be serial UART format to a physical hardware port (with the electrical interface as either TTL or RS-232, I can work with either). I don't mind if there's some latency (up to 15 seconds) between what goes in at one end and what comes out at the far end. I have no need for encryption like one might find on a VPN. I just want a simple data pipe between to displaced Linux boards with a hardware port interface using UART type formatting.

Any suggestions as to how best to implement the software for this on a simple Linux system such, as Debian on the Raspberry Pi?
 
Old 06-30-2013, 01:20 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
If I understand correctly, you're looking for a way to link serial ports on two different hosts across the Internet, where both hosts are behind NAT. In that case, there are two different problems to solve:
  1. the two hosts need to be linked somehow, as there is no direct path between two systems behind different NAT endpoints
  2. the serial ports must somehow be linked across the network
The first problem can be solved by forwarding a port from the router to the host at one end, and set up tunneling/VPN. Plain IPsec in transport mode works well in scenarios like this (I can recommend the strongSwan implementation), but I've heard a lot of good things about OpenVPN as well.

If you really don't need/want enctyption, I guess you could use IP-in-IP or GRE tunneling, but since both ends are behind NAT, it may actually be easier to set up a VPN connection; IPsec can work over a single forwarded UDP port while IPIP and GRE are separate IP protocols.

The second problem (linking the serial ports) can be done with socat once a direct network connection is established.
 
Old 06-30-2013, 03:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I agree, you can't easily use the internet like old POTS lines.


It may also be possible to use slip. https://en.wikipedia.org/wiki/Serial...ernet_Protocol
 
  


Reply



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
how to implement pppoe (point to point protocol over ethernet) dhavalshah9898 Linux - Newbie 2 04-01-2010 11:21 PM
What is WAN point-to-point link? ivj Linux - Networking 1 07-16-2005 01:20 AM

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

All times are GMT -5. The time now is 01:11 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