IMQ: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Řádek 3: | Řádek 3: | ||
== Prihlaseni jako ROOT == | == Prihlaseni jako ROOT == | ||
− | ~$ su | + | ; ~$ su |
− | Password: | + | ; Password: |
== Zmena Adresare == | == Zmena Adresare == | ||
− | # cd /usr/src/ | + | ; # cd /usr/src/ |
== Stahnuti jadra == | == Stahnuti jadra == | ||
− | # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.11.tar.bz2 | + | ; # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.11.tar.bz2 |
− | + | ; => `linux-2.6.17.11.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 == | == Rozbalení jadra == | ||
− | # bzip2 -dc linux-2.6.17.11.tar.bz2 | tar xf - | + | ; # bzip2 -dc linux-2.6.17.11.tar.bz2 | tar xf - |
== Stahnuti IMQ patche na Kernel == | == Stahnuti IMQ patche na Kernel == | ||
− | # wget ftp://85.132.161.242/pub/linux/pool/imq/linux-2.6.17.4-imq0.diff | + | ; # wget ftp://85.132.161.242/pub/linux/pool/imq/linux-2.6.17.4-imq0.diff |
− | => `linux-2.6.17.4-imq0.diff' | + | ; => `linux-2.6.17.4-imq0.diff' |
− | 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.4-imq0.diff ... done. | + | ; ==> PASV ... done. ==> RETR linux-2.6.17.4-imq0.diff ... done. |
− | Length: 32,083 (31K) (unauthoritative) | + | ; Length: 32,083 (31K) (unauthoritative) |
− | 100%[ | + | ; 100%[=============================================>] 32,083 |
== Stahnuti IMQ patche na IPtables == | == Stahnuti IMQ patche na IPtables == | ||
− | # wget ftp://85.132.161.242/pub/linux/pool/imq/iptables-1.3.0-imq1.diff | + | ; # wget ftp://85.132.161.242/pub/linux/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. |
− | 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 iptables-1.3.0-imq1.diff ... done. | + | ; ==> PASV ... done. ==> RETR iptables-1.3.0-imq1.diff ... done. |
− | Length: 5,369 (5.2K) (unauthoritative) | + | ; Length: 5,369 (5.2K) (unauthoritative) |
− | 100%[ | + | ; 100%[=============================================>] 5,369 |
== Stazeni nejnovejsich IPtables == | == Stazeni nejnovejsich IPtables == | ||
− | # wget http://ftp.netfilter.org/pub/iptables/snapshot/iptables-1.3.5-20060902.tar.bz2 | + | ; # wget http://ftp.netfilter.org/pub/iptables/snapshot/iptables-1.3.5-20060902.tar.bz2 |
− | => `iptables-1.3.5-20060902.tar.bz2' | + | ; => `iptables-1.3.5-20060902.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. |
− | HTTP request sent, awaiting response... 200 OK | + | ; HTTP request sent, awaiting response... 200 OK |
− | Length: 186,988 (183K) [application/x-tar] | + | ; Length: 186,988 (183K) [application/x-tar] |
− | 100%[ | + | ; 100%[=============================================>] 186,988 |
== Rozbaleni IPtables == | == Rozbaleni IPtables == | ||
− | # bzip2 -dc iptables-1.3.5-20060902.tar.bz2 | tar xf - | + | ; # bzip2 -dc iptables-1.3.5-20060902.tar.bz2 | tar xf - |
== Vytvoreni SymLinku == | == Vytvoreni SymLinku == | ||
− | # ln -s linux-2.6.17.11 linux | + | ; # ln -s linux-2.6.17.11 linux |
− | # ln -s iptables-1.3.5-20060902 iptables | + | ; # ln -s iptables-1.3.5-20060902 iptables |
== Patch IPtables == | == Patch IPtables == | ||
− | # cd /usr/src/iptables | + | ; # cd /usr/src/iptables |
− | # patch -p1 < ../iptables-1.3.0-imq1.diff | + | ; # patch -p1 < ../iptables-1.3.0-imq1.diff |
− | patching file extensions/.IMQ-test6 | + | ; patching file extensions/.IMQ-test6 |
− | patching file extensions/libip6t_IMQ.c | + | ; patching file extensions/libip6t_IMQ.c |
− | patching file extensions/.IMQ-test | + | ; patching file extensions/.IMQ-test |
− | patching file extensions/libipt_IMQ.c | + | ; patching file extensions/libipt_IMQ.c |
− | # chmod +x ./extensions/.IMQ-test | + | ; # chmod +x ./extensions/.IMQ-test |
− | # chmod +x ./extensions/.IMQ-test6 | + | ; # chmod +x ./extensions/.IMQ-test6 |
== Patch Kernel == | == Patch Kernel == | ||
− | # cd /usr/src/linux | + | ; # cd /usr/src/linux |
− | # patch -p1 < ../linux-2.6.17.4-imq0.diff | + | ; # patch -p1 < ../linux-2.6.17.4-imq0.diff |
− | patching file drivers/net/imq.c | + | ; patching file drivers/net/imq.c |
− | patching file drivers/net/Kconfig | + | ; patching file drivers/net/Kconfig |
− | patching file drivers/net/Makefile | + | ; patching file drivers/net/Makefile |
− | patching file include/linux/imq.h | + | ; patching file include/linux/imq.h |
− | patching file include/linux/netfilter_ipv4/ipt_IMQ.h | + | ; patching file include/linux/netfilter_ipv4/ipt_IMQ.h |
− | patching file include/linux/netfilter_ipv6/ip6t_IMQ.h | + | ; patching file include/linux/netfilter_ipv6/ip6t_IMQ.h |
− | patching file include/linux/skbuff.h | + | ; patching file include/linux/skbuff.h |
− | patching file net/core/skbuff.c | + | ; patching file net/core/skbuff.c |
− | Hunk #1 succeeded at 457 (offset 6 lines). | + | ; Hunk #1 succeeded at 457 (offset 6 lines). |
− | Hunk #2 succeeded at 525 (offset 6 lines). | + | ; Hunk #2 succeeded at 525 (offset 6 lines). |
− | patching file net/ipv4/netfilter/ipt_IMQ.c | + | ; patching file net/ipv4/netfilter/ipt_IMQ.c |
− | patching file net/ipv4/netfilter/Kconfig | + | ; patching file net/ipv4/netfilter/Kconfig |
− | patching file net/ipv4/netfilter/Makefile | + | ; patching file net/ipv4/netfilter/Makefile |
− | patching file net/ipv6/netfilter/ip6t_IMQ.c | + | ; patching file net/ipv6/netfilter/ip6t_IMQ.c |
− | patching file net/ipv6/netfilter/Kconfig | + | ; patching file net/ipv6/netfilter/Kconfig |
− | patching file net/ipv6/netfilter/Makefile | + | ; patching file net/ipv6/netfilter/Makefile |
− | patching file net/sched/sch_generic.c | + | ; patching file net/sched/sch_generic.c |
Verze z 7. 9. 2006, 01:06
Patchovani jadra 2.6.17.x na IMQ:
Prihlaseni jako ROOT
- ~$ su
- Password
Zmena Adresare
- # cd /usr/src/
Stahnuti jadra
- # wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.11.tar.bz2
- => `linux-2.6.17.11.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.11.tar.bz2 | tar xf -
Stahnuti IMQ patche na Kernel
- # wget ftp://85.132.161.242/pub/linux/pool/imq/linux-2.6.17.4-imq0.diff
- => `linux-2.6.17.4-imq0.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.4-imq0.diff ... done.
- Length
- 32,083 (31K) (unauthoritative)
- 100%[=============================================>] 32,083
Stahnuti IMQ patche na IPtables
- # wget ftp://85.132.161.242/pub/linux/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-20060902.tar.bz2
- => `iptables-1.3.5-20060902.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-20060902.tar.bz2 | tar xf -
Vytvoreni SymLinku
- # ln -s linux-2.6.17.11 linux
- # ln -s iptables-1.3.5-20060902 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.4-imq0.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