[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/8] doc: slirp supports ICMP echo if enabled in Linu
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 4/8] doc: slirp supports ICMP echo if enabled in Linux |
Date: |
Fri, 18 Jul 2014 18:09:09 +0400 |
From: Gernot Hillier <address@hidden>
Since QEMU 0.15, slirp (user mode networking) supports ping to the
Internet, see e6d43cfb1f9
Signed-off-by: Gernot Hillier <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
qemu-doc.texi | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/qemu-doc.texi b/qemu-doc.texi
index 551619a..2b232ae 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1205,9 +1205,16 @@ In order to check that the user mode network is working,
you can ping
the address 10.0.2.2 and verify that you got an address in the range
10.0.2.x from the QEMU virtual DHCP server.
-Note that @code{ping} is not supported reliably to the internet as it
-would require root privileges. It means you can only ping the local
-router (10.0.2.2).
+Note that ICMP traffic in general does not work with user mode networking.
address@hidden, aka. ICMP echo, to the local router (10.0.2.2) shall work,
+however. If you're using QEMU on Linux >= 3.0, it can use unprivileged ICMP
+ping sockets to allow @code{ping} to the Internet. The host admin has to set
+the ping_group_range in order to grant access to those sockets. To allow ping
+for GID 100 (usually users group):
+
address@hidden
+echo 100 100 > /proc/sys/net/ipv4/ping_group_range
address@hidden example
When using the built-in TFTP server, the router is also the TFTP
server.
--
1.7.10.4
- [Qemu-devel] [PULL for-2.1 0/8] Trivial patches for 2014-07-18, Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 7/8] migration: Add missing 'static' attribute, Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 2/8] Fix new typos in comments (found by codespell), Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 4/8] doc: slirp supports ICMP echo if enabled in Linux,
Michael Tokarev <=
- [Qemu-devel] [PULL 5/8] hw/usb: Add missing 'static' attribute, Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 6/8] qga: Add missing 'static' attribute, Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 3/8] qemu-img: Remove redundancy "ret = -1", Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 8/8] tests: Add missing 'static' attributes (fix warnings from smatch), Michael Tokarev, 2014/07/18
- [Qemu-devel] [PULL 1/8] slirp: Give error message if hostfwd_add/remove for unrecognized vlan/stack, Michael Tokarev, 2014/07/18
- Re: [Qemu-devel] [PULL for-2.1 0/8] Trivial patches for 2014-07-18, Peter Maydell, 2014/07/21