Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest środa, 18 czerwca 2025, 22:23

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 42 ]  Przejdź na stronę 1, 2, 3  Następna
Autor Wiadomość
Post: sobota, 24 lutego 2007, 17:47 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Witam.

Zastosowałem skrypty do podziału łącza z http://www.inet.one.pl/ Mam na serwerze jajo 2.4.32-10. Download jest poprawnie kolejkowany. Problem jest z uploadem. Upload userów wpada do klasy routera. Gdy wyłączę klasę routera, upload userów wpada do piewrszej utworzonej klasy usera. Walczę z tym już troszkę i niestety nie wychodzi mi. Oto jak wygląda skrypt rc.hfsc kolejkujący ruch na serwerze.
Cytuj:
#!/bin/bash
# ----------------- HFSC sharper "rc.hfsc" ----------------
# All rights reserved for B@roo 2000-2006
# ---------------------------------------------------------
#set -x

VERSION="2.9.8"

# Ladowanie konfiguracji
if [ ! -e ${0%rc.hfsc}rc.fire_conf ]; then
exit 1
fi
START_FILE="rc.hfsc"
source ${0%rc.hfsc}rc.fire_conf

# -------- Ladowanie modulow i usuwanie kolejek ------------
ip link set imq0 up
ip link set imq1 up

stop()
{
tc qdisc del root dev imq1 2> /dev/null
tc qdisc del root dev imq0 2> /dev/null
}

