Added subnet routing support
This commit is contained in:
@@ -4,13 +4,14 @@ This script uses Openconnect to automatically connect to Cisco Anyconnect VPN se
|
||||
|
||||
Server address, username, password and 2fa seed is stored in macOS keychain. Feel free to remove them and ask for user input instead.
|
||||
|
||||
Additionaly routing for only specific subnets can be set up in `routing.sh`
|
||||
Additionaly routing for only specific subnets can be added in `routes.txt`
|
||||
|
||||
## Setup
|
||||
|
||||
```
|
||||
git clone this repo
|
||||
brew install openconnect
|
||||
brew install vpn-slice
|
||||
```
|
||||
|
||||
Add server address, username, password and 2fa seed in keychain with these names:
|
||||
@@ -21,6 +22,8 @@ Add server address, username, password and 2fa seed in keychain with these names
|
||||
|
||||
_For ease of use you can allow automatic keychain access to some of the attributs, but_ **do not allow automatic access to password and especially the 2fa seed**. _It will keep it in memory as long as the script is running._
|
||||
|
||||
Rename routes.txt.sample to routes.txt or create an empty routes.txt and add subnets to be routed through VPN there.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user