mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-12 11:13:49 +02:00
Bind qemu UDP tunnels on all hosts
Qemu is the only platform where we limit the binding of UDP
tunnel to a specific host. It's probably much secure and cleaner
but we have scenario where we need one port bind to an IP and
another bind to a different IP (Link between qemu and and a VM on the
GNS3 VM)
This allow the use of 134fed8fc5
This commit is contained in:
parent
134fed8fc5
commit
7fd520c08b
@ -1202,6 +1202,7 @@ class QemuVM(BaseNode):
|
|||||||
log.info("QEMU VM '{name}' [{id}]: stopping packet capture on adapter {adapter_number}".format(name=self.name,
|
log.info("QEMU VM '{name}' [{id}]: stopping packet capture on adapter {adapter_number}".format(name=self.name,
|
||||||
id=self.id,
|
id=self.id,
|
||||||
adapter_number=adapter_number))
|
adapter_number=adapter_number))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def started(self):
|
def started(self):
|
||||||
"""
|
"""
|
||||||
@ -1419,7 +1420,7 @@ class QemuVM(BaseNode):
|
|||||||
adapter_number,
|
adapter_number,
|
||||||
nio.rhost,
|
nio.rhost,
|
||||||
nio.rport,
|
nio.rport,
|
||||||
self._host,
|
"0.0.0.0",
|
||||||
nio.lport)])
|
nio.lport)])
|
||||||
elif isinstance(nio, NIOTAP):
|
elif isinstance(nio, NIOTAP):
|
||||||
network_options.extend(["-net", "tap,name=gns3-{},ifname={}".format(adapter_number, nio.tap_device)])
|
network_options.extend(["-net", "tap,name=gns3-{},ifname={}".format(adapter_number, nio.tap_device)])
|
||||||
|
Loading…
Reference in New Issue
Block a user