Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-l/docker-tcpser-modem-emulator
This a container based on Alpine Linux running the TCPSER modem emulator.
https://github.com/chris-l/docker-tcpser-modem-emulator
alpine dialup docker docker-image modem ppp serialport tcpser
Last synced: about 1 month ago
JSON representation
This a container based on Alpine Linux running the TCPSER modem emulator.
- Host: GitHub
- URL: https://github.com/chris-l/docker-tcpser-modem-emulator
- Owner: chris-l
- Created: 2022-05-15T09:49:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-17T06:59:42.000Z (about 2 years ago)
- Last Synced: 2024-11-11T04:41:05.979Z (3 months ago)
- Topics: alpine, dialup, docker, docker-image, modem, ppp, serialport, tcpser
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/chrll/tcpser-modem-emulator
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This a container based on Alpine Linux running the TCPSER modem emulator.
[TCPSER is a modem emulator](https://github.com/FozzTexx/tcpser), it emulates a Hayes compatible modem. It allows older systems to connect to services such as BBSes using a null-modem cable.
The container also includes a preconfigured PPP to simulate a dialup ISP provider and connect to the internet.It uses Alpine with TCPSER, PPP and Dnsmasq.
[It is based on the PiModem project by PodSix,](http://podsix.org/articles/pimodem/) which uses a Raspberry Pi Zero W.
## Features
* Uses the TCPSER fork by FozzTexx
* Includes PPP preconfigured to simulate a dialup ISP provider
* The PPP service accepts any username and password
* Uses Dnsmasq to share the host's DNS resolver## Requirements
* A retro computer with a serial port
* A modern computer running Docker with a serial port or [an USB serial adapter](https://en.wikipedia.org/wiki/File:FTDI_USB_SERIAL.jpg)
* A [null-modem cable](https://en.wikipedia.org/wiki/Null_modem)## How to build
```shell
git clone https://github.com/chris-l/docker-tcpser-modem-emulator.git
cd docker-tcpser-modem-emulatordocker build -t tcpser-modem-emulator .
```## Environment variables
* `DEV`: The serial device. Default: `/dev/ttyS0`
* `BAUD`: The baud rate to use. Default: `38400`For the fake dialup internet provider, the following additional variables are available:
* `IP_SERVER`: The IP assigned to the server. Default: `10.0.1.1`
* `IP_CLIENT`: The IP assigned to the client. Default: `10.0.1.2`
* `PPP_PHONE`: The phone number to use. Default: `5559000`
* `PROXY`: Optional. Redirects all requests to port 80 to a proxy specified in the format IP:PORT, such as `172.17.0.1:8000`. Unset by default.## Volumes
The container also supports the following volumes:
* `/dev/`: The serial device to be used. This is typically `/dev/ttyUSB0` for USB adapters and `/dev/ttyS0` for the first serial device (equivalent to "com1" on Windows)
* `/phonebook.txt`: A file containing lines in the format `=:`. Example: `1701=bbs.fozztexx.com:23`## Usage
**The argument `--privileged` is required to allow the container to access the serial device.**
In this example, its assuming the serial device is `/dev/ttyUSB0`, 115200 baud, a phonebook.txt file in the current directory and using `--rm` to remove the container after its closed.
```shell
docker run -it --rm --privileged -e BAUD=115200 -e DEV=/dev/ttyUSB0 -v /dev/ttyUSB0:/dev/ttyUSB0 -v $(pwd)/phonebook.txt:/phonebook.txt chrll/tcpser-modem-emulator
```On the client, make sure to select the same baud as the container.
For the fake dialup provider, use the `PPP_PHONE` number. Any combination of username and password will work. For using a proxy, ideally use the client's browser settings to configure it. That way it can handle other request than those to port 80. If that is not possible, you can use the `PROXY` env var to redirect all port 80 requests through it.