# ----------------- Przeliczenia klas ----------------------
start()
{
if [ "$NAT_ENABLE" == "MASQUERADE" ]; then
INTERNET_IP=`ifconfig $INTERNET_ETH | grep "inet addr:" | awk '{print $2}' | cut -d ":" -f 2`
fi

DOWNLOAD_ALL_UL=$[$DOWNLOAD*99/100]
DOWNLOAD_ALL=$[$DOWNLOAD*98/100]

DOWNLOAD_PRIO=`echo $QOS_PRIO_BAND | cut -d':' -f1`
DOWNLOAD_CRIT_FAST=`echo $QOS_CRIT_FAST_BAND | cut -d':' -f1`
DOWNLOAD_CRIT_DATA=`echo $QOS_CRIT_DATA_BAND | cut -d':' -f1`

DOWNLOAD_CRIT_FAST_UL=$DOWNLOAD_ALL_UL
DOWNLOAD_CRIT_DATA_UL=$DOWNLOAD_ALL_UL
DOWNLOAD_NORMAL=$[$DOWNLOAD_ALL-$DOWNLOAD_CRIT_FAST-$DOWNLOAD_CRIT_DATA]

if [ ! `echo $QOS_CRIT_FAST_BAND | cut -d':' -f3` == "hard" ]; then
DOWNLOAD_NORMAL_UL=$DOWNLOAD_ALL_UL
else
DOWNLOAD_NORMAL_UL=$[$DOWNLOAD_ALL_UL-$DOWNLOAD_CRIT_FAST-$DOWNLOAD_CRIT_DATA]
fi

if [ "$DOWNLOAD_CRIT_FAST" -ge "$[$DOWNLOAD_ALL/2]" ]; then
DOWNLOAD_CRIT_FAST_M1=$[$DOWNLOAD_ALL*75/100]
else
DOWNLOAD_CRIT_FAST_M1=$[2*$DOWNLOAD_CRIT_FAST*85/100]
fi

UPLOAD_ALL_UL=$[$UPLOAD*99/100]
UPLOAD_ALL=$[$UPLOAD*98/100]

UPLOAD_PRIO=`echo $QOS_PRIO_BAND | cut -d':' -f2`
UPLOAD_CRIT_FAST=`echo $QOS_CRIT_FAST_BAND | cut -d':' -f2`
UPLOAD_CRIT_DATA=`echo $QOS_CRIT_DATA_BAND | cut -d':' -f2`

UPLOAD_CRIT_FAST_UL=$UPLOAD_ALL_UL
UPLOAD_CRIT_DATA_UL=$UPLOAD_ALL_UL
UPLOAD_NORMAL=$[$UPLOAD_ALL-$UPLOAD_CRIT_FAST-$UPLOAD_CRIT_DATA]

if [ ! `echo $QOS_CRIT_FAST_BAND | cut -d':' -f3` == "hard" ]; then
UPLOAD_NORMAL_UL=$UPLOAD_ALL_UL
else
UPLOAD_NORMAL_UL=$[$UPLOAD_ALL_UL-$UPLOAD_CRIT_FAST-$UPLOAD_CRIT_DATA]
fi

if [ "$UPLOAD_CRIT_FAST" -ge "$[$UPLOAD_ALL/2]" ]; then
UPLOAD_CRIT_FAST_M1=$[$UPLOAD_ALL*75/100]
else
UPLOAD_CRIT_FAST_M1=$[2*$UPLOAD_CRIT_FAST*85/100]
fi

DOWNLOAD_ROUTER=`echo $QOS_ROUTER_BAND | cut -d':' -f1`
UPLOAD_ROUTER=`echo $QOS_ROUTER_BAND | cut -d':' -f3`

if [ ! `echo $QOS_ROUTER_BAND | cut -d':' -f2` == "auto" ]; then
DOWNLOAD_ROUTER_UL=`echo $QOS_ROUTER_BAND | cut -d':' -f2`
else
DOWNLOAD_ROUTER_UL=$DOWNLOAD_NORMAL_UL
fi

if [ ! `echo $QOS_ROUTER_BAND | cut -d':' -f4` == "auto" ]; then
UPLOAD_ROUTER_UL=`echo $QOS_ROUTER_BAND | cut -d':' -f4`
else
UPLOAD_ROUTER_UL=$UPLOAD_NORMAL_UL
fi

USERS_COUNT_DOWN=0
RATE_COUNT_DOWN=0
USERS_COUNT_UP=0
RATE_COUNT_UP=0

if [ ! "$P2P_BAND" == "" ]; then
USERS_COUNT_DOWN=1
USERS_COUNT_UP=1
fi

for i in `cat ${0%$START_FILE}rc.fire_qos | cut -d'#' -f1`
do
if [ ! `echo $i | cut -d':' -f2` == "auto" ]; then
TMP=`echo $i | cut -d':' -f2`
RATE_COUNT_DOWN=$[$RATE_COUNT_DOWN+$TMP]
else
USERS_COUNT_DOWN=$[$USERS_COUNT_DOWN+1]
fi
if [ ! `echo $i | cut -d':' -f4` == "auto" ]; then
TMP=`echo $i | cut -d':' -f4`
RATE_COUNT_UP=$[$RATE_COUNT_UP+$TMP]
else
USERS_COUNT_UP=$[$USERS_COUNT_UP+1]
fi
done

if [ ! "$USERS_COUNT_DOWN" == "0" ]; then
DOWNLOAD_USER_RATE=$[($DOWNLOAD_NORMAL-$DOWNLOAD_PRIO-$DOWNLOAD_ROUTER-$RATE_COUNT_DOWN)/$USERS_COUNT_DOWN]
fi
if [ ! "$USERS_COUNT_UP" == "0" ]; then
UPLOAD_USER_RATE=$[($UPLOAD_NORMAL-$UPLOAD_PRIO-$UPLOAD_ROUTER-$RATE_COUNT_UP)/$USERS_COUNT_UP]
fi

# ------------ Tworzenie kolejek - odbieranie ---------------
### Tworzenie korzenia kolejek
tc qdisc add dev imq0 root handle 1:0 hfsc default 100
tc class add dev imq0 parent 1:0 classid 1:1 hfsc ls m2 ${DOWNLOAD_ALL}kbit ul m2 ${DOWNLOAD_ALL_UL}kbit

### Ruch krytyczny (fast)
tc class add dev imq0 parent 1:1 classid 1:2 hfsc rt m1 ${DOWNLOAD_CRIT_FAST_M1}kbit d 1s m2 ${DOWNLOAD_CRIT_FAST}kbit ls m2 ${DOWNLOAD_CRIT_FAST}kbit ul m2 ${DOWNLOAD_CRIT_FAST_UL}kbit
tc qdisc add dev imq0 parent 1:2 sfq perturb 5
tc filter add dev imq0 parent 1:0 protocol ip prio 3 handle 0x2 fw flowid 1:2

### Ruch krytyczny (data)
tc class add dev imq0 parent 1:1 classid 1:3 hfsc ls m2 ${DOWNLOAD_CRIT_DATA}kbit ul m2 ${DOWNLOAD_CRIT_DATA_UL}kbit
tc qdisc add dev imq0 parent 1:3 sfq perturb 10
tc filter add dev imq0 parent 1:0 protocol ip prio 2 handle 0x3 fw flowid 1:3

### Ruch normalny
tc class add dev imq0 parent 1:1 classid 1:5 hfsc ls m2 ${DOWNLOAD_NORMAL}kbit ul m2 ${DOWNLOAD_NORMAL_UL}kbit

# Ruch priorytetowy
tc class add dev imq0 parent 1:5 classid 1:10 hfsc ls m2 ${DOWNLOAD_PRIO}kbit ul m2 ${DOWNLOAD_NORMAL_UL}kbit
tc qdisc add dev imq0 parent 1:10 sfq perturb 5
tc filter add dev imq0 parent 1:0 protocol ip prio 4 u32 match ip protocol 1 0xff flowid 1:10 # ICMP
tc filter add dev imq0 parent 1:0 protocol ip prio 4 u32 match ip protocol 17 0xff match ip sport 53 0xffff flowid 1:10 # DNS

# Ruch routera
tc class add dev imq0 parent 1:5 classid 1:20 hfsc ls m2 ${DOWNLOAD_ROUTER}kbit ul m2 ${DOWNLOAD_ROUTER_UL}kbit
tc qdisc add dev imq0 parent 1:20 sfq perturb 10
tc filter add dev imq0 parent 1:0 protocol ip prio 4 u32 match ip dst $INTERNET_IP flowid 1:20

# Ruch P2P
if [ ! "$P2P_BAND" == "" ]; then
DOWNLOAD_P2P=`echo $P2P_BAND | cut -d':' -f1`
tc class add dev imq0 parent 1:5 classid 1:30 hfsc ls m2 ${DOWNLOAD_USER_RATE}kbit ul m2 ${DOWNLOAD_P2P}kbit
tc qdisc add dev imq0 parent 1:30 esfq perturb 10 hash dst
tc filter add dev imq0 parent 1:0 protocol ip prio 1 handle 0x30 fw flowid 1:30
fi

# Ruch normalny userow
MARK=100
for i in `cat ${0%$START_FILE}rc.fire_qos | cut -d'#' -f1`
do
DOWN_NORMAL=$DOWNLOAD_USER_RATE
DOWN_CEIL=$DOWNLOAD_NORMAL_UL

ADDRESS=`echo $i | cut -d':' -f1`

if [ ! `echo $i | cut -d':' -f2` == "auto" ]; then
DOWN_NORMAL=`echo $i | cut -d':' -f2`
fi

if [ ! `echo $i | cut -d':' -f3` == "auto" ]; then
DOWN_CEIL=`echo $i | cut -d':' -f3`
DL="ul m2 ${DOWN_CEIL}kbit"
else
DL="ul m2 ${DOWN_CEIL}kbit"
fi

if [ $DOWN_NORMAL -ge $DOWN_CEIL ]; then
DOWN_NORMAL=$DOWN_CEIL
fi

tc class add dev imq0 parent 1:5 classid 1:${MARK} hfsc ls m2 ${DOWN_NORMAL}kbit $DL
if [ "$QOS_ALLOW_METHOD" == "esfq" ]; then
tc qdisc add dev imq0 parent 1:${MARK} esfq perturb 10 hash dst
elif [ "$QOS_ALLOW_METHOD" == "sfq" ]; then
tc qdisc add dev imq0 parent 1:${MARK} sfq perturb 10
else
tc qdisc add dev imq0 parent 1:${MARK} sfq perturb 10
fi
tc filter add dev imq0 parent 1:0 protocol ip prio 6 u32 match ip dst $ADDRESS flowid 1:${MARK}
MARK=$[$MARK+1]
done

# ------------- Tworzenie kolejek - wysylanie ----------------
### Tworzenie korzenia kolejek
tc qdisc add dev imq1 root handle 1:0 hfsc default 100
tc class add dev imq1 parent 1:0 classid 1:1 hfsc ls m2 ${UPLOAD_ALL}kbit ul m2 ${UPLOAD_ALL_UL}kbit

### Ruch krytyczny (fast)
tc class add dev imq1 parent 1:1 classid 1:2 hfsc rt m1 ${UPLOAD_CRIT_FAST_M1}kbit d 1s m2 ${UPLOAD_CRIT_FAST}kbit ls m2 ${UPLOAD_CRIT_FAST}kbit ul m2 ${UPLOAD_CRIT_FAST_UL}kbit
tc qdisc add dev imq1 parent 1:2 sfq perturb 5
tc filter add dev imq1 parent 1:0 protocol ip prio 3 handle 0x2 fw flowid 1:2

### Ruch krytyczny (data)
tc class add dev imq1 parent 1:1 classid 1:3 hfsc ls m2 ${UPLOAD_CRIT_DATA}kbit ul m2 ${UPLOAD_CRIT_DATA_UL}kbit
tc qdisc add dev imq1 parent 1:3 sfq perturb 10
tc filter add dev imq1 parent 1:0 protocol ip prio 2 handle 0x3 fw flowid 1:3

### Ruch normalny
tc class add dev imq1 parent 1:1 classid 1:5 hfsc ls m2 ${UPLOAD_NORMAL}kbit ul m2 ${UPLOAD_NORMAL_UL}kbit

# Ruch priorytetowy
tc class add dev imq1 parent 1:5 classid 1:10 hfsc ls m2 ${UPLOAD_PRIO}kbit ul m2 ${UPLOAD_NORMAL_UL}kbit
tc qdisc add dev imq1 parent 1:10 sfq perturb 5
tc filter add dev imq1 parent 1:0 protocol ip prio 4 u32 match ip protocol 17 0xff match ip dport 53 0xffff flowid 1:10 # DNS
tc filter add dev imq1 parent 1:0 protocol ip prio 4 u32 match ip protocol 1 0xff flowid 1:10 # ICMP
tc filter add dev imq1 parent 1:0 protocol ip prio 4 u32 match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid 1:10 # ACK

# Ruch routera
tc class add dev imq1 parent 1:5 classid 1:20 hfsc ls m2 ${UPLOAD_ROUTER}kbit ul m2 ${UPLOAD_ROUTER_UL}kbit
tc qdisc add dev imq1 parent 1:20 sfq perturb 10
tc filter add dev imq1 parent 1:0 protocol ip prio 4 u32 match ip src $INTERNET_IP flowid 1:20

# Ruch P2P
if [ ! "$P2P_BAND" == "" ]; then
UPLOAD_P2P=`echo $P2P_BAND | cut -d':' -f2`
tc class add dev imq1 parent 1:5 classid 1:30 hfsc ls m2 ${UPLOAD_USER_RATE}kbit ul m2 ${UPLOAD_P2P}kbit
tc qdisc add dev imq1 parent 1:30 esfq perturb 10 hash src
tc filter add dev imq1 parent 1:0 protocol ip prio 1 handle 0x30 fw flowid 1:30
fi

# Ruch normalny userow
MARK=100
for i in `cat ${0%$START_FILE}rc.fire_qos | cut -d'#' -f1`
do
UP_NORMAL=$UPLOAD_USER_RATE
UP_CEIL=$UPLOAD_NORMAL_UL

ADDRESS=`echo $i | cut -d':' -f1`

if [ ! `echo $i | cut -d':' -f4` == "auto" ]; then
UP_NORMAL=`echo $i | cut -d':' -f4`
fi

if [ ! `echo $i | cut -d':' -f5` == "auto" ]; then
UP_CEIL=`echo $i | cut -d':' -f5`
UL="ul m2 ${UP_CEIL}kbit"
else
UL="ul m2 ${UP_CEIL}kbit"
fi

if [ $UP_NORMAL -ge $UP_CEIL ]; then
UP_NORMAL=$UP_CEIL
fi

tc class add dev imq1 parent 1:5 classid 1:${MARK} hfsc ls m2 ${UP_NORMAL}kbit $UL
if [ "$QOS_ALLOW_METHOD" == "esfq" ]; then
tc qdisc add dev imq1 parent 1:${MARK} esfq perturb 10 hash src
elif [ "$QOS_ALLOW_METHOD" == "sfq" ]; then
tc qdisc add dev imq1 parent 1:${MARK} sfq perturb 10
else
tc qdisc add dev imq1 parent 1:${MARK} sfq perturb 10
fi
tc filter add dev imq1 parent 1:0 protocol ip prio 6 u32 match ip src $ADDRESS flowid 1:${MARK}
MARK=$[$MARK+1]
done
}

