leandrocruzti
(usa Linux Mint)
Enviado em 26/08/2020 - 12:05h
Carlos_Cunha escreveu:
VC usa o openvpn via terminal ou algum gerenciador de vpn?
Vc quer que sua rota padrão seja a vpn?
Poste a saída dos dois comandos,
1° Sem estar com a VPN estabelecida
ip a
ip r
2° Com a VPN estabelecida:
ip a
ip r
#-------------------------------------------------------------------------------------#
"Falar é fácil, me mostre o código." - Linus Torvalds
#-------------------------------------------------------------------------------------#
Eu estou usando o Ubuntu em modo gráfico, assim quando preciso habilitar a VPN eu faço isso através da opção Conexões VPN. Eu precisei instalar o OpenVPN para importar as configurações salvas de conexão.
A rota padrão é a rede local. A VPN será usada para ocasionalmente eu precisar acessar este servidor remoto.
Seguem as informações solicitadas nas duas situações:
Sem conexão VPN
francisco@pc003:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 0c:9d:92:8e:30:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.1.124/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 5690sec preferred_lft 5690sec
inet6 fe80::ef9a:834f:b849:77aa/64 scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:1a:3f:2c:20:78 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.125/24 brd 192.168.1.255 scope global dynamic wlp3s0
valid_lft 6201sec preferred_lft 6201sec
inet6 fe80::7e31:e854:1f62:6531/64 scope link
valid_lft forever preferred_lft forever
francisco@pc003:~$ ip r
default via 192.168.1.1 dev enp2s0 proto static metric 100
default via 192.168.1.1 dev wlp3s0 proto static metric 600
169.254.0.0/16 dev enp2s0 scope link metric 1000
192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.124 metric 100
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.125 metric 600
--------------------------------------------------------------------------------------------------------------
Com conexão VPN
francisco@pc003:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 0c:9d:92:8e:30:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.1.124/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 5555sec preferred_lft 5555sec
inet6 fe80::ef9a:834f:b849:77aa/64 scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:1a:3f:2c:20:78 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.125/24 brd 192.168.1.255 scope global dynamic wlp3s0
valid_lft 6066sec preferred_lft 6066sec
inet6 fe80::7e31:e854:1f62:6531/64 scope link
valid_lft forever preferred_lft forever
9: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.21.1.34/24 brd 10.21.1.255 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::2e9a:7d66:493b:2264/64 scope link flags 800
valid_lft forever preferred_lft forever
francisco@pc003:~$ ip r
default via 10.21.1.1 dev tun0 proto static metric 50
default via 192.168.1.1 dev enp2s0 proto static metric 100
default via 192.168.1.1 dev wlp3s0 proto static metric 600
10.21.1.0/24 dev tun0 proto kernel scope link src 10.21.1.34 metric 50
169.254.0.0/16 dev enp2s0 scope link metric 1000
187.108.190.216 via 192.168.1.1 dev enp2s0 proto static metric 100
192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.124 metric 100
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.125 metric 600