Hello guys.Help me to understand.
Kali Linux:after connecting to "client1.ovpn" lost internet access.
Kali Linux I launch through Virtual Box installed on Windows 10
When trying to connect with windows 10, the Internet works.
Question:Why can't I connect with Kali Linux? I enclose logs:
Client log:
Mon Jul 13 20:54:28 2020 OpenVPN 2.4.9 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 21 2020
Mon Jul 13 20:54:28 2020 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
Mon Jul 13 20:54:28 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Jul 13 20:54:28 2020 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Mon Jul 13 20:54:28 2020 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Jul 13 20:54:28 2020 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Mon Jul 13 20:54:28 2020 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Jul 13 20:54:28 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]45.82.XX.XXX:XXXX
Mon Jul 13 20:54:28 2020 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Jul 13 20:54:28 2020 UDP link local: (not bound)
Mon Jul 13 20:54:28 2020 UDP link remote: [AF_INET]45.82.XX.XXX:XXXX
Mon Jul 13 20:54:28 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Mon Jul 13 20:54:28 2020 TLS: Initial packet from [AF_INET]45.82.XX.XXX:XXXX, sid=08495c79 38abfcc6
Mon Jul 13 20:54:28 2020 VERIFY OK: depth=1, CN=Easy-RSA CA
Mon Jul 13 20:54:28 2020 VERIFY KU OK
Mon Jul 13 20:54:28 2020 Validating certificate extended key usage
Mon Jul 13 20:54:28 2020 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Mon Jul 13 20:54:28 2020 VERIFY EKU OK
Mon Jul 13 20:54:28 2020 VERIFY OK: depth=0, CN=server
Mon Jul 13 20:54:28 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1549'
Mon Jul 13 20:54:28 2020 WARNING: 'cipher' is used inconsistently, local='cipher AES-256-CBC', remote='cipher AES-256-GCM'
Mon Jul 13 20:54:28 2020 WARNING: 'auth' is used inconsistently, local='auth SHA256', remote='auth [null-digest]'
Mon Jul 13 20:54:28 2020 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA
Mon Jul 13 20:54:28 2020 [server] Peer Connection Initiated with [AF_INET]45.82.XX.XXX:XXXX
Mon Jul 13 20:54:29 2020 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Jul 13 20:54:29 2020 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.222.222,dhcp-option DNS 208.67.220.220,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5,peer-id 0,cipher AES-256-GCM'
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: timers and/or timeouts modified
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: --ifconfig/up options modified
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: route options modified
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: peer-id set
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: adjusting link_mtu to 1624
Mon Jul 13 20:54:29 2020 OPTIONS IMPORT: data channel crypto options modified
Mon Jul 13 20:54:29 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Mon Jul 13 20:54:29 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Jul 13 20:54:29 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Jul 13 20:54:29 2020 ROUTE_GATEWAY 10.0.2.2/255.255.255.0 IFACE=eth0 HWADDR=08:00:27:e9:5c:e8
Mon Jul 13 20:54:29 2020 TUN/TAP device tun0 opened
Mon Jul 13 20:54:29 2020 TUN/TAP TX queue length set to 100
Mon Jul 13 20:54:29 2020 /sbin/ip link set dev tun0 up mtu 1500
Mon Jul 13 20:54:29 2020 /sbin/ip addr add dev tun0 local 10.8.0.6 peer 10.8.0.5
Mon Jul 13 20:54:29 2020 /etc/openvpn/update-resolv-conf tun0 1500 1552 10.8.0.6 10.8.0.5 init
Mon Jul 13 20:54:29 2020 /sbin/ip route add 45.82.XX.XXX/32 via 10.0.2.2
RTNETLINK answers: File exists
Mon Jul 13 20:54:29 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Mon Jul 13 20:54:29 2020 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
Mon Jul 13 20:54:29 2020 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
Mon Jul 13 20:54:29 2020 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5
Mon Jul 13 20:54:29 2020 GID set to nogroup
Mon Jul 13 20:54:29 2020 UID set to nobody
Mon Jul 13 20:54:29 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Mon Jul 13 20:54:29 2020 Initialization Sequence Completed
[/ocode]
[oconf=Client config]
client
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote 45.82.XX.XXX:XXXX
;remote my-server-2 XXXX
;http-proxy 109.248.XX.XXX XXXX auto
;connect-retry-max 1
;auth-nocache
;<http-proxy-user-pass>
;mS9JyJ
;AFUXdYH4Ei
;</http-proxy-user-pass>
;remote-random
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
;ca ca.crt
;cert client.crt
;key client.key
remote-cert-tls server
;tls-auth ta.key 1
cipher AES-256-CBC
auth SHA256
verb 3
;mute 20
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
[/oconf]
[oconf=Server config]
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key
;dh dh2048.pem
dh none
;topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
;push "redirect-gateway def1 bypass-dhcp"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 1 # This file is secret
tls-crypt ta.key
;cipher AES-256-CBC
cipher AES-256-GCM
auth SHA256
;compress lz4-v2
;push "compress lz4-v2"
;comp-lzo
;max-clients 100
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
explicit-exit-notify 1
[/oconf]
I am grateful to everyone who will help)