# -------------------- { start | stop } ----------------------
case "$1" in
'start')
echo "Starting HFSC sharper $VERSION ... - All rights reserved for B@roo 2000-2006"
stop
start
;;
'stop')
echo "Stopping HFSC sharper $VERSION ... - All rights reserved for B@roo 2000-2006"
stop
;;
*)
echo -e "Usage: rc.hfsc { start | stop }"
;;
esac


Czy ktoś już walczył z tym problemem i wie jak go rozwiązać ?


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 24 lutego 2007, 23:03 
Offline
Użytkownik

Rejestracja: wtorek, 28 września 2004, 19:43
Posty: 125
Lokalizacja: podkarpackie
Witam,

Winne jest jajko, a właściwie brak w nim ustawienia rodzaju pracy interfejsów IMQ. Paczka jajka 2.4.32-10nnd z nałożoną łatką IMQ-behawiour jest u mnie na serwerku http://www.ele-net.pl/download/kernel24 ... pkg.tar.gz
Jest tam również paczka z jajkiem 2.6.17 pod te skrypty jak byś był zainteresowany.

Pozdrawiam

_________________
Intel Atom D945GSEJT , 2GB ram, 16GB SSD


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 00:07 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Zainstalowałem kernel24-2.4.32-10nnd z nałożoną łatką IMQ-behawiour w powyższego linku, po instalacji uruchomiłem lilo -v, ale nietety po restarcie sytuacja sie nie zmieniła. Dalej ruch upload userów idzie klasą routera.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 00:19 
Offline
Użytkownik

