1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-27 12:28:06 +11:00
OC-Minitel/vTunnel/README.md

73 lines
1.6 KiB
Markdown
Raw Normal View History

2018-04-05 23:50:42 +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).
2018-04-06 16:42:03 +10:00
The protocol is documented [here](vtunnel-protocol.md)
2018-04-05 23:50:42 +10:00
## Setup
### Server
#### Requirements
- Some form of unix-like
- Lua 5.2 or 5.3
- Luasocket
#### Running the server
At present, all you need to do is run bridge.lua, for example:
```
lua53 bridge.lua [port] [timeout]
2018-04-05 23:50:42 +10:00
```
### Client
#### OPPM
```
oppm install vtunnel
```
#### Manual
1. Install vtunnel.lua to /etc/rc.d
2018-04-06 17:09:21 +10:00
2. Install interminitel.lua to /usr/lib
2018-04-05 23:50:42 +10:00
2018-04-17 01:26:27 +10:00
#### Running
2018-04-05 23:50:42 +10:00
vTunnel is invoked as follows:
```
rc vtunnel start <server address>:<server port>
```
This will create a virtual linked card component connected to server\_address:server\_port.
2018-04-17 01:26:27 +10:00
#### Configuration
vTunnel can also be configured to start automatically. First, one would enable the rc service:
```
rc vtunnel enable
```
Then, edit /etc/rc.cfg and add a line as follows:
```
vtunnel = "server.address:port"
2018-04-05 23:50:42 +10:00
```
Leaving it as default will result in vTunnel connecting to the public SKS bridge.
2018-04-05 23:50:42 +10:00
#### 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`
2018-04-05 23:50:42 +10:00
This will ensure that Minitel starts later than vTunnel, allowing it to see the virtual tunnel component.