Register for your free account! | Forgot your password?

You last visited: Today at 04:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Crontab Anliegen

Discussion on Crontab Anliegen within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
Chaosnightx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 340
Received Thanks: 114
Crontab Anliegen

Servus,
besteht die Möglichkeit, dass mir jemand
ein Crontab Script erstellt, welches den Befehl "service pf reload" alle 2 Minuten läd? Liebe Grüße.
Chaosnightx3 is offline  
Old 01/26/2016, 22:37   #2
 
HighWave's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 487
Received Thanks: 76
Quote:
Originally Posted by Chaosnightx3 View Post
Servus,
besteht die Möglichkeit, dass mir jemand
ein Crontab Script erstellt, welches den Befehl "service pf reload" alle 2 Minuten läd? Liebe Grüße.
Wo liegt denn dein Problem ?
HighWave is offline  
Old 01/26/2016, 22:45   #3
 
Chaosnightx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 340
Received Thanks: 114
Quote:
Originally Posted by HighWave View Post
Wo liegt denn dein Problem ?

Meine Homepage ist mit meinem Datenbankserver verknüpft, ist ja wohl logisch...
nur rückt diese alle 3 Minuten einen 500 Internal Server error raus. Und wenn ich die Firewall neuladen, geht die Homepage wieder... Deswegen mein Anliegen.
Chaosnightx3 is offline  
Old 01/26/2016, 22:49   #4
 
elite*gold: 185
Join Date: Jan 2010
Posts: 840
Received Thanks: 121
2 * * * * service pf reload

?? ^^
Wayne3 is offline  
Old 01/26/2016, 22:50   #5
 
Chaosnightx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 340
Received Thanks: 114
Quote:
Originally Posted by Wayne3 View Post
2 * * * * service pf reload

?? ^^
Fehlt da nicht was? o_O

Edit: Klappt.
Chaosnightx3 is offline  
Old 01/27/2016, 12:06   #6
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,422
Received Thanks: 1,368
ist aber ein schlechter weg?

warum setzt du in der pf nicht einfach die IP´s auf die Whitelist?
blackout85 is offline  
Old 01/27/2016, 12:15   #7

 
#dynastie's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 593
Received Thanks: 467
Quote:
Originally Posted by blackout85 View Post
ist aber ein schlechter weg?

warum setzt du in der pf nicht einfach die IP´s auf die Whitelist?
Metin2-Szene eben. Juckt doch keinen, hauptsache man "umgeht" das Problem. Immer schön kontraproduktiv arbeiten
#dynastie is offline  
Thanks
2 Users
Old 01/27/2016, 12:38   #8
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,422
Received Thanks: 1,368
yoar leider wird es so gemacht.

Schlimmer finde ich aber die copy paste Fehler wo das unglaubliche "ich habe nichts geändert" Phänomen auftritt :P

Ich tippe bei diesem Fall hier eher auf die max_connections der mysql. bzw das wird das nächste Problem sein.
blackout85 is offline  
Old 01/27/2016, 12:45   #9

 
#dynastie's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 593
Received Thanks: 467
@TE:
Probiers hiermit. Musst natürlich dein Interface und deine Ports anpassen. Kannst dann auch deinen Webserver bspw. whitelisten.

PHP Code:
# Change the value to reflect your public interface. You can see this with ifconfig.
ext_if="em0"
     
# IP addresses that should override the firewall rules, such as your web server.
table <trusted_hosts> const { 8.8.8.8 8.8.4.4 }

# Ports used for services (SSH, MySQL)
service_ports="{ 22 3306 }"
     
# Ports used by Metin2
game_ports="{ 11002 13000 13002 }"

# Sets the interface for which PF should gather statistics such as bytes in/out and packets passed/blocked. Statistics can only be gathered for one interface at a time. 
set loginterface $ext_if

#Skip all PF processing on interface. This can be useful on loopback interfaces where filtering, normalization, queueing, etc, are not required. This option can be used multiple times. By default this option is not set. 
set skip on lo
    
# Table for abusive hosts        
table <abusive_hostspersist

# Block these bastards.
block in quick from <abusive_hosts>

# Schutz gegen gefälschte Adressen für Alle Interfaces aktivieren
block in quick from urpf-failed

# block anything coming from sources that we have no back routes for.
block in from no-route to any

# Rate limits, trial and error (service ports)
pass in on $ext_if proto tcp to any port $service_ports flags S/SA keep state \
       (
max-src-conn 30max-src-conn-rate 5/15overload <abusive_hostsflush)
     
# Rate limits, trial and error (metin2 ports)
pass in on $ext_if proto {tcp,udpto any port $game_ports flags S/SA keep state \
       (
max-src-conn 30max-src-conn-rate 5/15overload <abusive_hostsflush)
       

# Allow whitelist override the firewall rules.       
pass in quick from <trusted_hosts>

pass out all keep state
pass out on $ext_if all modulate state
     
# Allow ping in
pass in inet proto icmp all icmp-type echoreq 
#dynastie is offline  
Reply


Similar Threads Similar Threads
Crontab wichtig
01/26/2015 - Metin2 Private Server - 2 Replies
Hallo Leute. Ne kurze frage und zwar wie verlasse ich crontabe in putty (nachdem ich was hingeschriben habe in )crontab -e hilfe
Suche Cronjob/Crontab
04/14/2014 - Metin2 Private Server - 9 Replies
Suche ein Cronjob/Crontab der den Server genau um 23:54 Stoppt und um 23:55 Rebootet und nach dem Reboot sobald er wieder oben ist soll er noch ca 1 Min warten und dann wieder Startet mit 2 Channels... Wäre sehr Korrekt wenn mir jemand da helfen könnte...
start.sh mit Crontab
08/01/2012 - Metin2 Private Server - 2 Replies
Heyho! Habe derzeit ein Problem mit meiner start.sh.. Ich will diese über einen Crontab alle 5 Minuten ausführen lassen. Gesagt getan - das Script wird alle 5 Minuten ausgeführt. Nun jedoch das Problem: Es wird nur der DB Core gestartet, die anderen Cores dumpen aber..
Crontab Problem
07/08/2012 - Metin2 Private Server - 0 Replies
Heyho! Habe heute ein Corerestart Script (das von Aiir7) auf meine jeweiligen Channel angepasst und halt ausprobiert. Funktioniert auch alles perfekt, aber wenn ich das Script nun über einen Crontab starten lassen will, tut sich nichts. Hier mal der Crontab: */5 * * * * sh /usr/home/game/restart.sh
Cronjobs/Crontab
08/30/2011 - General Coding - 4 Replies
Hai Leute, ich betreibe seit ca. 1/2 Jahr ein Forum, ich habe bis jetzt alle Backups, manuell erstellt, dazu nutze ich die Software MysqlDumper. Aber mir geht es langsam auf den zeiger, die Backups manuell zu erstellen. Das Woltlab Burning Board bietet die Funktion "Zeitgesteuerte Aufgaben" zu erstellen, sogenannte Cronjobs. Ich kenne mich damit noch nicht sogut aus, deswegen frage ich hier, ob vielleicht jemand so ein Script bereits hat, und es auch nutzt. mfg



All times are GMT +1. The time now is 04:14.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.