Rejestracja: sobota, 26 listopada 2005, 07:47
Posty: 864
ja pamiętam, że miałem taki problem, jak miałem postawione dwa interfejsy do netu (alias na inny ip) i nie uwzględniłem tego w konfigu.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 01:15 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Choćbym chciał, niestety nie wiem co jest nie tak. Cały czas ta sama sytuacja, ruch upload od userów idzie klasą routera. Może ktoś mi jeszcze pomóc w rozwiązaniu problemu ?

Oto moje konfigi http://rsk.net.pl/hfsc

Interfejsy podnosze skryptem rc.inet1, dodatkowo podnosze interfejsy IMQ, potem firewall - rc.firewall, i kolejkowanie skryptem rc.hfsc


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 01:49 
Offline
PGF

Rejestracja: niedziela, 14 lipca 2002, 14:33
Posty: 3234
Lokalizacja: Radziejów
A co markuje pakiety w zalezności od adresu żródłowego?

_________________
Nie jestem NEKROMANTĄ, nie wróżę z flaków!
Alkohol pity z umiarem nie szkodzi nawet w największych ilościach!
Przeczytaj nim zapytasz
Obrazek


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 09:46 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Dla download
Cytuj:
tc class add dev imq0 parent 1:5 classid 1:${MARK} hfsc ls m2 ${DOWN_NORMAL}kbit $DL
tc qdisc add dev imq0 parent 1:${MARK} sfq perturb 10
tc filter add dev imq0 parent 1:0 protocol ip prio 6 u32 match ip dst $ADDRESS flowid 1:${MARK}


Dla upload
Cytuj:
tc class add dev imq1 parent 1:5 classid 1:${MARK} hfsc ls m2 ${UP_NORMAL}kbit $UL
tc qdisc add dev imq1 parent 1:${MARK} sfq perturb 10
tc filter add dev imq1 parent 1:0 protocol ip prio 6 u32 match ip src $ADDRESS flowid 1:${MARK}


Nie ma tu markowania, tc filter po adresach zrodlowych lapie.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 20:03 
Offline

Rejestracja: sobota, 26 sierpnia 2006, 20:06
Posty: 95
Cytuj:
Winne jest jajko, a właściwie brak w nim ustawienia rodzaju pracy interfejsów IMQ. Paczka jajka 2.4.32-10nnd z nałożoną łatką IMQ-behawiour jest u mnie na serwerku http://www.ele-net.pl/download/kernel24 ... pkg.tar.gz

W jaki sposób zmienia się tryb pracy IMQ ? W jakim standardowo w NND IMQ pracuje ?


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 21:56 
Offline
Użytkownik

Rejestracja: sobota, 14 maja 2005, 15:07
Posty: 3177
Lokalizacja: Busko-Zdrój
Cytuj:
Winne jest jajko, a właściwie brak w nim ustawienia rodzaju pracy interfejsów IMQ.


co to znaczy? jaki rodzaj?

_________________
Pomógł? wypij jego zdrowie.
http://nnd-linux.pl/faq.php
http://wiki.nnd.freesco.pl/index.php/FAQ


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 21:59 
Offline

