2021-12-14 14:06:25 -07:00
|
|
|
{{ template "header.tmpl" . }}
|
|
|
|
|
<div class='tunnel-adder'>
|
|
|
|
|
<h1>Add Tunnel</h1>
|
|
|
|
|
<form action="/tunnels" method="POST">
|
|
|
|
|
<div class='input'>
|
2021-12-15 14:34:06 -07:00
|
|
|
<p>
|
|
|
|
|
Enter a domain below, or automatically configure DNS using
|
2021-12-23 00:02:28 -07:00
|
|
|
<a href='/takingnames'>TakingNames.io</a>
|
2021-12-15 14:34:06 -07:00
|
|
|
</p>
|
2021-12-14 14:06:25 -07:00
|
|
|
<label for="domain">Domain:</label>
|
2021-12-14 16:52:26 -07:00
|
|
|
<input type="text" id="domain" name="domain" value="{{$.Domain}}" required>
|
2021-12-14 14:06:25 -07:00
|
|
|
<input type="hidden" id="tunnel-owner" name="owner" value="{{$.UserId}}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="tunnel-port">Tunnel Port:</label>
|
|
|
|
|
<input type="text" id="tunnel-port" name="tunnel-port" value="Random">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="client-name">Client Name:</label>
|
|
|
|
|
<select id="client-name" name="client-name">
|
|
|
|
|
<option value="none">No client</option>
|
|
|
|
|
{{range $id, $client := (index $.Users $.UserId).Clients}}
|
|
|
|
|
<option value="{{$id}}">{{$id}}</option>
|
|
|
|
|
{{end}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="client-addr">Client Address:</label>
|
|
|
|
|
<input type="text" id="client-addr" name="client-addr" value='127.0.0.1'>
|
|
|
|
|
</div>
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="client-port">Client Port:</label>
|
|
|
|
|
<input type="text" id="client-port" name="client-port">
|
|
|
|
|
</div>
|
2022-02-16 10:17:32 -07:00
|
|
|
<div class='input'>
|
|
|
|
|
<label for="tls-termination">TLS Termination:</label>
|
|
|
|
|
<select id="tls-termination" name="tls-termination">
|
|
|
|
|
<option value="client">Client HTTPS</option>
|
|
|
|
|
<option value="server">Server HTTPS</option>
|
|
|
|
|
<option value="client-tls">Client raw TLS</option>
|
2022-02-24 14:12:09 -07:00
|
|
|
<option value="server-tls">Server raw TLS</option>
|
2022-02-16 10:17:32 -07:00
|
|
|
<option value="passthrough">Passthrough</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2021-12-14 14:06:25 -07:00
|
|
|
<div class='input'>
|
|
|
|
|
<label for="allow-external-tcp">Allow External TCP:</label>
|
|
|
|
|
<input type="checkbox" id="allow-external-tcp" name="allow-external-tcp">
|
|
|
|
|
</div>
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="password-protect">Password Protect:</label>
|
|
|
|
|
<input type="checkbox" id="password-protect" name="password-protect">
|
|
|
|
|
|
|
|
|
|
<div id='login-inputs'>
|
|
|
|
|
<label for="username">Username:</label>
|
|
|
|
|
<input type="text" id="username" name="username">
|
|
|
|
|
<label for="password">Password:</label>
|
|
|
|
|
<input type="password" id="password" name="password">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-12-14 16:52:26 -07:00
|
|
|
|
2022-02-24 14:33:13 -07:00
|
|
|
<div class='input'>
|
|
|
|
|
<label for="ssh-server-addr">Override SSH Server Address:</label>
|
|
|
|
|
<input type="text" id="ssh-server-addr" name="ssh-server-addr">
|
|
|
|
|
</div>
|
|
|
|
|
<div class='input'>
|
|
|
|
|
<label for="ssh-server-port">Override SSH Server Port:</label>
|
|
|
|
|
<input type="text" id="ssh-server-port" name="ssh-server-port">
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-12-14 14:06:25 -07:00
|
|
|
<button class='button' type="submit">Submit</button>
|
2021-12-14 16:52:26 -07:00
|
|
|
|
2021-12-14 14:06:25 -07:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{{ template "footer.tmpl" . }}
|