geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

114 lines
3.1 KiB

  1. .\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\"
  13. .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
  14. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
  17. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. .\" SUCH DAMAGE.
  24. .\"
  25. .\" $FreeBSD$
  26. .\"
  27. .Dd April 29, 2004
  28. .Dt GGATED 8
  29. .Os
  30. .Sh NAME
  31. .Nm ggated
  32. .Nd "GEOM Gate network daemon"
  33. .Sh SYNOPSIS
  34. .Nm
  35. .Op Fl h
  36. .Op Fl n
  37. .Op Fl v
  38. .Op Fl a Ar address
  39. .Op Fl p Ar port
  40. .Op Fl R Ar rcvbuf
  41. .Op Fl S Ar sndbuf
  42. .Op Ar "exports file"
  43. .Sh DESCRIPTION
  44. The
  45. .Nm
  46. utility is a network server for GEOM Gate class.
  47. It runs on a server machine to service GEOM Gate requests from workers
  48. placed on a client machine.
  49. Keep in mind, that connection between
  50. .Nm ggatec
  51. and
  52. .Nm ggated
  53. is not encrypted.
  54. .Pp
  55. Available options:
  56. .Bl -tag -width ".Ar exports file"
  57. .It Fl a Ar address
  58. Specifies an IP address to bind to.
  59. .It Fl h
  60. Print available options.
  61. .It Fl n
  62. Do not use TCP_NODELAY option on TCP sockets.
  63. .It Fl p Ar port
  64. Port on which
  65. .Nm
  66. listens for connection. Default is 3080.
  67. .It Fl R Ar rcvbuf
  68. Size of receive buffer to use.
  69. Default is 131072 (128kB).
  70. .It Fl S Ar sndbuf
  71. Size of send buffer to use.
  72. Default is 131072 (128kB).
  73. .It Fl v
  74. Do not fork, run in foreground and print debug informations on standard
  75. output.
  76. .It Ar "exports file"
  77. An alternate location for the exports file.
  78. .El
  79. .Pp
  80. The format of an exports file is as follows:
  81. .Bd -literal -offset indent
  82. 1.2.3.4 RO /dev/acd0
  83. 1.2.3.0/24 RW /tmp/test.img
  84. hostname WO /tmp/image
  85. .Ed
  86. .Pp
  87. .Sh EXAMPLES
  88. Export CD\-ROM device and a file:
  89. .Pp
  90. .Bd -literal -offset indent
  91. # echo "1.2.3.0/24 RO /dev/acd0" > /etc/gg.exports
  92. # echo "client RW /image" >> /etc/gg.exports
  93. # ggated
  94. .Ed
  95. .Pp
  96. .Sh DIAGNOSTICS
  97. Exit status is 0 on success, or 1 if the command fails.
  98. To get details about the failure,
  99. .Nm
  100. should be called with the
  101. .Fl v
  102. option.
  103. .Sh SEE ALSO
  104. .Xr geom 4 ,
  105. .Xr ggatec 8 ,
  106. .Xr ggatel 8
  107. .Sh AUTHORS
  108. The
  109. .Nm
  110. utility as well as this manual page was written by
  111. .An -split
  112. .An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .
  113. .An -nosplit