Freesco, NND, CDN, EOS
http://forum.freesco.pl/

staty jak dodac
http://forum.freesco.pl/viewtopic.php?f=22&t=11157
Strona 1 z 2

Autor:  kozik132 [ środa, 8 lutego 2006, 21:52 ]
Tytuł:  staty jak dodac

dodalem nowego uzytkownika do neta i jak moge go dodac do stat takich http://83.27.19.24/stats/stat.php

Autor:  barte-k [ środa, 8 lutego 2006, 22:41 ]
Tytuł: 

zrestaruj staty.

Autor:  kozik132 [ środa, 8 lutego 2006, 23:06 ]
Tytuł: 

a jak mam to zrobic ??

Autor:  barte-k [ czwartek, 9 lutego 2006, 00:59 ]
Tytuł: 

sorki pomyrdało mi sie z innymi statami :/ w kazdym razie poczytaj to :-)

http://alec.pl/linux/stats.html

Autor:  Jaca [ czwartek, 9 lutego 2006, 05:07 ]
Tytuł: 

W pliku /etc/hosts dopisz użytkownika,
a w /etc/rc.d/bałwan jestem (tak jest u mnie) kolejną linie z IP nowego użytkownika
: [/] [] ()
#!/bin/bash
iptables -t mangle -D FORWARD -i eth1 -j STAT >/dev/null 2>&1
iptables -t mangle -D FORWARD -o eth1 -j STAT >/dev/null 2>&1
iptables -t mangle -F STAT >/dev/null 2>&1
iptables -t mangle -X STAT >/dev/null 2>&1
iptables -t mangle -N STAT
iptables -t mangle -I FORWARD -o eth1 -j STAT
iptables -t mangle -I FORWARD -i eth1 -j STAT


#dla poszczególnych kompów
iptables -t mangle -A STAT -d 192.168.1.3
iptables -t mangle -A STAT -s 192.168.1.3

iptables -t mangle -A STAT -d 192.168.1.4
iptables -t mangle -A STAT -s 192.168.1.4

iptables -t mangle -A STAT -d 192.168.1.5
iptables -t mangle -A STAT -s 192.168.1.5

iptables -t mangle -A STAT -d 192.168.1.6
iptables -t mangle -A STAT -s 192.168.1.6

iptables -t mangle -A STAT -d 192.168.1.7
iptables -t mangle -A STAT -s 192.168.1.7

iptables -t mangle -A STAT -d 192.168.1.8
iptables -t mangle -A STAT -s 192.168.1.8

Autor:  kozik132 [ czwartek, 9 lutego 2006, 09:53 ]
Tytuł: 

tak wlasnie zrobilem i nie dziala

Autor:  barte-k [ czwartek, 9 lutego 2006, 11:10 ]
Tytuł: 

restartowales iptables?

Autor:  hx [ czwartek, 9 lutego 2006, 11:18 ]
Tytuł: 

a co ma iptables do tych statystyk ?
gość mam poprostu problem z zrestartowaniem tych statystyk

Autor:  barte-k [ czwartek, 9 lutego 2006, 11:23 ]
Tytuł: 

skrypt stat.pl restartuje sie w cronie co 5 minut
a co ma iptables do tego? pewnie duzo, bo podejrzewam ze sciagnietych MB NND na liczydle nie liczy...

Autor:  hx [ czwartek, 9 lutego 2006, 11:29 ]
Tytuł: 

zrestartuj rc.d/bałwan jestem
iptables restartuje codziennie z crona (zrywanie p2p) i staty działają normalnie

Autor:  kozik132 [ czwartek, 9 lutego 2006, 16:44 ]
Tytuł: 

nie wiem czy dobrze ale wpisuje cos takiego /etc/rc.d/reguly restart i nie dziala nie moge ich zrestartowac

Autor:  hx [ czwartek, 9 lutego 2006, 17:25 ]
Tytuł: 

jak wpisujesz tak jak tu to źle

Autor:  kozik132 [ czwartek, 9 lutego 2006, 17:28 ]
Tytuł: 

a jak mam wpisac

Autor:  hx [ czwartek, 9 lutego 2006, 17:29 ]
Tytuł: 

bez błędu ortograficznego matołku

Autor:  kozik132 [ czwartek, 9 lutego 2006, 17:36 ]
Tytuł: 

no ale w rc.d tez mam z tym bledem wpisane i dlatego tak napisalem ale nie dziala

Autor:  hx [ czwartek, 9 lutego 2006, 17:46 ]
Tytuł: 

az wiesz jakie ten nowy ktoś ma ip ?

wklej do tego pliku reguły taką zawartość

: [/] [] ()
#!/bin/bash
iptables -t mangle -D FORWARD -i eth1 -j STAT >/dev/null 2>&1
iptables -t mangle -D FORWARD -o eth1 -j STAT >/dev/null 2>&1
iptables -t mangle -F STAT >/dev/null 2>&1
iptables -t mangle -X STAT >/dev/null 2>&1
iptables -t mangle -N STAT
iptables -t mangle -I FORWARD -o eth1 -j STAT
iptables -t mangle -I FORWARD -i eth1 -j STAT

NR=2;
while [ $NR -le 254 ]; do
#dla poszczególnych kompów
iptables -t mangle -A STAT -d 192.168.0.$NR
iptables -t mangle -A STAT -s 192.168.0.$NR
NR=$[NR + 1]
done

Autor:  kozik132 [ czwartek, 9 lutego 2006, 17:52 ]
Tytuł: 

mam cos takiego i dziala tylko tego nowego kompa nie wykrywa nowy uzytkownik ma ip 192.168.0.5 i dodalem go wyglada to tak


iptables -t mangle -D FORWARD -i eth0 -j STAT >/dev/null 2>&1
iptables -t mangle -D FORWARD -o eth0 -j STAT >/dev/null 2>&1
iptables -t mangle -F STAT >/dev/null 2>&1
iptables -t mangle -X STAT >/dev/null 2>&1
iptables -t mangle -N STAT
iptables -t mangle -I FORWARD -o eth0 -j STAT
iptables -t mangle -I FORWARD -i eth0 -j STAT

# i dla kazdego komputera po dwie reguly
iptables -t mangle -A STAT -d 192.168.0.2
iptables -t mangle -A STAT -s 192.168.0.2
iptables -t mangle -A STAT -d 192.168.0.6
iptables -t mangle -A STAT -s 192.168.0.6
iptables -t mangle -A STAT -d 192.168.0.9
iptables -t mangle -A STAT -s 192.168.0.9
iptables -t mangle -A STAT -d 192.168.0.11
iptables -t mangle -A STAT -s 192.168.0.11
iptables -t mangle -A STAT -d 192.168.0.40
iptables -t mangle -A STAT -s 192.168.0.40
iptables -t mangle -A STAT -d 192.168.0.5
iptables -t mangle -A STAT -s 192.168.0.5

Autor:  hx [ czwartek, 9 lutego 2006, 17:56 ]
Tytuł: 

napisz na gg

Autor:  kozik132 [ czwartek, 9 lutego 2006, 18:00 ]
Tytuł: 

ok juz dziala tylko nie wiem jak sobie z tym poradzic luknij tu

http://forum.freesco.pl/viewtopic.php?p=67844#67844

Autor:  hx [ czwartek, 9 lutego 2006, 18:14 ]
Tytuł: 

ustawić limity w niceshaperze i dodać imq

Strona 1 z 2 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/