Modules & Iptables 問題 - Linux

By Valerie
at 2012-06-08T16:46
at 2012-06-08T16:46
Table of Contents
先前使用的Iptables 版本為1.3.5 其中 libipt_gw.so & ipt_gw.ko 是正常運作的
下指令
iptables -t nat -A POSTROUTING -o eth0 -m mark --mark 0x281E271A -m gw
--gw 192.168.1.254 -j SNAT --to-source 192.168.1.115
可以正常新增NAT Rule
但是當我把Iptables 版本換為1.4.7時 重新編譯過了 上面.ko &.so 檔案
一開始因為版本差異大並沒有編譯成功 再改了Makefile & libipt_gw.c 後
雖然編譯成功了 但是出現了四個warning
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
看起來"應該"不會影響到功能吧!!??(有試者去debug 但找不到原因)
可惜的是下完指令 卻出現
iptables v1.4.7: Couldn't load match `gw': NULL
有在GOOGLE 找了這個Modules 但是好像都沒有相關的資料
--
下指令
iptables -t nat -A POSTROUTING -o eth0 -m mark --mark 0x281E271A -m gw
--gw 192.168.1.254 -j SNAT --to-source 192.168.1.115
可以正常新增NAT Rule
但是當我把Iptables 版本換為1.4.7時 重新編譯過了 上面.ko &.so 檔案
一開始因為版本差異大並沒有編譯成功 再改了Makefile & libipt_gw.c 後
雖然編譯成功了 但是出現了四個warning
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
warning: initialization from incompatible pointer type
看起來"應該"不會影響到功能吧!!??(有試者去debug 但找不到原因)
可惜的是下完指令 卻出現
iptables v1.4.7: Couldn't load match `gw': NULL
有在GOOGLE 找了這個Modules 但是好像都沒有相關的資料
--
Tags:
Linux
All Comments
Related Posts
對於圖形介面的想法..

By Lauren
at 2012-06-08T14:48
at 2012-06-08T14:48
請問 solaris 如何解 tgz ?

By Michael
at 2012-06-08T14:12
at 2012-06-08T14:12
tab completion可以像ls有顏色嗎

By Regina
at 2012-06-08T11:48
at 2012-06-08T11:48
請問快速更改使用者與權限方法

By Vanessa
at 2012-06-08T11:44
at 2012-06-08T11:44
如何從WIN7中移除Linux Mint 13?

By Andy
at 2012-06-07T21:54
at 2012-06-07T21:54