Revision 3c6a0580 qemu-options.hx
b/qemu-options.hx | ||
---|---|---|
881 | 881 |
@file{/usr/sbin/smbd}. QEMU was tested successfully with smbd versions from |
882 | 882 |
Red Hat 9, Fedora Core 3 and OpenSUSE 11.x. |
883 | 883 |
|
884 |
@item hostfwd=[tcp|udp]:@var{hostport}:[@var{guestaddr}]:@var{guestport}
|
|
884 |
@item hostfwd=[tcp|udp]:[@var{hostaddr}]:@var{hostport}-[@var{guestaddr}]:@var{guestport}
|
|
885 | 885 |
Redirect incoming TCP or UDP connections to the host port @var{hostport} to |
886 | 886 |
the guest IP address @var{guestaddr} on guest port @var{guestport}. If |
887 | 887 |
@var{guestaddr} is not specified, its value is x.x.x.15 (default first address |
888 |
given by the built-in DHCP server). If no connection type is specified, TCP is |
|
888 |
given by the built-in DHCP server). By specifying @var{hostaddr}, the rule can |
|
889 |
be bound to a specific host interface. If no connection type is set, TCP is |
|
889 | 890 |
used. This option can be given multiple times. |
890 | 891 |
|
891 | 892 |
For example, to redirect host X11 connection from screen 1 to guest |
... | ... | |
893 | 894 |
|
894 | 895 |
@example |
895 | 896 |
# on the host |
896 |
qemu -net user,hostfwd=tcp:6001::6000 [...]
|
|
897 |
qemu -net user,hostfwd=tcp:127.0.0.1:6001-:6000 [...]
|
|
897 | 898 |
# this host xterm should open in the guest X11 server |
898 | 899 |
xterm -display :1 |
899 | 900 |
@end example |
... | ... | |
911 | 912 |
connect to the guest telnet server. |
912 | 913 |
|
913 | 914 |
@item guestfwd=[tcp]:@var{server}:@var{port}-@var{dev} |
914 |
Forward guest TCP connections to port @var{port} on the host to character
|
|
915 |
device @var{dev}. This option can be given multiple times. |
|
915 |
Forward guest TCP connections to the IP address @var{server} on port @var{port}
|
|
916 |
to the character device @var{dev}. This option can be given multiple times.
|
|
916 | 917 |
|
917 | 918 |
@end table |
918 | 919 |
|
Also available in: Unified diff