{"id":18837741,"url":"https://github.com/m1k1o/ovpn-nodejs","last_synced_at":"2025-04-14T06:22:25.801Z","repository":{"id":50767657,"uuid":"248085930","full_name":"m1k1o/ovpn-nodejs","owner":"m1k1o","description":"Control OVPN (+ Proxy server) via HTTP.","archived":false,"fork":false,"pushed_at":"2023-05-24T00:35:03.000Z","size":389,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T20:11:12.144Z","etag":null,"topics":["http-server","nodejs","openvpn-client","proxy-server","squid-proxy","vpn-client"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m1k1o.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-17T22:30:59.000Z","updated_at":"2024-06-01T13:14:24.000Z","dependencies_parsed_at":"2024-11-08T02:38:05.813Z","dependency_job_id":"05314147-010b-4f2b-9332-ac02fd0f2770","html_url":"https://github.com/m1k1o/ovpn-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1k1o%2Fovpn-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1k1o%2Fovpn-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1k1o%2Fovpn-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1k1o%2Fovpn-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1k1o","download_url":"https://codeload.github.com/m1k1o/ovpn-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830907,"owners_count":21168369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-server","nodejs","openvpn-client","proxy-server","squid-proxy","vpn-client"],"created_at":"2024-11-08T02:36:12.450Z","updated_at":"2025-04-14T06:22:25.778Z","avatar_url":"https://github.com/m1k1o.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ovpn-nodejs\r\n\r\nRun OpenVPN inside docker container. Connect using Proxy. Choose and change from supplied `.ovpn` files.\r\n\r\n```\r\nversion: '3.4'\r\nservices:\r\n  vpn:\r\n    build: .\r\n    container_name: vpn\r\n    restart: unless-stopped\r\n    sysctls:\r\n      - net.ipv6.conf.all.disable_ipv6=0\r\n    cap_add:\r\n      - net_admin\r\n    volumes:\r\n      - /dev/net:/dev/net:z\r\n      - ./vpn:/vpn\r\n```\r\n\r\n![screenshot](screenshot.png)\r\n\r\n## Openvpn authentication\r\n\r\nIf your ovpn configuration contains this line `auth-user-pass` you need to supply authentication file.\r\n\r\nCreate `.auth` file in your `vpn` folder. First line will be username, second line will be your password. And then replace it in all your files:\r\n\r\n```\r\nfind . -type f -name \"*.ovpn\" -print0 | xargs -0 sed -i \"s/^auth-user-pass$/auth-user-pass \\/vpn\\/.auth/g\"\r\n```\r\n\r\n## Env\r\n\r\n### File regex\r\n\r\nMatch only files matching given RegExp. In filename will be this part omitted.\r\n\r\n```\r\nFILE_REGEXP: '\\.(ovpn|conf)$$'\r\n```\r\nNote: Use `$$` in docker-compose for `$`.\r\n\r\nExample:\r\n\r\n* `\\.(ovpn|conf)$` -\u003e foo.bar -\u003e *ignored*\r\n* `\\.(ovpn|conf)$` -\u003e homelab.ovpn -\u003e homelab\r\n* `\\.ovpn` -\u003e homelab.ovpn -\u003e homelab\r\n* `\\.ovpn` -\u003e my.ovpn.server.ovpn -\u003e my.server\r\n* `myvpn` -\u003e server01.myvpn.ovpn -\u003e server01.ovpn\r\n\r\n### Group regex\r\n\r\nFirst matching group of this regex will be used to group files.\r\n\r\n```\r\nGROUP_REGEXP: '^([a-z]+)-'\r\n```\r\n\r\nExample:\r\n\r\n* sk-server01.ovpn\r\n* sk-server02.ovpn\r\n* sk-server03.ovpn\r\n* de-server01.ovpn\r\n* de-server02.ovpn\r\n\r\nGroups:\r\n\r\n* de\r\n* sk\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1k1o%2Fovpn-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1k1o%2Fovpn-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1k1o%2Fovpn-nodejs/lists"}