Verschiedenes: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 31: | Zeile 31: | ||
*tail -f /var/log/squid3/access.log | *tail -f /var/log/squid3/access.log | ||
===VPN=== | ===VPN=== | ||
| − | *check_openswan_tunnel -l | + | *check_openswan_tunnel -l -> liste |
| + | *check_openswan_tunnel -c -> check | ||
| + | *check_openswan_tunnel -r -> neustart | ||
| + | |||
| + | *ipsec status -> status/liste | ||
| + | *ipsec down ... ipsec up ... -> neustart | ||
===Test Webseiten-Erreichbarkeit=== | ===Test Webseiten-Erreichbarkeit=== | ||
*nc -w 1 -z <Ziel-IP> <Ziel-Port> | *nc -w 1 -z <Ziel-IP> <Ziel-Port> | ||
| + | ===Liberary=== | ||
| + | *befehl ldd um herauszufinden, welche liberary benötigt wird um ein (bzw. das ausgewählte) Programm ausführen zu können | ||
| + | *ldd heißt "List Dynamic Dependencies" | ||
| + | *bspl. | ||
| + | '''ldd /bin/ls''' | ||
| + | <pre> | ||
| + | linux-vdso.so.1 => (0x00007ffd371c0000) | ||
| + | libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f59d3a5d000) | ||
| + | libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59d3693000) | ||
| + | libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f59d3423000) | ||
| + | libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f59d321f000) | ||
| + | /lib64/ld-linux-x86-64.so.2 (0x00007f59d3c7f000) | ||
| + | libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59d3002000) | ||
| + | </pre> | ||
Aktuelle Version vom 11. Juni 2018, 10:27 Uhr
Rechner runterfahren
- shutdown -h now
Rechner neutstarten
- shutdown -r now
Betriebsystem rausfinden
- cat /etc/issue
Ubuntu 16.04.1 LTS \n \l
Arbeitspeicher
- free
CPU Info
- cat /proc/cpuinfo
IP Forwarding
schauen ob aktiv oder nicht
- cat /proc/sys/net/ipv4/ip_forward
Deaktiviert
0
Aktiviert
1
aktivieren
echo 1 > /proc/sys/net/ipv4/ip_forward
dauerhaft aktivieren
- vi /etc/sysctl.conf
- net.ipv4.ip_forward = 1
Squid
- tail -f /var/log/squid3/access.log
VPN
- check_openswan_tunnel -l -> liste
- check_openswan_tunnel -c -> check
- check_openswan_tunnel -r -> neustart
- ipsec status -> status/liste
- ipsec down ... ipsec up ... -> neustart
Test Webseiten-Erreichbarkeit
- nc -w 1 -z <Ziel-IP> <Ziel-Port>
Liberary
- befehl ldd um herauszufinden, welche liberary benötigt wird um ein (bzw. das ausgewählte) Programm ausführen zu können
- ldd heißt "List Dynamic Dependencies"
- bspl.
ldd /bin/ls
linux-vdso.so.1 => (0x00007ffd371c0000) libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f59d3a5d000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f59d3693000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f59d3423000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f59d321f000) /lib64/ld-linux-x86-64.so.2 (0x00007f59d3c7f000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f59d3002000)