https://github.com/alexanderomara/openvpn-interface
An OpenVPN wrapper script that binds routing to the VPN interface device.
https://github.com/alexanderomara/openvpn-interface
interface openvpn openvpn-client routing
Last synced: 3 months ago
JSON representation
An OpenVPN wrapper script that binds routing to the VPN interface device.
- Host: GitHub
- URL: https://github.com/alexanderomara/openvpn-interface
- Owner: AlexanderOMara
- License: mpl-2.0
- Created: 2019-02-08T03:02:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-08T03:33:00.000Z (over 6 years ago)
- Last Synced: 2025-02-01T04:25:57.777Z (5 months ago)
- Topics: interface, openvpn, openvpn-client, routing
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# openvpn-interface
An OpenVPN wrapper script that binds routing to the VPN interface device.
# Usage
Just supply an open ip table identifier and an ovpn config file.
```
$ sudo openvpn-interface.sh 10 config.ovpn
```Then you can use both the VPN and the default routing based on the interface your programs binds.
```
$ curl https://icanhazip.com/
$ curl --interface tun0 https://icanhazip.com/
```Full CLI help outout.
```
usage: openvpn-interface.sh ip_table_id ovpn_config_file [openvpn_arguments]1.0.0 - Copyright (c) 2019 Alexander O'Mara MPL-2.0
positional arguments:
ip_table_id IP tables table ID to use
ovpn_config_file The ovpn config file
openvpn_arguments Optional additional openvpn arguments
```# Bugs
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
# License
Copyright (c) 2019 Alexander O'Mara
Licensed under the Mozilla Public License, v. 2.0
# Donations
If you find my software useful, please consider supporting independent and open-source software development by making a modest donation on my website at [alexomara.com](https://alexomara.com).