MikeWang000000 / Natter

Expose your TCP/UDP port behind full-cone NAT to the Internet.
GNU General Public License v3.0
1.31k stars 107 forks source link

内核模式启动失败 #66

Closed despire1119 closed 3 months ago

despire1119 commented 3 months ago

大佬好,我用iptables模式启动失败,iptables报错,这是我的报错信息,能否麻烦帮忙看看出了什么问题?谢谢!

docker run --net=host --cap-add=NET_ADMIN --cap-add=NET_RAW nattertool/natter -m iptables -p 2333


2024-03-20 11:26:52 [I] Natter v2.0.0-rc2
Warning: Extension comment revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
subprocess.CalledProcessError: Command '['iptables', '-w', '-t', 'nat', '-I', 'NATTER', '-p', 'tcp', '--dst', '192.168.1.107', '--dport', '45209', '-j', 'DNAT', '--to-destination', '192.168.1.107:2333', '-m', 'comment', '--comment', 'NATTER_UUID=3f9f4c40-0221-43dc-a269-50e0216cb332']' returned non-zero exit status 1.
MikeWang000000 commented 3 months ago

您的版本是 v2.0.0-rc2,最新版本已经是 v2.0.0-rc3。请尝试执行以下命令,更新版本后再试:

docker pull nattertool/natter

此问题在先前版本中,一些精简 Linux 系统中会出现,例如群晖DSM。最新版本已经解决。 Dup: #50

despire1119 commented 3 months ago

感谢回复,部署成功!