Opennet Firmware
 Alle Dateien Funktionen Variablen Gruppen Seiten
reports/on-openvpn
gehe zur Dokumentation dieser Datei
1 #!/bin/sh
2 #
3 # Ueberblick ueber Eigenschaften des Nutzer-VPN-Tunnels
4 #
5 
6 set -eu
7 
8 
10  echo -n "ping $1 - "
11  ping -W 2 -c 3 "$1" >/dev/null && echo "OK" || echo "Error"
12 }
13 
14 
15 # typische Routen
16 (
17  # 0er-Segment
18  ip route get 192.168.0.1
19  # 1er-Segment
20  ip route get 192.168.1.1
21  # 2er-Segment
22  ip route get 192.168.2.1
23  # 3er-Segment
24  ip route get 192.168.3.1
25  # Tunnel-Server
26  ip route get 10.1.0.1
27  # Internet
28  ip route get 1.1.1.1
29 ) >vpn_tunnel_routen.log &
30 
31 
32 # Pings ins Internet
33 (
34  ping_neighbour 8.8.8.8
35  ping_neighbour 139.30.8.8
36  ping_neighbour opennet-initiative.de
37  # viele Pings (Verlustpruefung)
38  ping -W 2 -c 15 8.8.8.8
39  # grosse Pings (MTU-Test)
40  ping -W 2 -c 1 -s 1300 8.8.8.8
41  ping -W 2 -c 1 -s 1400 8.8.8.8
42  ping -W 2 -c 1 -s 1500 8.8.8.8
43 ) >vpn_tunnel_ping.log &
44 
45 wait
46