xubuntu 14.04 A conexão VPN não tem acesso à rede

1

Estou usando o aplicativo 'Conexões de rede' em 'Todas as configurações' para configurar e conectar-se a um servidor VPN com o objetivo de acessar recursos de rede e usar a Área de Trabalho Remota com a Reminna. A VPN estabelece uma conexão, mas não consigo acessar nenhum recurso de rede.

Por algum motivo, eu consegui fazer isso com sucesso nas últimas semanas com a minha configuração atual, a única mudança é que eu mudei e recebi um novo modem a cabo (dispositivo de gateway). Verifiquei se esse novo dispositivo não tem configuração de firewall e se o Port Forwarding for 3389 (RPD) está configurado. Eu também notei que as redes locais (home & amp; work) foram configuradas para 10.0.0.x, então eu reconfigurei meu local para ser 10.0.1.x, então haveria menos confusão. Além disso, enquanto eu estiver solucionando problemas e precisando de acesso à Internet, em Configurações IPv4- > Rotas marquei a caixa para "Usar esta conexão somente para recursos em sua rede".

Além disso, consegui me conectar à minha VPN e, com sucesso, me conectar remotamente a computadores e recursos com meu tablet Android e com meu computador Win7, que estão na mesma rede que meu computador xubuntu 14.04. Isso parece sugerir que minhas rotas ou configuração vpn podem ter problemas. Eu tentei excluir e recriar minha configuração vpn a partir do zero sem efeito. Eu fiz o meu melhor para pesquisar na web e encontrar problemas / soluções semelhantes, mas estou perplexo. Para solução de problemas, forneci os resultados de rota e ifconfig de antes e depois da conexão vpn e também adicionei a saída / var / log / syslog.

Qualquer ajuda é muito apreciada!

Comando de rota não conectado a vpn

:~$ route
Kernel IP routing table
Destination     Gateway     Genmask         Flags   Metric  Ref Use Iface
default         10.0.1.1    0.0.0.0         UG      0       0   0   eth0
10.0.1.0        *           255.255.255.0   U       1       0   0   eth0

Com VPN "conexão estabelecida com sucesso"

:~$ route
Kernel IP routing table
Destination     Gateway     Genmask         Flags   Metric  Ref Use Iface
default         10.0.1.1    0.0.0.0         UG      0       0   0   eth0
10.0.0.90       *           255.255.255.255 UH      0       0   0   ppp0
10.0.1.0        *           255.255.255.0   U       1       0   0   eth0
xx-xx-xx-xx-st  10.0.1.1    255.255.255.255 UGH     0       0   0   eth0
xx-xx-xx-xx-st  10.0.1.1    255.255.255.255 UGH     0       0   0   eth0

resultados ifconfig sem vpn

:~$ ifconfig
eth0    Link encap:Ethernet  HWaddr 40:16:7e:63:62:10  
        inet addr:10.0.1.30  Bcast:10.0.1.255  Mask:255.255.255.0
        inet6 addr: <xx>:acff/64 Scope:Global
        inet6 addr: <xx>:6210/64 Scope:Global
        inet6 addr: <xx>::ca4e/128 Scope:Global
        inet6 addr: <xx>:6210/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:608006 errors:0 dropped:0 overruns:0 frame:0
        TX packets:401539 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000 
        RX bytes:586253471 (586.2 MB)  TX bytes:39736340 (39.7 MB)

lo      Link encap:Local Loopback  
        inet addr:127.0.0.1  Mask:255.0.0.0
        inet6 addr: ::1/128 Scope:Host
        UP LOOPBACK RUNNING  MTU:65536  Metric:1
        RX packets:44231 errors:0 dropped:0 overruns:0 frame:0
        TX packets:44231 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:0 
        RX bytes:3993104 (3.9 MB)  TX bytes:3993104 (3.9 MB)

Com VPN conectado

:~$ ifconfig
eth0    Link encap:Ethernet  HWaddr 40:16:7f:01:62:10  
        inet addr:10.0.1.30  Bcast:10.0.1.255  Mask:255.255.255.0
        inet6 addr: <xx>acff/64 Scope:Global
        inet6 addr: <xx>:6210/64 Scope:Global
        inet6 addr: <xx>::ca4e/128 Scope:Global
        inet6 addr: <xx>:6210/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:607270 errors:0 dropped:0 overruns:0 frame:0
        TX packets:400937 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000 
        RX bytes:586134269 (586.1 MB)  TX bytes:39688705 (39.6 MB)

lo      Link encap:Local Loopback  
        inet addr:127.0.0.1  Mask:255.0.0.0
        inet6 addr: ::1/128 Scope:Host
        UP LOOPBACK RUNNING  MTU:65536  Metric:1
        RX packets:44145 errors:0 dropped:0 overruns:0 frame:0
        TX packets:44145 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:0 
        RX bytes:3985819 (3.9 MB)  TX bytes:3985819 (3.9 MB)

ppp0    Link encap:Point-to-Point Protocol  
        inet addr:10.0.0.95  P-t-P:10.0.0.90  Mask:255.255.255.255
        UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
        RX packets:19 errors:0 dropped:0 overruns:0 frame:0
        TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:3 
        RX bytes:1045 (1.0 KB)  TX bytes:126 (126.0 B)

Meu arquivo var / log / syslog gera a seguinte saída depois que eu inicio a conexão vpn.

