Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egeneralov/rkn-vpn-configurator
Configure OpenVPN with bypass rkn.gov.ru limits.
https://github.com/egeneralov/rkn-vpn-configurator
bypass openvpn python rkn
Last synced: 3 months ago
JSON representation
Configure OpenVPN with bypass rkn.gov.ru limits.
- Host: GitHub
- URL: https://github.com/egeneralov/rkn-vpn-configurator
- Owner: egeneralov
- Created: 2018-04-21T22:52:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-30T14:31:26.000Z (about 5 years ago)
- Last Synced: 2024-04-24T13:20:00.864Z (7 months ago)
- Topics: bypass, openvpn, python, rkn
- Language: Python
- Size: 2.04 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-network-stuff - **8**星
README
# RKN vpn configurator
Generate ovpn config on-the-fly.
## generator.py
"brain" of idea. Features:
- collect ip and subnets from `reestr.rublacklist.net`
- extend ovpn config from collected data via route
- cache generated to sqlite3 database
- generate ovpn config from cached data
- generate routes from pre-defined subnets
- todo: collect it from additional sources
- habrahabr (2 pages)## app.py
REST-full (will be) API. Have only one route (`/`) with two methods (`GET`, `POST`).
- `GET` for README.md 2 html
- `POST` with `file` multipart/formdata for extend your template#### bash use:
curl https://rkn-vpn-configurator.herokuapp.com/
curl -XPOST -F '[email protected]' https://rkn-vpn-configurator.herokuapp.com/#### python-way:
import requests
r = requests.post(
'https://rkn-vpn-configurator.herokuapp.com/',
files = {
'file': open('openvpn.conf', 'rb')
}
)
with open('server.conf', 'a+') as f:
f.write(r.text)## [deprecated] Notice
This application for contact the `rublacklist.net` (cloudflare) must see in system path:
- selenium
- chromedriver