﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=Projects%2FSoftware%2FTunTapIO</id>
	<title>Projects/Software/TunTapIO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=Projects%2FSoftware%2FTunTapIO"/>
	<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=Projects/Software/TunTapIO&amp;action=history"/>
	<updated>2026-05-24T10:35:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=Projects/Software/TunTapIO&amp;diff=148&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=Projects/Software/TunTapIO&amp;diff=148&amp;oldid=prev"/>
		<updated>2022-11-09T14:49:54Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:49, 9 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=Projects/Software/TunTapIO&amp;diff=147&amp;oldid=prev</id>
		<title>Admin: /* How to use */</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=Projects/Software/TunTapIO&amp;diff=147&amp;oldid=prev"/>
		<updated>2010-04-21T21:17:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How to use&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
&lt;br /&gt;
This page is about some C-applications I wrote to forward data between stdin/out and a tun/tap network interface, a raw socket, or even libpcal (on Linux!). This can be used to bridge network interfaces, bridge a tap interface to some other real interface (and then request a second IP by DHCP, with another MAC address, from the same machine!), or even to build your own VPN (using some other program like netcat). It may also be used for testing purposes and as an easy interface to some network libraries from your own application.&lt;br /&gt;
&lt;br /&gt;
== Sourcecode ==&lt;br /&gt;
&lt;br /&gt;
[[Projects/Software/TunTapIO/tuntap.c|tuntap.c]] - tun/tap interface&lt;br /&gt;
&lt;br /&gt;
[[Projects/Software/TunTapIO/rawsock.c|rawsock.c]] - Raw socket interface&lt;br /&gt;
&lt;br /&gt;
[[Projects/Software/TunTapIO/pcap.c|pcap.c]] - libpcap interface (CAN NOT send data)&lt;br /&gt;
&lt;br /&gt;
[[Projects/Software/TunTapIO/pcap_rsend.c|pcap_rsend.c]] - libpcap interface (sends data using a raw socket)&lt;br /&gt;
&lt;br /&gt;
== How to use ==&lt;br /&gt;
&lt;br /&gt;
Connect a tap device to another network interface:&lt;br /&gt;
 mknod net ##Create a named pipe&lt;br /&gt;
 ./rsio eth0 -raw &amp;lt; net 2&amp;gt;/dev/null | ./ttio tap0 -tap &amp;gt; net 2&amp;gt;/dev/null ##Start the applications&lt;br /&gt;
&lt;br /&gt;
Build your own VPN (run this on both computers):&lt;br /&gt;
 ## INSTALL NETCAT ON BOTH MACHINES!&lt;br /&gt;
 &lt;br /&gt;
 ## On the server:&lt;br /&gt;
 nc -lp 9990 | ./ttio testdev --tap 1500 | nc -lp 9991&lt;br /&gt;
 &lt;br /&gt;
 ## On the client:&lt;br /&gt;
 nc SERVER_NAME_OR_IP 9990 | ./ttio testdev --tap 1500 | nc SERVER_NAME_OR_IP 9991&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>