[求助]这个补丁(iptables)怎么打

由 QinKui 在 01-14-2003 14:06 发表:

[求助]这个补丁(iptables)怎么打

一个用iptables的NAT,转发PPTP的protocol 47,需要打个补丁:

http://www.netfilter.org/documentat...p-conntrack-nat

这里有[pptp-conntrack-nat.patch] [pptp-conntrack-nat.patch.config.in] [pptp-conntrack-nat.patch.configure.help] [pptp-conntrack-nat.patch.help] [pptp-conntrack-nat.patch.makefile]

这些文件怎么使用?

谢谢!


由 北南南北 在 01-16-2003 10:27 发表:


http://www-900.ibm.com/developerWor...m-1/index.shtml

关于打补丁,我也不懂,看一下这个。

tram兄用过,我们向他来求助一下。


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 QinKui 在 01-16-2003 12:11 发表:


关于IPTABLES的补丁,有下面这段原话,但看后还是不知道怎么去操作,有这方面经验的请介绍一下。

Here is how to add your new `foo' patch to patch-o-matic:

  1. Create a kernel patch which can be applied inside a kernel tree

with patch -p1', and call it foo.patch', or `foo.patch.PROTOCOL'

if it belongs in linux/net/PROTOCOL/netfilter rather than

linux/net/ipv4/netfilter (the default).

  1. Create a description file called `foo.patch.help'.

  2. If your patch creates a new CONFIG option, eliminate that from the

patch above, and create a file called `foo.patch.config.in'. The

format of this file is as follows:

EXACT LINE TO FOLLOW

 1<text in="" paste="" to="">   
 2  
 3  
 4  
 5This allows you to specify the entry in net/ipv4/netfilter/Config.in   
 6  
 7that you wish your text to follow. Note that it must be an exact match.   
 8  
 9You can have more than one of these files, to make multiple entries   
10  
11in different places, by calling successive ones foo.patch.config.in*.   
12  
13  
14  
15You also need to make an entry in Documentation/Configure.help;   
16  
17once again, eliminate this from your patch file, and create a file   
18  
19called `foo.patch.configure.help' like so:   
20  
21  
22  
23EXACT CONFIG OPTION TO FOLLOW   
24  
25<text in="" paste="" to="">   
26  
27  
28  
29Your text will be placed after the config option you indicated   
30  
31(with a blank line before and after). You can have more than one   
32  
33of these files, to make multiple entries in different places, by   
34  
35calling successive ones foo.patch.configure.help*.   
36  
37  
38  
394) If you want to edit the Makefile, eliminate that from the patch   
40  
41above, and create a file called `foo.patch.makefile'. The format   
42  
43of this file is as follows:   
44  
45  
46  
47EXACT LINE TO MATCH   
48  
49<text in="" paste="" to="">   
50  
51  
52  
53You can have more than one of these files, to make multiple entries   
54  
55in different places, by calling successive ones foo.patch.makefile*.   
56  
57  
58  
595) If you want to edit ip{6}_conntrack.h in include/linux/netfilter_ipv{4|6},   
60  
61eliminate that from the patch above, and create a file called   
62  
63`foo.patch.ip{6}_conntrack.h'. The forma</text></text></text>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus