【发布时间】:2021-08-03 20:04:55
【问题描述】:
想知道这样的事情是否可能:我有一台服务器正在侦听我本地 PC 的 localhost:1889,而我的 QEMU 映像能够使用相同的端口和 IP 访问服务器 - localhost:1889。
真的在寻找以下任何一种解决方案:-
- 启用此功能的 QEMU 标志。这是我当前命令的样子:
qemu-system-aarch64 -nographic -machine virt,gic-version=max -m 2058M -cpu cortex-a57 \
-netdev user,id=net0,net=192.168.76.0/24 \
-device virtio-net-pci,netdev=net0 \
-drive file=ubuntu-image.img,if=none,id=drive0,cache=writeback \
-device virtio-blk,drive=drive0,bootindex=0 \
-drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash
- 一系列 iptables - 虽然会避免它。
【问题讨论】:
标签: iptables qemu portforwarding