我不知你用甚么办法找出proprietary socket 的 standard (most of them won't show you how the socket is bind or anything ) 但 你可nmap找出port number. Kernel module 的基本不太困难, 亦不简单, 主要是module上有什么功能, 如你能reverse engineer他们的socket call 应该可以找到答案. 这是一些link由google.com找到的希望有帮助, 我很久 没有Develope与Kernel有关的工作, 亦不太清楚masq module的方向, 你可 [EMAIL PROTECTED] 他们对Kernel 会有比较深入的认识. http://user.rli.net/kevin/masq.html http://dplay-masq.sourceforge.net/faq.html http://www.thelinuxreview.com/howto/IP-MASQ/x2135.htm http://netmeetingmasq.sourceforge.net/ Good luck Alex
Zou Min wrote: Thanks for you immediate reply. If I wanna write my own ip_masq module(in 2.2.x) for an voice chat application, which is however an proprietary software, where should I start from? or any references/links to read? Furthermore, how to I discover the port numbers the application is using? Alex Lau wrote: >Special socket program like anything started with "Microsoft" may need a >module e.g H323 >for the kernel in order to to work. I'm not sure why H.323 module didn't >work (need debug) >but 2.4 iptable look a lot cleaner and less security issue (2.2-20 is >the current >stable kernel for ip masq ) I don't use microsoft product dont' know >what to suggest you >to use. But port forwarding should be the same as your masquerading >script instead of >just putting ip you put ip:port number > >http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/kernel-2.2.x-requirements.html >Good Luck >Alex > > >Zou Min wrote: > > > >>HI, >> >>我们用的是一个内部网络通过IP Masquerade共享一个IP上网的. >> >>目前主要问题是不能在内部网络里使用语音聊天软件与外部网络的机器聊天. >>我试过 >>MSN Messenger 4.6, p2p voice chat. >>Microsoft Netmeeting 3.01 >>V2 Communicator (from www.v2tech.com) >>都有问题. 前两个都是不能联机, 而V2 Communicator可以互相联上, 但是只能说话 >>给对方, 但是听不见对方的语音. >> >>至于Netmeeting, 我试过这个意大利人写的 H.323 module. >>(http://www.coritel.it/coritel/ip/sofia/nat/nat2/nat2.htm) >>但是好像还是不行. >> >>我们的IP Masq Server用的是Linux kernel-2.2.19, with ipchains-1.3.10-15. >>("rc.firewall"基本上是照搬Linux IP Masquerade HOWTO上的) >> >>如果你们有任何一个聊天软件的成功经验的话, 不妨交流一下. >> >>如果我要自己设定port forwarding rules的话, 应该怎样设? 对于任何一个聊天软件, >>比如, V2 Communicator, 我应该怎样去找哪些port我需要forward? >> >>也许, post在这里有点off-topic, 但是我找了很多地方, 都没有好的解决办法. >>多谢哪位网络高手相助! >> >> >> >> >> > > > > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- | This message was re-posted from debian-chinese-big5@lists.debian.org | and converted from big5 to gb2312 by an automatic gateway. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]