* [Qemu-trivial] [PATCH] doc: slirp supports ICMP echo if enabled in Linux
@ 2014-07-10 14:01 ` Gernot Hillier
0 siblings, 0 replies; 4+ messages in thread
From: Gernot Hillier @ 2014-07-10 14:01 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
Since QEMU 0.15, slirp (user mode networking) supports ping to the
Internet, see e6d43cfb1f9
Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
---
qemu-doc.texi | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/qemu-doc.texi b/qemu-doc.texi
index 551619a..fc6e57d 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1205,9 +1205,17 @@ 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.
+@code{ping}, 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 the users group (GID 100):
+
+@example
+
+echo 100 100 > /proc/sys/net/ipv4/ping_group_range
+@end example
When using the built-in TFTP server, the router is also the TFTP
server.
--
1.8.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Qemu-devel] [PATCH] doc: slirp supports ICMP echo if enabled in Linux
@ 2014-07-10 14:01 ` Gernot Hillier
0 siblings, 0 replies; 4+ messages in thread
From: Gernot Hillier @ 2014-07-10 14:01 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
Since QEMU 0.15, slirp (user mode networking) supports ping to the
Internet, see e6d43cfb1f9
Signed-off-by: Gernot Hillier <gernot.hillier@siemens.com>
---
qemu-doc.texi | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/qemu-doc.texi b/qemu-doc.texi
index 551619a..fc6e57d 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -1205,9 +1205,17 @@ 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.
+@code{ping}, 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 the users group (GID 100):
+
+@example
+
+echo 100 100 > /proc/sys/net/ipv4/ping_group_range
+@end example
When using the built-in TFTP server, the router is also the TFTP
server.
--
1.8.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [Qemu-trivial] [PATCH] doc: slirp supports ICMP echo if enabled in Linux
2014-07-10 14:01 ` [Qemu-devel] " Gernot Hillier
@ 2014-07-18 5:40 ` Michael Tokarev
-1 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2014-07-18 5:40 UTC (permalink / raw)
To: Gernot Hillier, qemu-devel; +Cc: qemu-trivial
10.07.2014 18:01, Gernot Hillier wrote:
>
> Since QEMU 0.15, slirp (user mode networking) supports ping to the
> Internet, see e6d43cfb1f9
Applied to the trivial tree, after removing an extra empty line and
rewording the last part to be "To allow ping for GID 100 (usually
users group)", because not all linux systems may use this GID for
users group. Thank you!
/mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] doc: slirp supports ICMP echo if enabled in Linux
@ 2014-07-18 5:40 ` Michael Tokarev
0 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2014-07-18 5:40 UTC (permalink / raw)
To: Gernot Hillier, qemu-devel; +Cc: qemu-trivial
10.07.2014 18:01, Gernot Hillier wrote:
>
> Since QEMU 0.15, slirp (user mode networking) supports ping to the
> Internet, see e6d43cfb1f9
Applied to the trivial tree, after removing an extra empty line and
rewording the last part to be "To allow ping for GID 100 (usually
users group)", because not all linux systems may use this GID for
users group. Thank you!
/mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-18 5:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 14:01 [Qemu-trivial] [PATCH] doc: slirp supports ICMP echo if enabled in Linux Gernot Hillier
2014-07-10 14:01 ` [Qemu-devel] " Gernot Hillier
2014-07-18 5:40 ` [Qemu-trivial] " Michael Tokarev
2014-07-18 5:40 ` [Qemu-devel] " Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.