小编Thi*_*sMe的帖子

如何将FTP请求转发到另一个IP?

我有一个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 …

linux iptables ftp honeypot vmware-workstation

7
推荐指数
1
解决办法
3059
查看次数

标签 统计

ftp ×1

honeypot ×1

iptables ×1

linux ×1

vmware-workstation ×1