Rejestracja: sobota, 26 sierpnia 2006, 20:06
Posty: 95
http://www.djgregor.one.pl/


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 11:22 
Offline
Użytkownik

Rejestracja: wtorek, 28 września 2004, 19:43
Posty: 125
Lokalizacja: podkarpackie
Witam,

Do prawodłowego działania skryptów ze strony inet-u (rc.firewall oraz rc.hfsc) musi być IMQ ustawione w tryb AB lub BA.
Fragment logów po podniesieniu IMQ :
: [/] [] ()
 Feb 24 10:48:00 lskh kernel: IMQ starting with 2 devices...
Feb 24 10:48:00 lskh kernel: IMQ driver loaded successfully.
Feb 24 10:48:00 lskh kernel: ^IHooking IMQ after NAT on PREROUTING.
Feb 24 10:48:00 lskh kernel: ^IHooking IMQ before NAT on POSTROUTING.

W jajkach 2.4.x w configu kernela nie ma możliwości ustawienia tej opcji i domyślnie IMQ pracuje w trybie AA (o ile się nie myle). Dlatego też jeszcze nałożyłem łatkę na jajko IMQ_behaviour, która umożliwia taką konfigurację.
Z tego co doszło do mnie to z tak skonfigurowanym IMQ lepiej pracuje nawet niceshaper, ale nie moge potwierdzić tego bo nie używam go.

Poprawkę tą zgłosiłem na mantisa jakiś czas temu.

Pozdrawiam

