OpenVPN устанавливают с PIA - Подключения, но никакой Интернет

В настоящее время использование Сервера Ubuntu 14.04 (так никакой GUI, весь терминал) находящийся в VirtualBox, и в настоящее время пытается заставить это соединяться с Частным доступом в Интернет с помощью их конфигураций VPN, найденных здесь (который может быть загружен без счета на тех, которые желают смотреть на их opvm файлы).

После загрузки и извлечения zip-файла, я работаю, например, "sudo openvpn - конфигурируют France.opvm". Это - вывод.

Tue May 13 03:37:06 2014 UDPv4 link local: [undef]
Tue May 13 03:37:06 2014 UDPv4 link remote: [AF_INET]62.210.167.201:1194
Tue May 13 03:37:06 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue May 13 03:37:07 2014 [Private Internet Access] Peer Connection Initiated with [AF_INET]62.210.167.201:1194
Tue May 13 03:37:09 2014 TUN/TAP device tun0 opened
Tue May 13 03:37:09 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue May 13 03:37:09 2014 /sbin/ip link set dev tun0 up mtu 1500
Tue May 13 03:37:09 2014 /sbin/ip addr add dev tun0 local 10.135.1.10 peer 10.135.1.9
Tue May 13 03:37:09 2014 Initialization Sequence Completed

Теперь, от того, что я понимаю, последняя строка говорит, что соединение устанавливается. Секунды и треть последние лаймы показывают OpenVPN, создающий маршруты IP. Если я выполняю ifconfig, я вижу, что существует новый интерфейс tun0 с корректным IP.

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.135.1.10  P-t-P:10.135.1.9  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:336 (336.0 B)

Моя проблема, теперь однако то, что у меня нет доступа в Интернет. Ping не работает и просто испытывает таймаут. Что это, я делаю неправильно, который не позволяет мне иметь соединение? Любая справка ценится.

1
задан 13 May 2014 в 11:46

1 ответ

Необходимо добавить redirect-gateway к Вашей конфигурации (или использование openvpn --redirect-gateway):

--redirect-gateway [local] [def1]
    (Experimental) Automatically execute routing commands to cause all outgoing IP traffic to be redirected over the VPN.

    This option performs three steps:

    (1) Create a static route for the --remote address which forwards to the pre-existing default gateway. This is done so that (3) will not create a routing loop.

    (2) Delete the default gateway route.

    (3) Set the new default gateway to be the VPN endpoint address (derived either from --route-gateway or the second parameter to --ifconfig when --dev tun is specified).

    When the tunnel is torn down, all of the above steps are reversed so that the original default route is restored.

    Add the local flag if both OpenVPN servers are directly connected via a common subnet, such as with wireless. The local flag will cause step 1 above to be omitted.

    Add the def1 flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway.

    Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1.
1
ответ дан 7 October 2019 в 20:31

Другие вопросы по тегам:

Похожие вопросы: