[問題] Modules & Iptables 問題

看板Linux作者 (kuangs)時間13年前 (2012/06/08 16:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
先前使用的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 但是好像都沒有相關的資料 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.211.253.68
文章代碼(AID): #1FqRldpl (Linux)