mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
slirp: Bind support for host forwarding rules
Extend the hostfwd rule format so that the user can specify on which host interface qemu should listen for incoming connections. If omitted, binding will takes place against all interfaces. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f3546deb07
commit
3c6a05803c
11 changed files with 73 additions and 47 deletions
|
@ -537,10 +537,11 @@ ETEXI
|
|||
|
||||
#ifdef CONFIG_SLIRP
|
||||
{ "hostfwd_add", "s", net_slirp_hostfwd_add,
|
||||
"[tcp|udp]:hostport:[guestaddr]:guestport",
|
||||
"[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
|
||||
"redirect TCP or UDP connections from host to guest (requires -net user)" },
|
||||
{ "hostfwd_remove", "s", net_slirp_hostfwd_remove,
|
||||
"[tcp|udp]:hostport", "remove host-to-guest TCP or UDP redirection" },
|
||||
"[tcp|udp]:[hostaddr]:hostport",
|
||||
"remove host-to-guest TCP or UDP redirection" },
|
||||
#endif
|
||||
STEXI
|
||||
@item host_net_redir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue