Automatic Router Reboot and Issue Ticket Generation.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__
.gitignore
LICENSE
Vianet.py
app.py
ip.log
readme.md

readme.md

Vianet IP Changer

Vianet uses Carrier-grade NAT to assign private IP to most of its customers.

You get assigned a public IP once in a while.

This program connects to Asus RT-N14 Router through Telnet and reboots the internet connection in an attempt to get a public IP.

If it fails to get a public IP within given number of attempts, it automatically opens a support ticket so that they can manually assign a public IP.

Configuration

Set the following values in app.py

ROUTER_USER = 'telnet username'
ROUTER_PASSWORD = 'telnet password'
VIANET_USERNAME = 'vianet customer portal username'
VIANET_PASSWORD = 'vianet customer portal password'

Set the following values in Vianet.py

TOKEN_ID = 'refer to screenshot below'

Config

You can run app.py or start a cronjob to run app.py automatically.

License

This package is open-sourced software licensed under the MIT license