2021-03-09 16:19:29 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-10-09 20:11:51 +00:00
|
|
|
|
|
|
|
# Write gateway IP for reference
|
2021-08-04 00:26:29 +00:00
|
|
|
echo "$route_vpn_gateway" > /opt/piavpn-manual/route_info
|
2020-10-09 20:11:51 +00:00
|
|
|
|
2021-08-20 13:22:35 +00:00
|
|
|
# Back up resolv.conf and create new one with PIA DNS
|
2020-10-09 20:11:51 +00:00
|
|
|
cat /etc/resolv.conf > /opt/piavpn-manual/resolv_conf_backup
|
|
|
|
echo "# Generated by /connect_to_openvpn_with_token.sh
|
|
|
|
nameserver 10.0.0.241" > /etc/resolv.conf
|