Skip to content

Commit

Permalink
Updated better command line and README
Browse files Browse the repository at this point in the history
  • Loading branch information
kizzx2 committed Jun 12, 2016
1 parent 10e3924 commit 7521212
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ start /your/openvpn/directory
Alternatively, using `docker run` directly:

```bash
docker run -it --device=/dev/net/tun --cap-add=NET_ADMIN \
--volume /your/openvpn/directory/:/etc/openvpn/:ro \
docker run -it --rm --device=/dev/net/tun --cap-add=NET_ADMIN \
--name openvpn-client \
--volume /your/openvpn/directory/:/etc/openvpn/:ro -p 1081:1080 \
kizzx2/openvpn-client-socks
```

Then connect to SOCKS proxy through through `local.docker:1081`. For example:

```bash
curl --proxy socks5:https://local.docker:1081 ipinfo.io
```
1 change: 1 addition & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exec docker run \
--tty \
--interactive \
--device=/dev/net/tun \
--name=openvpn-client \
--cap-add=NET_ADMIN \
--publish 127.0.0.1:1081:1080 \
--volume "$(realpath "$1"):/etc/openvpn/:ro" \
Expand Down

0 comments on commit 7521212

Please sign in to comment.