Metadata-Version: 2.1
Name: webvpn-ng
Version: 0.1.1
Summary: 
License: MIT
Author: Ming Yang
Author-email: ymviv@qq.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.11.2,<5.0.0)
Requires-Dist: requests (>=2.28.2,<3.0.0)
Requires-Dist: typer[all] (>=0.7.0,<0.8.0)
Description-Content-Type: text/markdown

# WebVPN NG

TCP over [BUAA WebVPN](https://d.buaa.edu.cn/). 把WebVPN转换成TCP协议，可以转发基于TCP的任意端口（例如：SSH，HTTPS）。

## 1. Requirements
Python >= 3.8

## 2. Install
```bash
pip install --upgrade webvpn-ng
```

## 3. Usage

### Login

使用BUAA统一认证账号密码登录WebVPN，个人token请私聊我获取。

```bash
wvpn login USERNAME
```

### Port Forwarding

例如，使用本地2222端口访问校内的10.251.0.24:22：

```bash
# terminal #1
wvpn forward --port 2222 --rhost 10.251.0.24

# terminal #2
ssh -p 2222 yangming@localhost

# terminal #3
scp -P 2222 yangming@localhost:/data/data.pth .
```

使用本地的8000端口访问校内的211.71.15.34:6000（Tensorboard）：

```bash
# terminal
wvpn forward --port 8000 --rhost 211.71.15.34 --rport 6000

# web browser
open http://localhost:8000
```

