mirror of
https://github.com/openziti/zrok.git
synced 2025-01-08 06:59:38 +01:00
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1889],{5143:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>t,metadata:()=>i,toc:()=>a});var r=s(5893),c=s(1151);const t={sidebar_position:25},o="Sharing TCP and UDP Servers",i={id:"concepts/tunnels",title:"Sharing TCP and UDP Servers",description:"zrok includes support for sharing low-level TCP and UDP network resources using the tcpTunnel and udpTunnel backend modes.",source:"@site/../docs/concepts/tunnels.md",sourceDirName:"concepts",slug:"/concepts/tunnels",permalink:"/docs/concepts/tunnels",draft:!1,unlisted:!1,editUrl:"https://github.com/openziti/zrok/blob/main/docs/../docs/concepts/tunnels.md",tags:[],version:"current",sidebarPosition:25,frontMatter:{sidebar_position:25},sidebar:"tutorialSidebar",previous:{title:"Sharing HTTP Servers",permalink:"/docs/concepts/http"},next:{title:"Sharing Websites and Files",permalink:"/docs/concepts/files"}},d={},a=[];function l(e){const n={code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,c.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"sharing-tcp-and-udp-servers",children:"Sharing TCP and UDP Servers"})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"zrok"})," includes support for sharing low-level TCP and UDP network resources using the ",(0,r.jsx)(n.code,{children:"tcpTunnel"})," and ",(0,r.jsx)(n.code,{children:"udpTunnel"})," backend modes."]}),"\n",(0,r.jsxs)(n.p,{children:["As of version ",(0,r.jsx)(n.code,{children:"v0.4"}),", ",(0,r.jsx)(n.code,{children:"zrok"})," supports sharing TCP and UDP network resources using ",(0,r.jsx)(n.code,{children:"private"})," sharing."]}),"\n",(0,r.jsxs)(n.p,{children:["To share a raw network resource using ",(0,r.jsx)(n.code,{children:"zrok"}),", you'll want to use the ",(0,r.jsx)(n.code,{children:"zrok share private"})," command from your ",(0,r.jsx)(n.code,{children:"enable"}),"-d environment, like this:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:"$ zrok share private --backend-mode tcpTunnel 192.168.9.1:22\n"})}),"\n",(0,r.jsx)(n.p,{children:"This will result in a share client starting, which looks like this:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:"\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 access your share with: zrok access private 5adagwfl888k \u2502\u2502[PRIVATE][TCPTUNNEL]\u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 \u2502\n\u2502
|