Jul 19 16:26:15 silentone NetworkManager[704]: <info> Starting VPN service 'pptp'...
Jul 19 16:26:15 silentone NetworkManager[704]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 16132
Jul 19 16:26:15 silentone NetworkManager[704]: <info> VPN service 'pptp' appeared; activating connections
Jul 19 16:26:21 silentone NetworkManager[704]: <info> VPN plugin state changed: starting (3)
Jul 19 16:26:21 silentone NetworkManager[704]: <info> VPN connection 'SLGI-1' (Connect) reply received.
Jul 19 16:26:21 silentone pppd[16136]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Jul 19 16:26:21 silentone pppd[16136]: pppd 2.4.5 started by root, uid 0
Jul 19 16:26:21 silentone pppd[16136]: Using interface ppp0
Jul 19 16:26:21 silentone pppd[16136]: Connect: ppp0 <--> /dev/pts/3
Jul 19 16:26:21 silentone pptp[16139]: nm-pptp-service-16132 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jul 19 16:26:21 silentone NetworkManager[704]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jul 19 16:26:21 silentone NetworkManager[704]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Jul 19 16:26:21 silentone NetworkManager[704]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Jul 19 16:26:21 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jul 19 16:26:21 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jul 19 16:26:21 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 33436).
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 58759
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is FFFFFFFF
Jul 19 16:26:22 silentone pptp[16155]: nm-pptp-service-16132 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Jul 19 16:26:22 silentone pppd[16136]: CHAP authentication succeeded
Jul 19 16:26:22 silentone pppd[16136]: MPPE 128-bit stateless compression enabled
Jul 19 16:26:24 silentone pppd[16136]: local  IP address 10.0.0.96
Jul 19 16:26:24 silentone pppd[16136]: remote IP address 10.0.0.90
Jul 19 16:26:24 silentone pppd[16136]: primary   DNS address 10.0.0.8
Jul 19 16:26:24 silentone pppd[16136]: secondary DNS address 10.0.0.9
Jul 19 16:26:24 silentone NetworkManager[704]: <info> VPN connection 'vpn1' (IP4 Config Get) reply received from old-style plugin.
Jul 19 16:26:24 silentone NetworkManager[704]: <info> VPN Gateway: xx.xx.xx.xx
Jul 19 16:26:24 silentone NetworkManager[704]: <info> Tunnel Device: ppp0
Jul 19 16:26:24 silentone NetworkManager[704]: <info> IPv4 configuration:
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Internal Address: 10.0.0.96
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Internal Prefix: 32
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Internal Point-to-Point Address: 10.0.0.90
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Maximum Segment Size (MSS): 0
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Forbid Default Route: yes
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Internal DNS: 10.0.0.8
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   Internal DNS: 10.0.0.9
Jul 19 16:26:24 silentone NetworkManager[704]: <info>   DNS Domain: '(none)'
Jul 19 16:26:24 silentone NetworkManager[704]: <info> No IPv6 configuration
Jul 19 16:26:25 silentone NetworkManager[704]: <info> VPN connection 'vpn1' (IP Config Get) complete.
Jul 19 16:26:25 silentone NetworkManager[704]: <info> Policy set 'LAN on Realtek[Asus]' (eth0) as default for IPv4 routing and DNS.
Jul 19 16:26:25 silentone NetworkManager[704]: <info> Policy set 'LAN on Realtek[Asus]' (eth0) as default for IPv6 routing and DNS.
Jul 19 16:26:25 silentone NetworkManager[704]: <info> Writing DNS information to /sbin/resolvconf
Jul 19 16:26:25 silentone dnsmasq[1560]: setting upstream servers from DBus
Jul 19 16:26:25 silentone dnsmasq[1560]: using nameserver 10.0.0.9#53 for domain 10.in-addr.arpa
Jul 19 16:26:25 silentone dnsmasq[1560]: using nameserver 10.0.0.8#53 for domain 10.in-addr.arpa
Jul 19 16:26:25 silentone dnsmasq[1560]: using nameserver 2001:558:feed::2#53
Jul 19 16:26:25 silentone dnsmasq[1560]: using nameserver 75.75.75.75#53
Jul 19 16:26:25 silentone dnsmasq[1560]: using nameserver 75.75.76.76#53
Jul 19 16:26:25 silentone NetworkManager[704]: <info> VPN plugin state changed: started (4)
Jul 19 16:26:25 silentone dbus[612]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jul 19 16:26:25 silentone dbus[612]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    
por Sqwgglz 19.07.2015 / 23:03

1 resposta

0

Com base nas saídas, você não tem nenhum route para qualquer network que é roteado por vpn connection . Tente adicionar a rota do lado remoto da vpn para ir na interface ppp0 . Para recursos em vpn lado tou deve ter rota. Algo como

:~$ route
Kernel IP routing table
Destination     Gateway     Genmask         Flags   Metric  Ref Use Iface
default         10.0.1.1    0.0.0.0         UG      0       0   0   eth0
10.0.0.90       *           255.255.255.255 UH      0       0   0   ppp0
**10.0.0.0        *           255.255.255.0   U       1       0   0   ppp0**
10.0.1.0        *           255.255.255.0   U       1       0   0   eth0
xx-xx-xx-xx-st  10.0.1.1    255.255.255.255 UGH     0       0   0   eth0
xx-xx-xx-xx-st  10.0.1.1    255.255.255.255 UGH     0       0   0   eth0

A rota pode adicionar várias formas:

diz ao servidor vpn para enviar a rota para o cliente

push "route 10.0.0.0 255.255.255.0"

ou simples adicionar rota manual quando ppp0 está conectado

sudo route add -net 10.0.0.0/24 gw 10.0.0.90 dev ppp0

ou adicionar rota no aplicativo Network Connections em All Settings

    
por 2707974 20.07.2015 / 08:50