6in4 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. .TH 6IN4 8
  2. .SH NAME
  3. 6in4 - configure and run automatic or manual 6to4 tunnel of IPv6 through IPv4
  4. .SH SYNOPSIS
  5. .B ip/6in4
  6. [
  7. .B -ag
  8. ] [
  9. .B -x
  10. .I netmtpt
  11. ] [
  12. .IB local6[ / mask]
  13. [
  14. .I remote4
  15. [
  16. .I remote6
  17. ] ] ]
  18. .B &
  19. .SH DESCRIPTION
  20. .I 6in4
  21. sets up and maintains a tunnel of IPv6 traffic through an IPv4 connection.
  22. .I Local6
  23. and
  24. .I mask
  25. define the IPv6 address and subnet of the near end of the tunnel
  26. .RI ( mask
  27. defaults to
  28. .L /128
  29. for a single-host
  30. tunnel),
  31. .I remote4
  32. is the IPv4 address of the far end of the tunnel
  33. (must be given explicitly for a configured tunnel, or
  34. defaults to the anycast address 192.88.99.1 for
  35. .IR 6to4 ),
  36. and
  37. .I remote6
  38. is the IPv6 address of the far end of the tunnel
  39. (used as the point-to-point destination for routing, and
  40. defaults to a link-local address constructed from
  41. .IR remote4 ).
  42. If
  43. .I local6
  44. is missing,
  45. it defaults to
  46. .BI 2002: aabb : ccdd ::1/48 ,
  47. where
  48. .IR aa ,
  49. .IR bb ,
  50. .I cc
  51. and
  52. .I dd
  53. are the hexadecimal equivalents of the bytes
  54. .IB a . b . c .\c
  55. .I d
  56. in this host's primary IPv4 address.
  57. .PP
  58. Supply
  59. .B -g
  60. to use the tunnel as the default route for global IPv6 addresses.
  61. .B -x
  62. uses the network mounted at
  63. .I netmtpt
  64. instead of
  65. .LR /net .
  66. .SH EXAMPLES
  67. If your primary IPv4 address is public,
  68. you can start a 6to4 tunnel simply with
  69. .IP
  70. .EX
  71. 6in4 -g
  72. .EE
  73. .PP
  74. If you use a tunnel broker at address
  75. .LR 5.6.7.8 ,
  76. configured to give you a
  77. .L /64
  78. subnet with address
  79. .LR 2001:1122:3344:5566:: ,
  80. you can start the tunnel with
  81. .IP
  82. .EX
  83. 6in4 -g 2001:1122:3344:5566::/64 5.6.7.8
  84. .EE
  85. .SH FILES
  86. .B /net/ipmux
  87. .SH SEE ALSO
  88. .I ipmux
  89. in
  90. .IR ip (3)
  91. .br
  92. .B /lib/rfc/rfc3056
  93. .br
  94. .B /lib/rfc/rfc3068
  95. .SH BUGS
  96. Needs a kernel with an
  97. .I ipmux
  98. driver.
  99. .PP
  100. The tunnel client filters addresses fairly conservatively in both directions.
  101. However it's not watertight,
  102. and may be flakey in other ways so don't put too much trust in it.