[qemu] 端口重定向

来源:互联网 发布:复共轭矩阵与厄米矩阵 编辑:程序博客网 时间:2024/04/30 08:08

参考:

qemu-doc.html

    hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport        Redirect incoming TCP or UDP connections to the host port hostport to the guest IP address guestaddr on        guest port guestport. If guestaddr is not specified, its value is x.x.x.15 (default first address given by        the built-in DHCP server). By specifying hostaddr, the rule can be bound to a specific host interface. If no        connection type is set, TCP is used. This option can be given multiple times.        For example, to redirect host X11 connection from screen 1 to guest screen 0, use the following:                  # on the host                  qemu -net user,hostfwd=tcp:127.0.0.1:6001-:6000 [...]                  # this host xterm should open in the guest X11 server                  xterm -display :1        To redirect telnet connections from host port 5555 to telnet port on the guest, use the following:                  # on the host                  qemu -net user,hostfwd=tcp::5555-:23 [...]                  telnet localhost 5555        Then when you use on the host telnet localhost 5555, you connect to the guest telnet server.


用于将主机端的端口重定向到客户端的端口上。

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 鱼把厕所堵了怎么办 刚憋尿上完厕所之后腹部很疼怎么办 小孩被老师投诉了家长怎么办 家长投诉被老师知道了怎么办 孩子上课不敢回答问题怎么办 孩子犯了错家长怎么办 错了不该错的题怎么办 不该错的题错了怎么办 小学生不爱写课堂作业怎么办 手被老师打肿了怎么办 老师反应孩子学习退步了怎么办 学护理的打屁股针怎么办 教师被投诉打学生怎么办 遇到内向的学生教师应该怎么办 教师遇到顽劣的学生怎么办 家长质疑老师的能力怎么办 和领导有冲突该怎么办 孩子叫也不听特别叛逆怎么办 孩子叛逆期不听妈妈的话怎么办 学生和老师反嘴怎么办? 两个月的宝宝不拉屎怎么办 老师受家长的气怎么办 家长故意在班级群里气老师怎么办 幼儿园阿姨体罚孩子家长该怎么办 学生钱丢了老师怎么办 胸肌一边大一边小怎么办 被爱的人抛弃了怎么办 深蹲以后腿疼怎么办 做完蹲起大腿疼怎么办 练腿之后腿疼怎么办 深蹲做完后腿疼怎么办 做完上下蹲腿疼怎么办 钓鱼子线长了怎么办 烤箱烤红薯没有锡纸怎么办 烤箱烤羊肉串滴油怎么办 黄金虎嘴脱臼了怎么办 孕妇吃了马头鱼怎么办 慈鲷鱼生完小鱼怎么办 买的烤鱼片刺多怎么办 鸡蛋不太新鲜了怎么办 麻雀从巢里掉下来怎么办