Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: veno on September 06, 2005, 09:03:16 PM

Title: Iptables and cron jobs for blocking and reallowing server
Post by: veno on September 06, 2005, 09:03:16 PM
See what i'm doing is tryign to get my quake server on 1.32 point release to list faster in the in-game-browser, i was reading on a webpage how to do it! I'll post the webpage and u'll see why i'm blocking then releasing. Here is the website where i got this info
http://www.escapedturkey.com/cfaq/index.php?qid=107&catid=24
See my server lists but theres 1900 servers and it lists at the bottom and no one sees it

BTW i changed my cronjob to this tell me if it looks right

30 3 * * * /sbin/iptables -D OUTPUT 1
0 4 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT
30 7 * * * /sbin/iptables -D OUTPUT 1
0 8 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT
30 11 * * * /sbin/iptables -D OUTPUT 1
0 12 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT
30 15 * * * /sbin/iptables -D OUTPUT 1
0 16 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT
30 19 * * * /sbin/iptables -D OUTPUT 1
0 20 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT
30 23 * * * /sbin/iptables -D OUTPUT 1
59 23 * * * /sbin/iptables -A OUTPUT -p tcp -d 192.246.40.56 --destination-port 27950 -j REJECT