IMQ

Z HKfree wiki
Verze z 7. 9. 2006, 01:00, kterou vytvořil 10.107.51.242 (diskuse)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Skočit na navigaci Skočit na vyhledávání

Patchovani jadra 2.6.17.x na IMQ:

Prihlaseni jako ROOT

~$ su Password:


Zmena Adresare

  1. cd /usr/src/


Stahnuti jadra

  1. 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 662.05K/s ETA 00
00


Rozbalení jadra

  1. bzip2 -dc linux-2.6.17.11.tar.bz2 | tar xf -


Stahnuti IMQ patche na Kernel

  1. 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 --.--K/s


Stahnuti IMQ patche na IPtables

  1. 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 --.--K/s


Stazeni nejnovejsich IPtables

  1. 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 772.09K/s


Rozbaleni IPtables

  1. bzip2 -dc iptables-1.3.5-20060902.tar.bz2 | tar xf -


Vytvoreni SymLinku

  1. ln -s linux-2.6.17.11 linux
  2. ln -s iptables-1.3.5-20060902 iptables


Patch IPtables

  1. cd /usr/src/iptables
  2. 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

  1. chmod +x ./extensions/.IMQ-test
  2. chmod +x ./extensions/.IMQ-test6


Patch Kernel

  1. cd /usr/src/linux
  2. 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