LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2012, 10:31 AM   #1
bitblit
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
TAP to TAP tunnel with UDP broadcasts


Long time user (13 years). First question posted.

I have inherited two commercial products with extremely inflexible network connectivity. One runs on Windows and requires use of a NIC with a specific NON-routable IP address. The other runs on Linux and also requires use of a NIC with a specific NON-routable address, though I can bridge it from a TAP to an eth interface.

I tried using OpenVPN but discovered there was a very specific packet bit pattern that my software exchanges which OpenVPN silently drops. Also, IT policy is going to make OpenVPN extremely difficult to deploy.

So I'm trying to setup a tunnel using netcat and ssh on Linux, and cygwin+netcat and PuTTY on Windows. I created TAP's on both ends, setup the tunnel, and transmitted some test packets, but I can't seem to get netcat to listen to the TAP. Does anybody have a sample setup?
 
Old 02-16-2012, 02:51 PM   #2
bitblit
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I almost got it working with socat. I can probably get as far with netcat, but socat seems to be a little easier for what I'm doing. I verified that my UDP broadcast packages are successfully tunneling from the Linux TAP to my Windows box, but they're not making it to the Windows TAP. In fact, I don't see the packets with Wireshark at all. I know this is probably a Windows problem, not Linux. So this is what I did on the Linux side to get as far as I did.

ifconfig tap0 inet 172.16.0.1 broadcast 172.16.255.255 netmask 255.255.0.0 up
socat -x TCP-LISTEN:6667,fork interface:tap0
Start my program that binds to the tap0 adapter

On the client side, I do the following:

socat -x TCP:<server_name>:6667,fork UDP:localhost:3301

With the -x switch, I can see the packets and verify the bit patterns are making it through. I'm using socat on Cygwin. I'll find a cygwin forum to get help on the Windows side.
 
  


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
*tap tap tap* Is this thing on? narcos LQ Suggestions & Feedback 8 09-26-2009 07:57 PM
Need help on TUN/TAP vinodl Linux - Networking 1 06-22-2009 11:18 AM
tap character in vi ufmale Linux - Newbie 7 08-11-2008 07:07 PM
Using Tap Interface Kenji Miyamoto Linux - Networking 1 02-05-2006 04:12 PM
Tap Drive imsajjadali Linux - General 9 02-07-2004 06:12 AM

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

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