setup_session.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Setup session</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="robots" content="noindex, nofollow">
  8. <link rel="stylesheet" href="/assets/css/simple.min.css" integrity="sha384-RU21UwWLAoiCR1pUjxpW4YprCd2Pdvbi1kFN8QPxkI3gXdF5GrL+OH5GVg/Mvwa5">
  9. </head>
  10. <body>
  11. <header>
  12. <h1>Setup session</h1>
  13. </header>
  14. <main>
  15. <form action="submit.php" method="POST">
  16. <label for="entity" pattern="^.{1,16}$">Entity:</label>
  17. <input type="text" id="entity" name="entity" required>
  18. <div id="tunnel-type">
  19. Tunnel type:
  20. <br>
  21. <input type="radio" id="wg-tunnel" name="tunnel_type" value="wireguard" checked>
  22. <label for="wg-tunnel">WireGuard (preferred)</label>
  23. <br>
  24. <input type="radio" id="fastd-tunnel" name="tunnel_type" value="fastd">
  25. <label for="fastd-tunnel">fastd</label>
  26. <br>
  27. <input type="radio" id="openvpn-tunnel" name="tunnel_type" value="openvpn">
  28. <label for="openvpn-tunnel">OpenVPN static key</label>
  29. <br>
  30. <input type="radio" id="gre-tunnel" name="tunnel_type" value="gre">
  31. <label for="gre-tunnel">GRE</label>
  32. <br>
  33. <input type="radio" id="vxlan-tunnel" name="tunnel_type" value="vxlan">
  34. <label for="vxlan-tunnel">VXLAN</label>
  35. <br>
  36. </div>
  37. <details id="setup-wireguard">
  38. <summary>WireGuard</summary>
  39. <div id="wg-pubkey-area">
  40. <label for="wg-pubkey">Public key:</label>
  41. <br>
  42. <input type="text" id="wg-pubkey" name="wg-pubkey" pattern="^[\w\d\+\/\=]{44}$" placeholder="D+/fffBUJbACsNE7jtt686vQJ44B9xmi5pm9o3SYqG0=">
  43. </div>
  44. <div id="wg-psk-area">
  45. <label for="wg-psk">PSK:</label>
  46. <br>
  47. <input type="text" id="wg-psk" name="wg-psk" pattern="^[\w\d\+\/\=]{44}$" placeholder="1Iy5UUYrPfq/CgaIfqRX3OMBfCKID/m7M3a2LMM/nAs=">
  48. </div>
  49. <div id="wg-endpoint-area">
  50. <label for="wg-endpoint">Endpoint: (Leave empty for no endpoint)</label>
  51. <br>
  52. <input type="text" id="wg-endpoint" name="wg-endpoint" placeholder="crxn.example.com:40008">
  53. </div>
  54. <div id="wg-keepalive-area">
  55. <label for="wg-keepalive">Keepalive: (Leave empty for no keepalive)</label>
  56. <br>
  57. <input type="text" id="wg-keepalive" name="wg-keepalive" pattern="^\d{0,3}$" placeholder="25">
  58. </div>
  59. </details>
  60. <details id="setup-fastd">
  61. <summary>fastd</summary>
  62. <div id="fastd-mode-area">
  63. Mode:
  64. <br>
  65. <input type="radio" id="fastd-mode-tun" name="fastd-mode" value="tun" checked>
  66. <label for="fastd-mode-tun">TUN (layer 3, preferred)</label>
  67. <br>
  68. <input type="radio" id="fastd-mode-tap" name="fastd-mode" value="tap">
  69. <label for="fastd-mode-tap">TAP (layer 2)</label>
  70. </div>
  71. <div id="fastd-method-area">
  72. Method:
  73. <br>
  74. <input type="radio" id="fastd-method-enc" name="fastd-method" value="enc" checked>
  75. <label for="fastd-method-enc">Encrypted (preferred)</label>
  76. <br>
  77. <input type="radio" id="fastd-method-aut" name="fastd-method" value="aut">
  78. <label for="fastd-method-aut">Authenticated-only (<code>null+[...]</code>)</label>
  79. <br>
  80. <input type="radio" id="fastd-method-without" name="fastd-method" value="without-security">
  81. <label for="fastd-method-without">without security (<code>null@l2tp</code>)</label>
  82. </div>
  83. <div id="fastd-connection-over-area">
  84. Connection over:
  85. <br>
  86. <input type="radio" id="fastd-connection-over-ipv6" name="fastd-connection-over" value="ipv6" checked disabled>
  87. <label for="fastd-connection-over-ipv6">IPv6</label>
  88. </div>
  89. <div id="fastd-pubkey-area">
  90. <label for="fastd-pubkey">Public key:</label>
  91. <br>
  92. <input type="text" id="fastd-pubkey" name="fastd-pubkey" placeholder="3c49739cb33465ef721739336ade09eb49c8724842f34c538b5d6f0610236e9a">
  93. </div>
  94. <div id="fastd-endpoint-area">
  95. <label for="fastd-endpoint">Endpoint:</label>
  96. <br>
  97. <input type="text" id="fastd-endpoint" name="fastd-endpoint" placeholder="crxn.example.com:40008">
  98. </div>
  99. </details>
  100. <details id="setup-openvpn">
  101. <summary>OpenVPN</summary>
  102. <div id="openvpn-mode">
  103. Mode:
  104. <br>
  105. <input type="radio" id="openvpn-mode" name="openvpn-mode" value="p2p" checked disabled>
  106. <label for="openvpn-mode">P2P</label>
  107. </div>
  108. <div id="openvpn-proto">
  109. Protocol:
  110. <br>
  111. <input type="radio" id="openvpn-proto" name="openvpn-proto" value="udp6" checked disabled>
  112. <label for="openvpn-proto">UDP6</label>
  113. </div>
  114. <div id="openvpn-cipher-area">
  115. Cipher:
  116. <br>
  117. <input type="radio" id="openvpn-cipher" name="openvpn-cipher" value="aes-256-cbc" checked disabled>
  118. <label for="openvpn-cipher">AES-256-CBC</label>
  119. </div>
  120. <div id="openvpn-endpoint-area">
  121. <label for="openvpn-endpoint">Endpoint: (Leave blank for non-public peers)</label>
  122. <br>
  123. <input type="text" id="openvpn-endpoint" name="openvpn-endpoint" placeholder="crxn.example.com">
  124. </div>
  125. <div id="openvpn-port-area">
  126. <label for="openvpn-port">Port: (Leave blank for non-public peers)</label>
  127. <br>
  128. <input type="text" id="openvpn-port" name="openvpn-port" pattern="^\d{1,5}$" placeholder="40008">
  129. </div>
  130. <div id="openvpn-keepalive-area">
  131. <label for="openvpn-keepalive">Keepalive: (Leave blank for public peers)</label>
  132. <br>
  133. <input type="text" id="openvpn-keepalive" name="openvpn-keepalive" pattern="^\d{0,3}$" placeholder="20">
  134. </div>
  135. <div id="openvpn-keepalive-to-area">
  136. <label for="openvpn-keepalive-to">Keepalive timeout: (Leave blank for public peers)</label>
  137. <br>
  138. <input type="text" id="openvpn-keepalive-to" name="openvpn-keepalive-to" pattern="^\d{0,3}$" placeholder="120">
  139. </div>
  140. </details>
  141. <details id="setup-gre">
  142. <summary>GRE</summary>
  143. <div id="gre-remote-area">
  144. <label for="gre-endpoint">Endpoint:</label>
  145. <br>
  146. <input type="text" id="gre-endpoint" name="gre-endpoint" placeholder="192.168.56.12">
  147. </div>
  148. <div id="gre-ttl-area">
  149. <label for="gre-ttl">TTL:</label>
  150. <br>
  151. <input type="text" id="gre-ttl" name="gre-ttl" value="255" disabled>
  152. </div>
  153. <div id="gre-fou">
  154. FOU:
  155. <br>
  156. <input type="radio" id="gre-fou-none" name="gre-fou" value="none" checked>
  157. <label for="gre-fou-none">None (preferred)</label>
  158. <br>
  159. <input type="radio" id="gre-fou-fou" name="gre-fou" value="none">
  160. <label for="gre-fou-fou">FOU</label>
  161. <br>
  162. <input type="radio" id="gre-fou-gue" name="gre-fou" value="none">
  163. <label for="gre-fou-gue">GUE</label>
  164. <br>
  165. </div>
  166. <div id="gre-fou-port">
  167. <label for="gre-fou-port">FOU port: (Leave blank with no FOU)</label>
  168. <br>
  169. <input type="text" id="gre-fou-port" name="gre-fou-port" pattern="^\d{1,5}$" placeholder="40008">
  170. </div>
  171. </details>
  172. <details id="setup-vxlan">
  173. <summary>VXLAN</summary>
  174. <div id="vxlan-endpoint">
  175. <label for="vxlan-endpoint">Endpoint:</label>
  176. <br>
  177. <input type="text" id="vxlan-endpoint" name="vxlan-endpoint" placeholder="crxn.example.com">
  178. </div>
  179. <div id="vxlan-port">
  180. <label for="vxlan-port">VXLAN port:</label>
  181. <br>
  182. <input type="radio" id="vxlan-port-4" name="vxlan-port" value="4789" checked>
  183. <label for="vxlan-port-4">4789 (preferred)</label>
  184. <br>
  185. <input type="radio" id="vxlan-port-8" name="vxlan-port" value="8472">
  186. <label for="vxlan-port-8">8472</label>
  187. </div>
  188. <div id="vxlan-vni">
  189. <label for="vxlan-vni">VNI:</label>
  190. <br>
  191. <input type="text" id="vxlan-vni" name="vxlan-vni" pattern="^\d{1,8}$" placeholder="244632">
  192. </div>
  193. </details>
  194. <label for="ipv6-ll">Your IPv6 link-local:</label>
  195. <br>
  196. <input type="text" id="ipv6-ll" name="ipv6-ll" placeholder="fe80::1" pattern="^fe80:(:[0-9a-fA-F]{0,4}){0,4}$" required>
  197. <br>
  198. <label for="email">Your E-Mail:</label>
  199. <br>
  200. <input type="email" id="email" name="email" placeholder="contact@example.com" required>
  201. <br>
  202. <label for="website">Your website: (Leave blank if you don't have a website or don't want me to link to it)</label>
  203. <br>
  204. <input type="text" id="website" name="website" placeholder="crxn.example.com">
  205. <br>
  206. <label for="location">Where is your server located?</label>
  207. <br>
  208. <input type="text" id="location" name="location" placeholder="Germany" required>
  209. <br>
  210. <label for="comments">Additional comments:</label>
  211. <br>
  212. <textarea id="comments" name="comments"></textarea>
  213. <div id="captcha-area">
  214. <label for="captcha">What is the answer to everything? (Note: You can look it up on the internet.)</label>
  215. <br>
  216. <input type="text" id="captcha" name="captcha" required>
  217. <br>
  218. </div>
  219. <input type="hidden" name="request" value="true">
  220. <input type="submit">
  221. </form>
  222. </main>
  223. </body>
  224. </html>