Home

Awesome

web3270

A web based front end for c3270. Uses Xterm.js and terminado.

How to Use

  1. First install c3270 (on Debian based systems you can install with sudo apt install c3270)
  2. Install the required packages: pip install -r requirements.txt
  3. Edit the config file web3270.ini customized to your system (see below)
  4. Place your certifcate crt/key file in this folder (or any folder see arguments below)
  5. Start the server: python3 server.py

Config File

The config file allows you to specify multiple options:

Script Arguments

openssl req -x509 -nodes -days 365 \
    -subj  "/C=CA/ST=QC/O=web3270 Inc/CN=3270.web" \
    -newkey rsa:2048 -keyout ca.key \
    -out ca.csr

Docker

To build a docker container use: docker build --tag "mainframed767/web3270:latest" .

To run the container:

docker run -d \
  --name=web3270 \
  -p 4443:443 \
  -v /opt/docker/web3270:/config \
  -v /opt/docker/web3270/certs:/certs \
  --restart unless-stopped \
  mainframed767/web3270

This command will run web3270 on port 4443.

After the first run the config file web3270.ini will be placed in /opt/docker/web3270. Edit that file to fit your environment then restart the container.

Known Bugs