Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # "vpn_status" check on Mageia9-alpha1 test version
- # Observation: openvpn connection on ProtonVPN works well
- [user@h30-mageia9-alpha1 ~]$ vpn_status
- Checking for network interface tun0
- ifconfig tun0
- tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
- inet 10.25.0.2 netmask 255.255.0.0 destination 10.25.0.2
- inet6 fe80::97a2:af9d:4524:5d4c prefixlen 64 scopeid 0x20<link>
- unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
- RX packets 3991 bytes 1206093 (1.1 MiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 4203 bytes 1451010 (1.3 MiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- VPN active on network interface: tun0
- Checking default gateway address
- netstat -rn | grep ^0.0.0.0 | head -1 | awk '{print }'
- 10.25.0.1
- Checking network connectivity to default gateway: 10.25.0.1
- ping -c2 10.25.0.1
- PING 10.25.0.1 (10.25.0.1) 56(84) bytes of data.
- 64 bytes from 10.25.0.1: icmp_seq=1 ttl=64 time=51.3 ms
- 64 bytes from 10.25.0.1: icmp_seq=2 ttl=64 time=50.8 ms
- --- 10.25.0.1 ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms
- rtt min/avg/max/mdev = 50.837/51.091/51.346/0.254 ms
- connection to default gateway 10.25.0.1 is up
- Checking for nameserver IP address
- grep nameserver /etc/resolv.conf
- nameserver 10.25.0.1
- Checking network connectivity to nameserver(s)
- ping -c2 10.25.0.1
- PING 10.25.0.1 (10.25.0.1) 56(84) bytes of data.
- 64 bytes from 10.25.0.1: icmp_seq=1 ttl=64 time=50.9 ms
- 64 bytes from 10.25.0.1: icmp_seq=2 ttl=64 time=50.9 ms
- --- 10.25.0.1 ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
- rtt min/avg/max/mdev = 50.898/50.901/50.904/0.003 ms
- connection to nameserver 10.25.0.1 is up
- Checking external IP address
- dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print }'
- 89.238.150.173
- Checking network connectivity to well known external IP address
- ping -c2 8.8.8.8
- PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
- 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=53.4 ms
- 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=55.2 ms
- --- 8.8.8.8 ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
- rtt min/avg/max/mdev = 53.419/54.285/55.151/0.866 ms
- connection to external IP address 8.8.8.8 is up
- Checking network route to well know external website
- /bin/sudo tcptraceroute google.com
- [sudo] password for user:
- Selected device tun0, address 10.25.0.2, port 60397 for outgoing packets
- Tracing the path to google.com (142.250.200.14) on TCP port 80 (http), 30 hops max
- 1 lhr48s29-in-f14.1e100.net (142.250.200.14) [open] 52.984 ms 51.010 ms 51.558 ms
- connection to google.com is up
- completed
- +-------------------------------------+
- | Good news: VPN is up and functional |
- +-------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement