我有一个VMware: 10.10.10.1、一个linux in VMware (Guest): 10.10.10.128和一个honeypot on Guest: 10.10.10.15,还有我的Windows (Host): 192.168.1.11. 我可以直接从我的Hostto发送 FTP 请求honeypot并建立连接。现在我想将 FTP 请求发送Guest到我的honeypot. 我把这些规则iptables放在Guest:
iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to-destination 10.10.10.15:21
iptables -t nat -A POSTROUTING -p tcp -s 10.10.10.15 --sport 21 -j SNAT --to-source 10.10.10.128
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Run Code Online (Sandbox Code Playgroud)
但我无法得到想要的结果。我能做什么?
注意:honeypot运行时,我可以ping …