IMQ: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
(byt root neni potreba...) |
|||
(Nejsou zobrazeny 2 mezilehlé verze od jednoho dalšího uživatele.) | |||
Řádek 1: | Řádek 1: | ||
− | = Patchovani jadra 2.6.17. | + | = Patchovani jadra 2.6.17.13 na IMQ: = |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Řádek 13: | Řádek 7: | ||
== Stahnuti jadra == | == Stahnuti jadra == | ||
− | ; # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17. | + | ; # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.13.tar.bz2 |
− | ; => `linux-2.6.17. | + | ; => `linux-2.6.17.13.tar.bz2' |
; Resolving kernel.org... 204.152.191.37, 204.152.191.5 | ; Resolving kernel.org... 204.152.191.37, 204.152.191.5 | ||
; Connecting to kernel.org|204.152.191.37|:80... connected. | ; Connecting to kernel.org|204.152.191.37|:80... connected. | ||
Řádek 26: | Řádek 20: | ||
== Stahnuti IMQ patche na Kernel == | == Stahnuti IMQ patche na Kernel == | ||
− | ; # wget | + | ; # wget http://85.132.161.242/pool/imq/linux-2.6.17-imq1.diff |
− | + | ; => `linux-2.6.17-imq1.diff' | |
− | |||
− | ; => `linux-2.6.17 | ||
; Connecting to 85.132.161.242:21... connected. | ; Connecting to 85.132.161.242:21... connected. | ||
; Logging in as anonymous ... Logged in! | ; Logging in as anonymous ... Logged in! | ||
; ==> SYST ... done. ==> PWD ... done. | ; ==> SYST ... done. ==> PWD ... done. | ||
; ==> TYPE I ... done. ==> CWD /pub/linux/pool/imq ... done. | ; ==> TYPE I ... done. ==> CWD /pub/linux/pool/imq ... done. | ||
− | ; ==> PASV ... done. ==> RETR linux-2.6.17 | + | ; ==> PASV ... done. ==> RETR linux-2.6.17-imq1.diff ... done. |
; Length: 32,083 (31K) (unauthoritative) | ; Length: 32,083 (31K) (unauthoritative) | ||
; 100%[=============================================>] 32,083 | ; 100%[=============================================>] 32,083 | ||
Řádek 40: | Řádek 32: | ||
== Stahnuti IMQ patche na IPtables == | == Stahnuti IMQ patche na IPtables == | ||
− | ; # wget | + | ; # wget http://85.132.161.242/pool/imq/iptables-1.3.0-imq1.diff |
− | |||
− | |||
; => `iptables-1.3.0-imq1.diff' | ; => `iptables-1.3.0-imq1.diff' | ||
; Connecting to 85.132.161.242:21... connected. | ; Connecting to 85.132.161.242:21... connected. | ||
Řádek 54: | Řádek 44: | ||
== Stazeni nejnovejsich IPtables == | == Stazeni nejnovejsich IPtables == | ||
− | ; # wget http://ftp.netfilter.org/pub/iptables/snapshot/iptables-1.3.5- | + | ; # wget http://ftp.netfilter.org/pub/iptables/snapshot/iptables-1.3.5-20061001.tar.bz2 |
− | ; => `iptables-1.3.5- | + | ; => `iptables-1.3.5-20061001.tar.bz2' |
; Resolving ftp.netfilter.org... 213.95.27.115, 2001:780:0:1d:20d:93ff:fe9b:e443 | ; Resolving ftp.netfilter.org... 213.95.27.115, 2001:780:0:1d:20d:93ff:fe9b:e443 | ||
; Connecting to ftp.netfilter.org|213.95.27.115|:80... connected. | ; Connecting to ftp.netfilter.org|213.95.27.115|:80... connected. | ||
Řádek 64: | Řádek 54: | ||
== Rozbaleni IPtables == | == Rozbaleni IPtables == | ||
− | ; # bzip2 -dc iptables-1.3.5- | + | ; # bzip2 -dc iptables-1.3.5-20061001.tar.bz2 | tar xf - |
== Vytvoreni SymLinku == | == Vytvoreni SymLinku == | ||
− | ; # ln -s linux-2.6.17. | + | ; # ln -s linux-2.6.17.13 linux |
− | ; # ln -s iptables-1.3.5- | + | ; # ln -s iptables-1.3.5-20061001 iptables |
Řádek 85: | Řádek 75: | ||
== Patch Kernel == | == Patch Kernel == | ||
; # cd /usr/src/linux | ; # cd /usr/src/linux | ||
− | ; # patch -p1 < ../linux-2.6.17 | + | ; # patch -p1 < ../linux-2.6.17-imq1.diff |
; patching file drivers/net/imq.c | ; patching file drivers/net/imq.c | ||
; patching file drivers/net/Kconfig | ; patching file drivers/net/Kconfig |
Aktuální verze z 12. 10. 2006, 08:00
Obsah
Patchovani jadra 2.6.17.13 na IMQ:
Zmena Adresare
- # cd /usr/src/
Stahnuti jadra
- # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.13.tar.bz2
- => `linux-2.6.17.13.tar.bz2'
- Resolving kernel.org... 204.152.191.37, 204.152.191.5
- Connecting to kernel.org|204.152.191.37|
- 80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length
- 41,288,067 (39M) [application/x-bzip2]
- 100%[=============================================>] 41,288,067
Rozbalení jadra
- # bzip2 -dc linux-2.6.17.13.tar.bz2 | tar xf -
Stahnuti IMQ patche na Kernel
- # wget http://85.132.161.242/pool/imq/linux-2.6.17-imq1.diff
- => `linux-2.6.17-imq1.diff'
- Connecting to 85.132.161.242
- 21... connected.
- Logging in as anonymous ... Logged in!
- ==> SYST ... done. ==> PWD ... done.
- ==> TYPE I ... done. ==> CWD /pub/linux/pool/imq ... done.
- ==> PASV ... done. ==> RETR linux-2.6.17-imq1.diff ... done.
- Length
- 32,083 (31K) (unauthoritative)
- 100%[=============================================>] 32,083
Stahnuti IMQ patche na IPtables
- # wget http://85.132.161.242/pool/imq/iptables-1.3.0-imq1.diff
- => `iptables-1.3.0-imq1.diff'
- Connecting to 85.132.161.242
- 21... connected.
- Logging in as anonymous ... Logged in!
- ==> SYST ... done. ==> PWD ... done.
- ==> TYPE I ... done. ==> CWD /pub/linux/pool/imq ... done.
- ==> PASV ... done. ==> RETR iptables-1.3.0-imq1.diff ... done.
- Length
- 5,369 (5.2K) (unauthoritative)
- 100%[=============================================>] 5,369
Stazeni nejnovejsich IPtables
- # wget http://ftp.netfilter.org/pub/iptables/snapshot/iptables-1.3.5-20061001.tar.bz2
- => `iptables-1.3.5-20061001.tar.bz2'
- Resolving ftp.netfilter.org... 213.95.27.115, 2001
- 780:0:1d:20d:93ff:fe9b:e443
- Connecting to ftp.netfilter.org|213.95.27.115|
- 80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length
- 186,988 (183K) [application/x-tar]
- 100%[=============================================>] 186,988
Rozbaleni IPtables
- # bzip2 -dc iptables-1.3.5-20061001.tar.bz2 | tar xf -
Vytvoreni SymLinku
- # ln -s linux-2.6.17.13 linux
- # ln -s iptables-1.3.5-20061001 iptables
Patch IPtables
- # cd /usr/src/iptables
- # patch -p1 < ../iptables-1.3.0-imq1.diff
- patching file extensions/.IMQ-test6
- patching file extensions/libip6t_IMQ.c
- patching file extensions/.IMQ-test
- patching file extensions/libipt_IMQ.c
- # chmod +x ./extensions/.IMQ-test
- # chmod +x ./extensions/.IMQ-test6
Patch Kernel
- # cd /usr/src/linux
- # patch -p1 < ../linux-2.6.17-imq1.diff
- patching file drivers/net/imq.c
- patching file drivers/net/Kconfig
- patching file drivers/net/Makefile
- patching file include/linux/imq.h
- patching file include/linux/netfilter_ipv4/ipt_IMQ.h
- patching file include/linux/netfilter_ipv6/ip6t_IMQ.h
- patching file include/linux/skbuff.h
- patching file net/core/skbuff.c
- Hunk #1 succeeded at 457 (offset 6 lines).
- Hunk #2 succeeded at 525 (offset 6 lines).
- patching file net/ipv4/netfilter/ipt_IMQ.c
- patching file net/ipv4/netfilter/Kconfig
- patching file net/ipv4/netfilter/Makefile
- patching file net/ipv6/netfilter/ip6t_IMQ.c
- patching file net/ipv6/netfilter/Kconfig
- patching file net/ipv6/netfilter/Makefile
- patching file net/sched/sch_generic.c