_________________
Intel Atom D945GSEJT , 2GB ram, 16GB SSD


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 11:55 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Oto log kernel:
Cytuj:
Feb 26 10:46:13 SERWER kernel: Kernel logging (proc) stopped.
Feb 26 10:46:13 SERWER kernel: Kernel log daemon terminating.
Feb 26 10:48:32 SERWER kernel: klogd 1.4.1, log source = /proc/kmsg started.
Feb 26 10:48:32 SERWER kernel: Inspecting /boot/System.map
Feb 26 10:48:33 SERWER kernel: Loaded 28250 symbols from /boot/System.map.
Feb 26 10:48:33 SERWER kernel: Symbols match kernel version 2.4.32.
Feb 26 10:48:33 SERWER kernel: Loaded 92 symbols from 11 modules.
Feb 26 10:48:33 SERWER kernel: Linux version 2.4.32-10nnd (root@nnd-builder) (gcc version 3.3.3) #1 SMP śro cze 14 20:05:04 BST 2006
Feb 26 10:48:33 SERWER kernel: BIOS-provided physical RAM map:
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 0000000000100000 - 0000000007ef0000 (usable)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 0000000007ef0000 - 0000000007effc00 (ACPI data)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 0000000007effc00 - 0000000007f00000 (ACPI NVS)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 0000000007f00000 - 0000000008000000 (reserved)
Feb 26 10:48:33 SERWER kernel: BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Feb 26 10:48:33 SERWER kernel: 0MB HIGHMEM available.
Feb 26 10:48:33 SERWER kernel: 126MB LOWMEM available.
Feb 26 10:48:33 SERWER kernel: On node 0 totalpages: 32496
Feb 26 10:48:33 SERWER kernel: zone(0): 4096 pages.
Feb 26 10:48:33 SERWER kernel: zone(1): 28400 pages.
Feb 26 10:48:33 SERWER kernel: zone(2): 0 pages.
Feb 26 10:48:33 SERWER kernel: ACPI disabled because your bios is from 2000 and too old
Feb 26 10:48:33 SERWER kernel: You can enable it with acpi=force
Feb 26 10:48:33 SERWER kernel: Kernel command line: auto BOOT_IMAGE=NND_Router ro root=301 ide=nodma
Feb 26 10:48:33 SERWER kernel: ide_setup: ide=nodma : Prevented DMA
Feb 26 10:48:33 SERWER kernel: No local APIC present or hardware disabled
Feb 26 10:48:33 SERWER kernel: Initializing CPU#0
Feb 26 10:48:33 SERWER kernel: Detected 730.907 MHz processor.
Feb 26 10:48:33 SERWER kernel: Console: colour VGA+ 80x25
Feb 26 10:48:33 SERWER kernel: Calibrating delay loop... 1458.17 BogoMIPS
Feb 26 10:48:33 SERWER kernel: Memory: 122876k/129984k available (3271k kernel code, 6720k reserved, 1225k data, 228k init, 0k highmem)
Feb 26 10:48:33 SERWER kernel: Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Feb 26 10:48:33 SERWER kernel: Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Feb 26 10:48:33 SERWER kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Feb 26 10:48:33 SERWER kernel: Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Feb 26 10:48:33 SERWER kernel: Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
Feb 26 10:48:33 SERWER kernel: CPU: L1 I cache: 16K, L1 D cache: 16K
Feb 26 10:48:33 SERWER kernel: CPU: L2 cache: 256K
Feb 26 10:48:33 SERWER kernel: CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
Feb 26 10:48:33 SERWER kernel: CPU: Common caps: 0383f9ff 00000000 00000000 00000000
Feb 26 10:48:33 SERWER kernel: Enabling fast FPU save and restore... done.
Feb 26 10:48:33 SERWER kernel: Enabling unmasked SIMD FPU exception support... done.
Feb 26 10:48:33 SERWER kernel: Checking 'hlt' instruction... OK.
Feb 26 10:48:33 SERWER kernel: POSIX conformance testing by UNIFIX
Feb 26 10:48:33 SERWER kernel: mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
Feb 26 10:48:33 SERWER kernel: mtrr: detected mtrr type: Intel
Feb 26 10:48:33 SERWER kernel: CPU: L1 I cache: 16K, L1 D cache: 16K
Feb 26 10:48:34 SERWER kernel: CPU: L2 cache: 256K
Feb 26 10:48:34 SERWER kernel: CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
Feb 26 10:48:34 SERWER kernel: CPU: Common caps: 0383f9ff 00000000 00000000 00000000
Feb 26 10:48:34 SERWER kernel: CPU0: Intel Pentium III (Coppermine) stepping 06
Feb 26 10:48:34 SERWER kernel: per-CPU timeslice cutoff: 731.53 usecs.
Feb 26 10:48:34 SERWER kernel: SMP motherboard not detected.
Feb 26 10:48:34 SERWER kernel: Local APIC not detected. Using dummy APIC emulation.
Feb 26 10:48:34 SERWER kernel: Waiting on wait_init_idle (map = 0x0)
Feb 26 10:48:34 SERWER kernel: All processors have done init_idle
Feb 26 10:48:34 SERWER kernel: ACPI: Subsystem revision 20040326
Feb 26 10:48:34 SERWER kernel: ACPI: Interpreter disabled.
Feb 26 10:48:34 SERWER kernel: PCI: PCI BIOS revision 2.10 entry at 0xfd9ae, last bus=1
Feb 26 10:48:34 SERWER kernel: PCI: Using configuration type 1
Feb 26 10:48:34 SERWER kernel: PCI: Probing PCI hardware
Feb 26 10:48:34 SERWER kernel: PCI: Probing PCI hardware (bus 00)
Feb 26 10:48:34 SERWER kernel: Transparent bridge - Intel Corp. 82801AA PCI Bridge
Feb 26 10:48:34 SERWER kernel: PCI: Using IRQ router PIIX/ICH [8086/2410] at 00:1f.0
Feb 26 10:48:34 SERWER kernel: PCI: Found IRQ 11 for device 00:1f.2
Feb 26 10:48:34 SERWER kernel: Linux NET4.0 for Linux 2.4
Feb 26 10:48:34 SERWER kernel: Based upon Swansea University Computer Society NET3.039
Feb 26 10:48:34 SERWER kernel: Initializing RT netlink socket
Feb 26 10:48:34 SERWER kernel: apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Feb 26 10:48:34 SERWER kernel: Starting kswapd
Feb 26 10:48:34 SERWER kernel: VFS: Disk quotas vdquot_6.5.1
Feb 26 10:48:34 SERWER kernel: Journalled Block Device driver loaded
Feb 26 10:48:34 SERWER kernel: SGI XFS with no debug enabled
Feb 26 10:48:34 SERWER kernel: SGI XFS Quota Management subsystem
Feb 26 10:48:34 SERWER kernel: vga16fb: initializing
Feb 26 10:48:34 SERWER kernel: vga16fb: mapped to 0xc00a0000
Feb 26 10:48:34 SERWER kernel: Console: switching to colour frame buffer device 80x30
Feb 26 10:48:34 SERWER kernel: fb0: VGA16 VGA frame buffer device
Feb 26 10:48:34 SERWER kernel: pty: 512 Unix98 ptys configured
Feb 26 10:48:34 SERWER kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Feb 26 10:48:34 SERWER kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
Feb 26 10:48:34 SERWER kernel: keyboard: Timeout - AT keyboard not present?(ed)
Feb 26 10:48:34 SERWER kernel: keyboard: Timeout - AT keyboard not present?(f4)
Feb 26 10:48:34 SERWER kernel: ttyS01 at 0x02f8 (irq = 3) is a 16550A
Feb 26 10:48:34 SERWER kernel: Real Time Clock Driver v1.10f
Feb 26 10:48:34 SERWER kernel: Floppy drive(s): fd0 is 1.44M
Feb 26 10:48:34 SERWER kernel: FDC 0 is a National Semiconductor PC87306
Feb 26 10:48:34 SERWER kernel: RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
Feb 26 10:48:34 SERWER kernel: loop: loaded (max 8 devices)
Feb 26 10:48:34 SERWER kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
Feb 26 10:48:34 SERWER kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Feb 26 10:48:34 SERWER kernel: ICH: IDE controller at PCI slot 00:1f.1
Feb 26 10:48:34 SERWER kernel: ICH: chipset revision 2
Feb 26 10:48:34 SERWER kernel: ICH: not 100%% native mode: will probe irqs later
Feb 26 10:48:34 SERWER kernel: ide0: BM-DMA at 0x1800-0x1807, BIOS settings: hda:DMA, hdb:pio
Feb 26 10:48:34 SERWER kernel: ide1: BM-DMA at 0x1808-0x180f, BIOS settings: hdc:DMA, hdd:pio
Feb 26 10:48:34 SERWER kernel: hda: ST340016A, ATA DISK drive
Feb 26 10:48:34 SERWER kernel: hdc: GCR-8523B, ATAPI CD/DVD-ROM drive
Feb 26 10:48:34 SERWER kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Feb 26 10:48:34 SERWER kernel: ide1 at 0x170-0x177,0x376 on irq 15
Feb 26 10:48:34 SERWER kernel: hda: attached ide-disk driver.
Feb 26 10:48:34 SERWER kernel: hda: host protected area => 1
Feb 26 10:48:34 SERWER kernel: hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63
Feb 26 10:48:34 SERWER kernel: hdc: attached ide-cdrom driver.
Feb 26 10:48:34 SERWER kernel: hdc: ATAPI 52X CD-ROM drive, 128kB Cache
Feb 26 10:48:34 SERWER kernel: Uniform CD-ROM driver Revision: 3.12
Feb 26 10:48:34 SERWER kernel: Partition check:
Feb 26 10:48:34 SERWER kernel: hda: hda1 hda2
Feb 26 10:48:34 SERWER kernel: SCSI subsystem driver Revision: 1.00
Feb 26 10:48:34 SERWER kernel: sim710: No NCR53C710 adapter found.
Feb 26 10:48:34 SERWER kernel: Loading Adaptec I2O RAID: Version 2.4 Build 5
Feb 26 10:48:34 SERWER kernel: Detecting Adaptec I2O RAID controllers...
Feb 26 10:48:34 SERWER kernel: Red Hat/Adaptec aacraid driver (1.1-3 Jun 14 2006 20:06:02)
Feb 26 10:48:34 SERWER kernel: scsi: <fdomain> Detection failed (no card)
Feb 26 10:48:35 SERWER kernel: NCR53c406a: no available ports found
Feb 26 10:48:35 SERWER kernel: sym53c416.c: Version 1.0.0-ac
Feb 26 10:48:35 SERWER kernel: Failed initialization of WD-7000 SCSI card!
Feb 26 10:48:35 SERWER kernel: DC390: 0 adapters found
Feb 26 10:48:35 SERWER kernel: megaraid: v2.10.10.1 (Release Date: Thu Jan 27 16:19:44 EDT 2005)
Feb 26 10:48:35 SERWER kernel: aec671x_detect:
Feb 26 10:48:35 SERWER kernel: GDT-HA: Storage RAID Controller Driver. Version: 3.04
Feb 26 10:48:35 SERWER kernel: GDT-HA: Found 0 PCI Storage RAID Controllers
Feb 26 10:48:35 SERWER kernel: 3ware Storage Controller device driver for Linux v1.02.00.037.
Feb 26 10:48:35 SERWER kernel: 3w-xxxx: No cards found.
Feb 26 10:48:35 SERWER kernel: nsp32: loading...
Feb 26 10:48:35 SERWER kernel: libata version 1.11 loaded.
Feb 26 10:48:35 SERWER kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Feb 26 10:48:35 SERWER last message repeated 2 times
Feb 26 10:48:35 SERWER kernel: md: linear personality registered as nr 1
Feb 26 10:48:35 SERWER kernel: md: raid0 personality registered as nr 2
Feb 26 10:48:35 SERWER kernel: md: raid1 personality registered as nr 3
Feb 26 10:48:35 SERWER kernel: md: raid5 personality registered as nr 4
Feb 26 10:48:35 SERWER kernel: raid5: measuring checksumming speed
Feb 26 10:48:35 SERWER kernel: 8regs : 1347.600 MB/sec
Feb 26 10:48:35 SERWER kernel: 32regs : 655.200 MB/sec
Feb 26 10:48:35 SERWER kernel: pIII_sse : 1471.200 MB/sec
Feb 26 10:48:35 SERWER kernel: pII_mmx : 1650.800 MB/sec
Feb 26 10:48:35 SERWER kernel: p5_mmx : 1727.200 MB/sec
Feb 26 10:48:35 SERWER kernel: raid5: using function: pIII_sse (1471.200 MB/sec)
Feb 26 10:48:35 SERWER kernel: md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
Feb 26 10:48:35 SERWER kernel: md: Autodetecting RAID arrays.
Feb 26 10:48:35 SERWER kernel: md: autorun ...
Feb 26 10:48:35 SERWER kernel: md: ... autorun DONE.
Feb 26 10:48:35 SERWER kernel: LVM version 1.0.8(17/11/2003)
Feb 26 10:48:35 SERWER kernel: Initializing Cryptographic API
Feb 26 10:48:35 SERWER kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Feb 26 10:48:35 SERWER kernel: IP Protocols: ICMP, UDP, TCP, IGMP
Feb 26 10:48:35 SERWER kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Feb 26 10:48:35 SERWER kernel: TCP: Hash tables configured (established 8192 bind 8192)
Feb 26 10:48:35 SERWER kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Feb 26 10:48:35 SERWER kernel: kjournald starting. Commit interval 5 seconds
Feb 26 10:48:35 SERWER kernel: EXT3-fs: mounted filesystem with ordered data mode.
Feb 26 10:48:35 SERWER kernel: VFS: Mounted root (ext3 filesystem) readonly.
Feb 26 10:48:35 SERWER kernel: Freeing unused kernel memory: 228k freed
Feb 26 10:48:35 SERWER kernel: Adding Swap: 32756k swap-space (priority -1)
Feb 26 10:48:35 SERWER kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
Feb 26 10:48:35 SERWER kernel: 8139too Fast Ethernet driver 0.9.26
Feb 26 10:48:35 SERWER kernel: PCI: Found IRQ 5 for device 01:01.0
Feb 26 10:48:35 SERWER kernel: PCI: Sharing IRQ 5 with 01:04.0
Feb 26 10:48:35 SERWER kernel: eth0: RealTek RTL8139 at 0xc881d000, 00:30:4f:4d:c5:c7, IRQ 5
Feb 26 10:48:35 SERWER kernel: eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Feb 26 10:48:35 SERWER kernel: PCI: Found IRQ 5 for device 01:04.0
Feb 26 10:48:35 SERWER kernel: PCI: Sharing IRQ 5 with 01:01.0
Feb 26 10:48:35 SERWER kernel: 3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
Feb 26 10:48:35 SERWER kernel: 01:04.0: 3Com PCI 3c905C Tornado at 0x2400. Vers LK1.1.18
Feb 26 10:48:35 SERWER kernel: ip_conntrack version 2.1 (1015 buckets, 8120 max) - 308 bytes per conntrack
Feb 26 10:48:35 SERWER kernel: ip_tables: (C) 2000-2002 Netfilter core team
Feb 26 10:48:35 SERWER kernel: eth0: link up, 10Mbps, half-duplex, lpa 0x0000
Feb 26 10:48:35 SERWER kernel: imq driver loaded.
Feb 26 10:48:35 SERWER kernel: IPP2P v0.8.1_rc1 loading
Feb 26 10:48:36 SERWER kernel: ipt_account 0.1.7 : Piotr Gasidło <quaker@barbara.eu.org>, http://www.barbara.eu.org/~quaker/ipt_account/


Nic takiego nie ma, czyżby kernel był niezaktualizowany do wersji podanej w poprzednich postach ?


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 12:13 
Offline
Użytkownik

Rejestracja: wtorek, 28 września 2004, 19:43
Posty: 125
Lokalizacja: podkarpackie
Witam,

Tak kernel Ci się nie podmienił.

Pozdrawiam

_________________
Intel Atom D945GSEJT , 2GB ram, 16GB SSD


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 12:41 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
gizmo5418 pisze:
Witam,

Tak kernel Ci się nie podmienił.

Pozdrawiam


Zrobiłem tak:

pacman -U http://www.ele-net.pl/download/kernel24 ... pkg.tar.gz

Potem lilo -v

Zrestartowałem serwer, żadnych błędów mi nie zrwóciło przy upgrade kernela, więc chyba powinno być OK.

Czy jest możliwość ze kernel sie nie podmienił ?


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 13:06 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
gizmo5418 wielkie dzięki za pomoc. Ponownie podmieniłem kernel i teraz poprawnie wszystko działa, upload jest kierowany do klas poszczególnych userów.

Mam jeszcze pytanie do twórców osób rozwijających NND.
Czy takiego pakietu kernela z nałożoną łatką IMQ behavior nie można umieścić w jakimś repozytorium ?
Może komuś byłoby potrzebne.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 15:03 
Offline

Rejestracja: sobota, 26 sierpnia 2006, 20:06
Posty: 95
Jak sobie poradziles ?
Tez bede podmienial kernel ale nie chcę popełnić błędu .


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 26 lutego 2007, 19:43 
Offline
Użytkownik

Rejestracja: piątek, 18 marca 2005, 10:25
Posty: 274
Lokalizacja: Sandomierz
Zrób tak:
Cytuj:


Wcześniej nie zadziało mi bo pod linkiem był wystawiony niewłaściwy kernel, teraz jest podmieniona paczka.


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: wtorek, 27 lutego 2007, 12:00 
Offline

Rejestracja: sobota, 26 sierpnia 2006, 20:06
Posty: 95
Tryb pracy IMQ gdzie się ustawia ?


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: wtorek, 27 lutego 2007, 12:52 
Offline
PGF

Rejestracja: niedziela, 14 lipca 2002, 14:33
Posty: 3234
Lokalizacja: Radziejów
modprobe imq numdevs=X behaviour=XX, gdzie X-liczba interfejsow, XX-tryb pracy imq "bb", "ba", "ab", "aa"

TRYB PREROUTING POSTROUTING
AA (A)fter NAT (A)fter NAT
AB (A)fter NAT (B)efore NAT
BA (B)efore NAT (A)fter NAT
BB (B)efore NAT (B)efore NAT

To raczej wydaje się, ze kwestia dotyczy tego która tabela iptables jest pierwsza czy mangle czy nat w normalnym ukladzie pakiet przechodzi najpierw przez mangle a potem przez nat (BB) a moze wręcz przeciwnie, najpierw przez nat a potem przez mangle (AA).
Poprawcie mnie jesli sie myle :)


Jesli zrobić przekierowania od strony interfejsów sieciowych lokalnych
to możemy pozbyć się markowania pakietów i kłopotów z adresami src i dst bo tam one zawsze sa adresami hostów lokalnych niezaleznie od nat-u

_________________
Nie jestem NEKROMANTĄ, nie wróżę z flaków!
Alkohol pity z umiarem nie szkodzi nawet w największych ilościach!
Przeczytaj nim zapytasz
Obrazek


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 2 marca 2007, 08:43 
Offline
Użytkownik

Rejestracja: sobota, 14 maja 2005, 15:07
Posty: 3177
Lokalizacja: Busko-Zdrój
http://forum.inet.ll.pl/viewtopic.php?p=7527

_________________
Pomógł? wypij jego zdrowie.
http://nnd-linux.pl/faq.php
http://wiki.nnd.freesco.pl/index.php/FAQ


Na górę
 Wyświetl profil  
 
Wyświetl posty nie starsze niż:  Sortuj wg  
Nowy temat Odpowiedz w temacie  [ Posty: 42 ]  Przejdź na stronę 1, 2, 3  Następna

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 7 gości


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
cron
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl