View unanswered posts | View active topics
Author |
Message |
BEH
|
Posted: 03.12.12 |
|
|
Godlike |
|
Joined: 03.15.10 Posts: 1132 Location: Nijmegen
|
Interesting. but still. there's only 1 shortest route ye? I figure it uses that route all the time. and it seems there is now either a shorter route found, or some engineer on the railroads forced a detour of some sorts. it works nice anyhow. =)
_________________ Quote: tiru: i do sounds like an alien
|
|
Top |
|
|
natirips
|
Posted: 03.12.12 |
|
|
[dswp]R.Stallman |
|
Joined: 04.13.09 Posts: 2946 Location: Solar System/≈Zagreb
-----tdm:
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
|
A better analogy would be traveling in a big city from point A to point B. Normally you take the shortest route, but during the rush hour an alternate path may be faster.
So when the network is clogged, packets go through different routes.
Now, TCP is like a convoy (all packets take the same route), while UDP is like sending each packet independently.
TCP is more linear in behavior because packets come in the same order at they are sent. This is good as long as the path doesn't get clogged up in the middle of transmission.
UDP, however, uses a different route for each packet, so when one route is clogged other packets may still get to the destination. The problem is that sometimes a packet is not lost, but just delayed so they reach destination in a somewhat random order.
So TCP is good for WWW/file transfers/e-mails/etc., while UDP is better for gaming/real-time monitoring/etc..
_________________ ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
|
|
Top |
|
|
wurst
|
Posted: 03.13.12 |
|
|
Godlike |
|
Joined: 07.15.08 Posts: 4648 Location: Behind U
-----tdm:
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09
|
no, today @ 19h his happened: now the servers are not only fixed, the firewall react within 1-2 seconds on UDP getstatus spam. im not finished yet, i need a clearance system and better perormance in ripping down existing fw states. Code: <?php/* wursti 3-2012 wegen getstatus flood wird betrieben per "tcpdump -n -X 'udp and len <= 60' | php getstatusflood.php"
die kiste snifft q3 getstatuspakete und speichert/reagiert 1x pro sekunde. Kontrolle MySQL auf mileva über "tcpdump "host 192.168.9.5 and tcp port 3306" -n -X"
error_reporting(E_ERROR | E_WARNING | E_PARSE); */$dbhost= '***.***.***.***'; $dbusername= '********'; $dbuserpass= '********';; $dbname= 'mydb'; // $now = time();$in = fopen("php://stdin", "r"); while (! feof($in)) { $textline = fgets($in); if (preg_match("/ IP /", $textline)) { //IP Line, 4rd from here must contain getstatus string $line = 1; $packetinfo = str_word_count($textline, 1, '1234567890.'); $src = $packetinfo['4']; // (thats btw lan IP :P) $dst = $packetinfo['5']; } if ($line == 4) { if (preg_match("/getstatus/i", $textline)) { //we found a getstatus packet, lets go cummulate... $now = time(); $src = explode('.', $src); $src = $src['0']. ".". $src['1']. ".". $src['2']. ".". $src['3']; $array[$src]++ ; if ($last != $now) { //we have a new second! //echo time()."\n"; echo "."; //add new IPs to MySQL DB and update existing records foreach ($array as $src => $count) { if ($count > 50 && $src != ''){ mysql_connect($dbhost, $dbusername, $dbuserpass) or die(mysql_error()); mysql_select_db($dbname) or die('Cannot select database'); unset ($sql_upsert); $sql_upsert = "INSERT INTO nat1_flooding_hosts2 (ip,pps_avg,active_sec,last_seen)\n"; $sql_upsert .= "VALUES ('$src', '$count', '1', '')\n"; $sql_upsert .= "ON DUPLICATE KEY UPDATE active_sec=active_sec+1, pps_avg=((pps_avg * active_sec) + $count)/(active_sec + 1),last_seen=now();\n"; //echo $sql_upsert; mysql_query($sql_upsert); //find out wether we have a new record in DB (without SQLing again) if (mysql_affected_rows()){ if (mysql_affected_rows() == '1'){//on update we have *2* affected rows lol system("easyrule block wan $src", $return); echo "$return\n"; } else { //ausmerzen bei update verdammt :P system("pfctl -k $src", $states); system("pfctl -K $src", $srcnodes); echo "$states\n$srcnodes\n"; } } mysql_close(); // $fw_check ="SELECT ip FROM nat1_flooding_hosts2";// $fw_check .="WHERE active_sec = 1 AND ip = $src";// $fw_check .=";";// $result = mysql_query($fw_check, $db);// echo mysql_result($result, 0); echo "$src - $count\n"; } } //echo ".\n\n"; //unset($src); unset($count); unset($return); unset($states); unset($srcnodes); unset($array); } // echo $src."\n"; $last = $now; } } $line++; }?>
_________________
|
|
Top |
|
|
natirips
|
Posted: 03.13.12 |
|
|
[dswp]R.Stallman |
|
Joined: 04.13.09 Posts: 2946 Location: Solar System/≈Zagreb
-----tdm:
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
|
Attachment:
screenshot3.png [ 53.31 KiB | Viewed 6526 times ]
Quote: Wusrti sows fear.
_________________ ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
|
|
Top |
|
|
wurst
|
Posted: 03.13.12 |
|
|
Godlike |
|
Joined: 07.15.08 Posts: 4648 Location: Behind U
-----tdm:
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09
|
wursti knows gnawing creatures that come @ night! btw it died tonight @ 2am cause mysql connection, when i re-use the connection in script it *forgets* on a specified point. however, its up and running again: Attachment:
gnawing_animals_at_night.png [ 33.39 KiB | Viewed 6529 times ]
_________________
|
|
Top |
|
|
natirips
|
Posted: 03.13.12 |
|
|
[dswp]R.Stallman |
|
Joined: 04.13.09 Posts: 2946 Location: Solar System/≈Zagreb
-----tdm:
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
|
That is hell of a lot of blocked traffic.
_________________ ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
|
|
Top |
|
|
natirips
|
Posted: 03.15.12 |
|
|
[dswp]R.Stallman |
|
Joined: 04.13.09 Posts: 2946 Location: Solar System/≈Zagreb
-----tdm:
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60
|
But it looks like there's more blocked traffic than passed traffic.
_________________ ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
|
|
Top |
|
|
Who is online |
Users browsing this forum: No registered users and 51 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
voice server |
|
|
|
top 20 players
name | skill | kills |
---|
-Dws.BLINGBLING*-* | 1730.63 | 418631 | NormaSnockers | 1865.75 | 400492 | Zottel | 1760.8 | 276378 | make.them.suffer | 1846.17 | 269872 | >8v= | 1825.35 | 230156 | moon | 1777.56 | 195615 | sjas | 1692.49 | 192315 | peace | 1878.86 | 190660 | Wagner_Moura | 1562.9 | 188001 | Goomba | 1859.75 | 182677 | z0rn | 1608.41 | 181016 | Mad | 1803.76 | 179124 | [dswp]PLZ | 1847.85 | 178516 | Graf_ZahlIII | 1835.73 | 167407 | Zohan | 1611.07 | 159737 | ubercunt | 1634.93 | 159240 | Yarrr! | 1917.33 | 156233 | I_am_nOOb | 1909.64 | 151268 | Pandageddon | 1891.75 | 148319 | Pirat | 1664.08 | 145798 |
|
|
|