Advertisement
codegazer

Mageia9-alpha1 vpn_status for openvpn with ProtonVPN

Oct 28th, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. # "vpn_status" check on Mageia9-alpha1 test version
  2. # Observation: openvpn connection on ProtonVPN works well
  3.  
  4. [user@h30-mageia9-alpha1 ~]$ vpn_status
  5. Checking for network interface tun0
  6. ifconfig tun0
  7. tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
  8. inet 10.25.0.2 netmask 255.255.0.0 destination 10.25.0.2
  9. inet6 fe80::97a2:af9d:4524:5d4c prefixlen 64 scopeid 0x20<link>
  10. unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
  11. RX packets 3991 bytes 1206093 (1.1 MiB)
  12. RX errors 0 dropped 0 overruns 0 frame 0
  13. TX packets 4203 bytes 1451010 (1.3 MiB)
  14. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  15.  
  16. VPN active on network interface: tun0
  17. Checking default gateway address
  18. netstat -rn | grep ^0.0.0.0 | head -1 | awk '{print }'
  19. 10.25.0.1
  20. Checking network connectivity to default gateway: 10.25.0.1
  21. ping -c2 10.25.0.1
  22. PING 10.25.0.1 (10.25.0.1) 56(84) bytes of data.
  23. 64 bytes from 10.25.0.1: icmp_seq=1 ttl=64 time=51.3 ms
  24. 64 bytes from 10.25.0.1: icmp_seq=2 ttl=64 time=50.8 ms
  25.  
  26. --- 10.25.0.1 ping statistics ---
  27. 2 packets transmitted, 2 received, 0% packet loss, time 1002ms
  28. rtt min/avg/max/mdev = 50.837/51.091/51.346/0.254 ms
  29. connection to default gateway 10.25.0.1 is up
  30. Checking for nameserver IP address
  31. grep nameserver /etc/resolv.conf
  32. nameserver 10.25.0.1
  33. Checking network connectivity to nameserver(s)
  34.  
  35. ping -c2 10.25.0.1
  36. PING 10.25.0.1 (10.25.0.1) 56(84) bytes of data.
  37. 64 bytes from 10.25.0.1: icmp_seq=1 ttl=64 time=50.9 ms
  38. 64 bytes from 10.25.0.1: icmp_seq=2 ttl=64 time=50.9 ms
  39.  
  40. --- 10.25.0.1 ping statistics ---
  41. 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
  42. rtt min/avg/max/mdev = 50.898/50.901/50.904/0.003 ms
  43. connection to nameserver 10.25.0.1 is up
  44. Checking external IP address
  45. dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print }'
  46. 89.238.150.173
  47. Checking network connectivity to well known external IP address
  48. ping -c2 8.8.8.8
  49. PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
  50. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=53.4 ms
  51. 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=55.2 ms
  52.  
  53. --- 8.8.8.8 ping statistics ---
  54. 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
  55. rtt min/avg/max/mdev = 53.419/54.285/55.151/0.866 ms
  56. connection to external IP address 8.8.8.8 is up
  57. Checking network route to well know external website
  58. /bin/sudo tcptraceroute google.com
  59. [sudo] password for user:
  60. Selected device tun0, address 10.25.0.2, port 60397 for outgoing packets
  61. Tracing the path to google.com (142.250.200.14) on TCP port 80 (http), 30 hops max
  62. 1 lhr48s29-in-f14.1e100.net (142.250.200.14) [open] 52.984 ms 51.010 ms 51.558 ms
  63. connection to google.com is up
  64. completed
  65. +-------------------------------------+
  66. | Good news: VPN is up and functional |
  67. +-------------------------------------+
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement