{"id":21530940,"url":"https://github.com/dubuntu13/VPN-Orchestrator","last_synced_at":"2025-07-16T08:31:49.643Z","repository":{"id":210357867,"uuid":"726371037","full_name":"dubuntu13/openforti-vpn-client","owner":"dubuntu13","description":"This is the solution for connect to the multiple vpn connection at the same time, you can have access to multiple zone behind the multiple VPN at the same time","archived":false,"fork":false,"pushed_at":"2024-04-11T18:50:43.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-13T02:14:19.260Z","etag":null,"topics":["docker","docker-compose","openfortivpn","vpn"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/dubuntu13.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}},"created_at":"2023-12-02T07:27:08.000Z","updated_at":"2024-04-13T02:14:19.261Z","dependencies_parsed_at":"2023-12-05T14:30:49.621Z","dependency_job_id":"1462209b-b154-4a1a-8839-0d0833d99bef","html_url":"https://github.com/dubuntu13/openforti-vpn-client","commit_stats":null,"previous_names":["dubuntu13/openforti-vpn-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubuntu13%2Fopenforti-vpn-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubuntu13%2Fopenforti-vpn-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubuntu13%2Fopenforti-vpn-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubuntu13%2Fopenforti-vpn-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubuntu13","download_url":"https://codeload.github.com/dubuntu13/openforti-vpn-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226116123,"owners_count":17575930,"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":["docker","docker-compose","openfortivpn","vpn"],"created_at":"2024-11-24T02:10:53.010Z","updated_at":"2025-07-16T08:31:49.635Z","avatar_url":"https://github.com/dubuntu13.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker VPN Routing Automation\n\nThis project automates the setup of Docker containers for VPN services (Kerio and Forti), configures IP routing, and enables NAT (Network Address Translation). It includes a script to handle container setup, IP forwarding, and dynamic routing based on a configuration file.\n\n## Features\n\n- **Automated Docker Image Building**: Automatically builds Docker images for Kerio and Forti VPN clients using specified Dockerfiles.\n- **Dynamic Routing**: Reads a configuration file to dynamically set up IP routing and NAT rules.\n- **IP Forwarding**: Enables IP forwarding on the host system to allow routing between networks.\n- **Custom NAT Rules**: Adds NAT rules for Kerio containers to ensure seamless network communication.\n\n## Prerequisites\n\nBefore using this project, ensure you have the following installed:\n\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n- A Linux-based system with administrative privileges\n\n## File Structure\n\n```\n├── conf\n├── docker-compose-kerio.yml\n├── generate-compose.sh\n├── id_rsa.pub\n├── need\n│   ├── connections.conf\n│   ├── fortiDockerfile\n│   │   ├── Dockerfile\n│   │   └── forti.sh\n│   ├── fortivpnConf\n│   │   └── config\n│   ├── kerioDockerfile\n│   │   ├── Dockerfile\n│   │   └── entrypoint.sh\n│   ├── keriovpnConf\n│   │   └── kerio-kvc.conf\n│   └── routing.conf\n├── README.md\n├── readme.txt\n└── up.sh\n\n```\n## First of All Add Your client configs\n1. openforti client config directory is:\n   ```\n   ./need/fortivpnConf/\u003cPut youd forti's config into this directory\u003e\n2. kerio-kvc client config directory:\n   ```\n   ./need/keriovpnConf/\u003cPut your kerio kvc client into this directory\u003e\n\n## Manage your VPN's image's and container's:\n1. Edit ./need/connections.conf\n   ```\n      KERIO_VPN_CONNECTIONS:\n        kerio1 kerio-vpn1 kvnet1 ./need/keriovpnConf/kerio-kvc.conf\n\n      FORTI_VPN_CONNECTIONS:\n        forti2 forti-vpn2 fortinet2 ./need/fortivpnConf/moi1\n   ```\n`kerio1` is container name\u003c/br\u003e\n`kerio-vpn1` is network name in container\u003c/br\u003e\n`./need/keriovpnConf/kerio-kvc.conf` This is the path of the config file\u003c/br\u003e\nsame in kerio and forti and you can add multiple of each to create and connect to al lof them\u003c/br\u003e\n\n\n## Configuration\n\n### Routing Configuration File (`routing.conf`)\n\nThe `routing.conf` After you edit the earlier file now config your route on your host:\n\n```\nkerio1 192.168.68.0/24 #This is an example\nforti2 192.168.151.0/24 #This is another example\n```\n\n- **Container Name**: Name of the Docker container (e.g., `kerio1`).\n- **CIDR Range**: Subnet range (e.g., `192.168.68.0/24`).\n- **Comments**: Optional, starting with `#`.\n\n## Now wwe can Start to Connectiong to zones\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/dubuntu13/openforti-vpn-client\n   cd openforti-vpn-client\n   ```\n\n2. Run the generate-compose.sh.\n   ```\n   ./generate-compose.sh\n   ```\ndobble check the docker-compose that script created and the docker images version musst be equal with the up.sh docker images.\n\n4. Run the script:\n   ```bash\n   ./up.sh\n   ```\n\n   The script performs the following:\n   - Builds Docker images for Kerio and Forti.\n   - Starts the containers using Docker Compose.\n   - Enables IP forwarding on the host system.\n   - Configures routing and NAT rules dynamically.\n\n## Notes\n\n- Ensure that the Docker container names in `routing.conf` match the names in `docker-compose.yml`.\n- The script automatically skips commented or empty lines in `routing.conf`.\n- IP forwarding and NAT rules are applied specifically for Kerio containers.\n\n## Troubleshooting\n\n- **Routing Errors**: Ensure the CIDR ranges in `routing.conf` are valid and not followed by inline comments without a space.\n- **Docker Errors**: Verify Docker and Docker Compose are installed and running correctly.\n- **Permission Errors**: Run the script with administrative privileges (`sudo`).\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Contribution\n\nFeel free to fork this repository and submit pull requests for improvements or bug fixes. For major changes, please open an issue first to discuss.\n\n## Author\n\nhttps://github.com/dubuntu13\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubuntu13%2FVPN-Orchestrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubuntu13%2FVPN-Orchestrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubuntu13%2FVPN-Orchestrator/lists"}