schoolisoutfan
Lt. Commander
- Registriert
- Nov. 2004
- Beiträge
- 1.105
Hi,
auf der Suche nach einem Skript um meinen Heimserver in den Standby zu schicken wenn kein Zugriff erfolgt, bin ich auf diverse Skripte gestoßen. Allerdings beruhten diese alle darauf das die Zugriffs IP bekannt ist. Wie sieht es nun eigentlich aus wenn ich möchte das z.B. gelauscht werden soll ob auf Port 80 anfragen laufen? Und ist es möglich einen "Schwellwert" fest zu legen? Von OMV weis ich das es möglich ist einen Port und die Netzwerklast fest zu legen. Bei Debian habe ich noch nicht das richtige gefunden.
Auf Ubuntuusers habe ich z.B. folgendes Skript gefunden:
# Turn on auto suspend
AUTO_SUSPEND='yes'
# Turning suspend by day (8 a.m. to 3 a.m.) off
DONT_SUSPEND_BY_DAY='no'
# Automatically reboot once a week when the system isn't in use
REBOOT_ONCE_PER_WEEK='yes'
# Daemons that always have one process running, only if more that one process is active we prevent the suspend
# The values are used with grep, so just a unique portion is sufficient
DAEMONS=''
# Important applications that shall prevent the suspend
# The values are used with grep, so just a unique portion is sufficient
APPLICATIONS='"^nxagent$" "^rsnapshot$" "^wsus$" "^wget$" "^screen$" "^mlnetp$" "^apt-get$" "^aptitude$" "^dpkg$" "^cp$"'
# Network IP range for checking any open samba connections
# The value is used with grep, so just a unique portion is sufficient
SAMBANETWORK='192.168.1.'
# Names or IP for computers that shall prevent the suspend
# We ping these computers in the list to check whether they are active.
CLIENTS='COMPUTER1 COMPUTER2'
Leider fehlt mir da die Port Überwachung.
Gruß
auf der Suche nach einem Skript um meinen Heimserver in den Standby zu schicken wenn kein Zugriff erfolgt, bin ich auf diverse Skripte gestoßen. Allerdings beruhten diese alle darauf das die Zugriffs IP bekannt ist. Wie sieht es nun eigentlich aus wenn ich möchte das z.B. gelauscht werden soll ob auf Port 80 anfragen laufen? Und ist es möglich einen "Schwellwert" fest zu legen? Von OMV weis ich das es möglich ist einen Port und die Netzwerklast fest zu legen. Bei Debian habe ich noch nicht das richtige gefunden.
Auf Ubuntuusers habe ich z.B. folgendes Skript gefunden:
# Turn on auto suspend
AUTO_SUSPEND='yes'
# Turning suspend by day (8 a.m. to 3 a.m.) off
DONT_SUSPEND_BY_DAY='no'
# Automatically reboot once a week when the system isn't in use
REBOOT_ONCE_PER_WEEK='yes'
# Daemons that always have one process running, only if more that one process is active we prevent the suspend
# The values are used with grep, so just a unique portion is sufficient
DAEMONS=''
# Important applications that shall prevent the suspend
# The values are used with grep, so just a unique portion is sufficient
APPLICATIONS='"^nxagent$" "^rsnapshot$" "^wsus$" "^wget$" "^screen$" "^mlnetp$" "^apt-get$" "^aptitude$" "^dpkg$" "^cp$"'
# Network IP range for checking any open samba connections
# The value is used with grep, so just a unique portion is sufficient
SAMBANETWORK='192.168.1.'
# Names or IP for computers that shall prevent the suspend
# We ping these computers in the list to check whether they are active.
CLIENTS='COMPUTER1 COMPUTER2'
Leider fehlt mir da die Port Überwachung.
Gruß