summaryrefslogtreecommitdiff
path: root/scripts/run-openvpn-client.sh
blob: d5be78f78c8cb857aa13886cc6d77b484236f986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -x
sudo openvpn \
    --verb 3 \
    --tls-cipher DHE-RSA-AES128-SHA \
    --cipher AES-128-CBC \
    --auth-nocache \
    --proto tcp \
    --dev tun --client --tls-client \
    --remote-cert-tls server --tls-version-min 1.2 \
    --ca /tmp/ca.crt --cert /tmp/cert.pem --key /tmp/cert.pem \
    --pull-filter ignore ifconfig-ipv6 \
    --pull-filter ignore route-ipv6 \
    --socks-proxy 127.0.0.1 8080 \
    --remote $OBFS4_ENDPOINT_IP $OBFS4_ENDPOINT_PORT \
    --route $OBFS4_ENDPOINT 255.255.255.255 net_gateway