- Mitglied seit
- 15 Okt 2006
- Beiträge
- 19
- Punkte für Reaktionen
- 0
- Punkte
- 0
Ja, "ps" zeigt alle laufende Prozesse an, dort müsste dann auch der OpenVPN-Prozess zu sehen sein, wenn es läuft.
Dass du USB nicht trennen kannst, solange noch dropbear darauf zugreift, ist auch klar ;-)
du musst also erst dropbear beenden (oder nicht auf USB zugreifen lassen), ehe der Stick sicher getrennt werden kann.
Hm, ein Problem bleibt hier aber: sobald ich einen reboot per SSH mache, kann ich nicht mehr auf den USB-Speicher zugreifen. :/ Da scheint es irgendwo noch immer mächtig zu haken.
Der OpenVPN-Server läuft nicht:
Code:
# ps
PID Uid VSZ Stat Command
1 root 1308 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
5 root SW< [kthread]
6 root SW< [kblockd/0]
23 root SW< [pdflush]
24 root SW< [pdflush]
26 root SW< [aio/0]
25 root SW [kswapd0]
62 root SW [pm_info]
66 root SW< [CPMAC]
70 root SW [mtdblockd]
90 root SW [tffsd_mtd_0]
260 root SW< [capi_oslib]
261 root SW< [capi_oslib]
263 root SW [capitransp]
290 root SW< [khubd]
411 root 9444 S N ctlmgr
416 root 3744 S upnpd
421 root 4128 S multid
451 root 1984 S wpa_authenticator
489 root 4128 S multid
496 root 9444 S N ctlmgr
497 root 9444 S N ctlmgr
498 root 9444 S N ctlmgr
539 root 3744 S upnpd
540 root 3744 S upnpd
541 root 3744 S upnpd
552 root 4312 S dsld -i -n
572 root 5756 S telefon a127.0.0.1
576 root 4916 S < voipd
583 root 3500 S pbd
584 root 3500 S pbd
589 root 3500 S pbd
590 root 3500 S pbd
595 root SWN [scsi_eh_0]
596 root SWN [usb-storage]
601 root 5756 S telefon a127.0.0.1
602 root 5756 S telefon a127.0.0.1
603 root 5756 S telefon a127.0.0.1
604 root 5756 S telefon a127.0.0.1
605 root 5756 S telefon a127.0.0.1
606 root 5756 S telefon a127.0.0.1
610 root 1320 S /usr/sbin/inetd
625 root 860 S /bin/run_clock -c /dev/tffs -d
655 root 3500 S /usr/bin/faxd -a
656 root 1716 S capiotcp_server -p5031 -m99
677 root 2700 S usermand
779 root 3596 S mediasrv
780 root 3596 S mediasrv
781 root 3596 S mediasrv
782 root 3596 S mediasrv
790 root RWN [kdsld_token]
820 root 1308 S /bin/busybox telnetd -l /sbin/ar7login
1257 root 1560 S /bin/dropbear -E -r /var/media/ftp/USB2-0-Storage-01/
1266 root 1308 S init
1482 root 1616 S /bin/dropbear -E -r /var/media/ftp/USB2-0-Storage-01/
1483 root 1332 S -sh
1561 root 1312 R ps
Startup.sh (Passworthash entfernt
Code:
#!/bin/sh
# whats the base usb directory
BASE=/var/media/ftp/USB2-0-Storage-01/addons/
# change to a temporary directory
cd /var/tmp
# install and start dropbear with our host key
${BASE}/cfg_dropbear usb_install
/bin/dropbear -E -r ${BASE}/dropbear/etc/sshd_rsa_host_key
# set passwords
echo 'root:XXX:0:0:root:/var/tmp/:/bin/sh' > /var
echo 'ftpuser:any:1000:0:ftp user:/var/media/ftp:/bin/sh' >> /var/tmp/passwd
# add fritz box itself in resolv.conf to resolv dhcp attached machines in your n
echo "nameserver 192.168.1.2" >> /var/tmp/resolv.conf
# Add a nobody user
echo 'nobody:x:65534:65534:nobody:/:/bin/false' >> /var/tmp/passwd
# Add some groups
echo 'root:x:0:' > /var/tmp/group
echo 'nobody:x:65534:' >> /var/tmp/group
# Create a tap device for openvpn
mknod /var/tmp/tap0 c 10 200
# Start openvpn
Das tap-device ist auch nicht da:
Code:
# brctl show
bridge name bridge id STP enabled interfaces
lan 8000.00150cf4cec2 no eth0
tiwlan0
wdsdw0
wdsdw1
wdsdw2
wdsdw3
wdsup0
#
in der ar7.cfg ist der Eintrag aber vorhanden:
Code:
brinterfaces {
name = "lan";
dhcp = no;
ipaddr = 192.168.1.2;
netmask = 255.255.255.0;
dstipaddr = 0.0.0.0;
interfaces = "eth0", "tap0", "usbrndis", "tiwlan0", "wdsup0",
"wdsdw0", "wdsdw1", "wdsdw2", "wdsdw3";
dhcpenabled = yes;
Kann ich die Box dazu überreden beim Kaltstart und/oder Softreboot ein log in den Flash zu schreiben falls irgendwo was mit dem USB-Stick schief geht? Weil was anderes fällt mir jetzt nun nicht mehr ein...