1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-22 18:18:05 +11:00
OC-Minitel/vTunnel
2019-12-20 02:19:35 +11:00
..
OpenOS bugfix for getChannel 2019-12-20 02:19:35 +11:00
Wireshark added an initial InterMinitel packet dissector for Wireshark 2019-12-19 20:47:33 +11:00
bridge.lua Updated the OpenOS vTunnel client, added pcap output to the vTunnel bridge. 2019-12-19 20:42:43 +11:00
interminitel.lua moved vtunnel to the right place 2018-04-05 23:51:11 +10:00
pcap.lua added pcap.lua for the vtunnel bridge, whoops 2019-12-20 01:42:38 +11:00
README.md updated vtunnel documentation 2019-12-19 20:47:01 +11:00
vtunnel-protocol.md bridge improvements, mostly configuration 2018-04-06 16:51:45 +10:00

vTunnel - TCP-based Linked Card Emulator

vTunnel can be used to add bridging over the internet to any existing OpenOS software that uses linked cards.

Despite originally being written for Minitel, vTunnel implements a fully-functional linked card emulator and a server that will run under most unix-likes (OpenBSD is currently somewhat flaky, Linux is recommended).

The protocol is documented here

Setup

Server Requirements

  • Some form of unix-like
  • Lua 5.2 or 5.3
  • Luasocket

Client Installation

OPPM

oppm install vtunnel

Manual

  1. Install vtunnel.lua to /etc/rc.d
  2. Install interminitel.lua to /usr/lib

Client setup

Creating a connection

Many connections can be configured. To add one:

rc vtunnel addpeer <server address> <server port>

Usage

Running the server

At present, all you need to do is run bridge.lua, for example:

lua53 bridge.lua [port] [timeout]

Client

vTunnel is invoked as follows:

rc vtunnel start

vTunnel can also be configured to start automatically:

rc vtunnel enable

There are several other commands available under rc vtunnel:

  • settimer - allows you to configure how often vTunnel polls the TCP socket
  • listpeers - shows which peers are configured, and the associated tunnel card addresses
  • delpeer - deletes a peer from the configuration, as shown in listpeers

Minitel configuration

  1. Disable minitel with rc - rc minitel disable
  2. Enable vtunnel with rc - rc vtunnel enable
  3. Enable minitel with rc - rc minitel enable

This will ensure that Minitel starts later than vTunnel, allowing it to see the virtual tunnel component.