gen-ipsec-for-mt/index.html

118 lines
6.9 KiB
HTML
Raw Normal View History

2024-06-22 23:37:24 +03:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MikroTik IPsec Configuration</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>MikroTik IPsec Configuration</h1>
<form action="generate_ipsec_config.rb" method="post" autocomplete="off">
<fieldset>
<legend>Phase 1</legend>
<label for="phase1-profile-name">Profile Name:</label>
<input type="text" id="phase1-profile-name" name="phase1_profile_name" autocomplete="new-password" required><br><br>
<label for="phase1-remote-gateway">Remote Gateway (IP Address):</label>
<input type="text" id="phase1-remote-gateway" name="phase1_remote_gateway" autocomplete="new-password" required><br><br>
<label for="phase1-local-address">Local Address (Single IP, optional):</label>
<input type="text" id="phase1-local-address" name="phase1_local_address" autocomplete="new-password"><br><br>
<label for="phase1-ike-version">IKE Version:</label>
<select id="phase1-ike-version" name="phase1_ike_version" autocomplete="new-password" required>
<option value="ike2" selected>IKEv2</option>
<option value="ike1">IKEv1</option>
</select><br><br>
<label for="phase1-auth-method">Authentication Method:</label>
<select id="phase1-auth-method" name="phase1_auth_method" autocomplete="new-password" required>
<option value="psk" selected>Pre-shared Key</option>
<option value="rsa">RSA Signatures</option>
</select><br><br>
<label for="phase1-pre-shared-key">Pre-shared Key:</label>
<input type="password" id="phase1-pre-shared-key" name="phase1_pre_shared_key" autocomplete="new-password" required><br><br>
<label for="phase1-encryption-algorithm">Encryption Algorithms (multiple allowed):</label>
<select id="phase1-encryption-algorithm" name="phase1_encryption_algorithm[]" multiple autocomplete="new-password" required>
<option value="aes-128" selected>AES-128</option>
<option value="aes-192">AES-192</option>
<option value="aes-256">AES-256</option>
</select><br><br>
<label for="phase1-hash-algorithm">Hash Algorithms (multiple allowed):</label>
<select id="phase1-hash-algorithm" name="phase1_hash_algorithm[]" multiple autocomplete="new-password" required>
<option value="sha1">SHA1</option>
<option value="sha256" selected>SHA256</option>
<option value="sha384">SHA384</option>
<option value="sha512">SHA512</option>
</select><br><br>
<label for="phase1-dh-group">DH Groups (multiple allowed):</label>
<select id="phase1-dh-group" name="phase1_dh_group[]" multiple autocomplete="new-password" required>
<option value="modp1024">Group 2</option>
<option value="modp1536" selected>Group 14</option>
<option value="modp2048" selected>Group 15</option>
<option value="modp3072">Group 16</option>
<option value="modp4096">Group 17</option>
<option value="modp6144">Group 18</option>
<option value="modp8192">Group 19</option>
</select><br><br>
<label for="phase1-remote-id">Remote ID (optional):</label>
<input type="text" id="phase1-remote-id" name="phase1_remote_id" autocomplete="new-password"><br><br>
</fieldset>
<fieldset>
<legend>Phase 2</legend>
<label for="phase2-profile-name">Profile Name:</label>
<input type="text" id="phase2-profile-name" name="phase2_profile_name" autocomplete="new-password" required><br><br>
<label for="phase2-local-address">Local Address (or Subnet):</label>
<input type="text" id="phase2-local-address" name="phase2_local_address" placeholder="e.g., 192.168.1.0/24" autocomplete="new-password" required><br><br>
<label for="phase2-remote-address">Remote Address (or Subnet):</label>
<input type="text" id="phase2-remote-address" name="phase2_remote_address" placeholder="e.g., 10.0.0.0/24" autocomplete="new-password" required><br><br>
<label for="phase2-encryption-algorithm">Encryption Algorithms (multiple allowed):</label>
<select id="phase2-encryption-algorithm" name="phase2_encryption_algorithm[]" multiple autocomplete="new-password" required>
<option value="aes-128-cbc" selected>aes-128-cbc</option>
<option value="aes-128-ctr" selected>aes-128-ctr</option>
<option value="aes-128-gcm" selected>aes-128-gcm</option>
<option value="aes-192-cbc" selected>aes-192-cbc</option>
<option value="aes-256-cbc" selected>aes-256-cbc</option>
<option value="aes-256-ctr" selected>aes-256-ctr</option>
<option value="aes-256-gcm" selected>aes-256-gcm</option>
</select><br><br>
<label for="phase2-hash-algorithm">Hash Algorithms (multiple allowed):</label>
<select id="phase2-hash-algorithm" name="phase2_hash_algorithm[]" multiple autocomplete="new-password" required>
<option value="sha1" selected>SHA1</option>
<option value="sha256" selected>SHA256</option>
<option value="sha384">SHA384</option>
<option value="sha512">SHA512</option>
</select><br><br>
<label for="phase2-pfs-group">PFS Group:</label>
<select id="phase2-pfs-group" name="phase2_pfs_group" autocomplete="new-password" required>
<option value="modp1536">Group 14</option>
<option value="modp2048" selected>Group 15</option>
<option value="modp3072">Group 16</option>
<option value="modp4096">Group 17</option>
<option value="modp6144">Group 18</option>
<option value="modp8192">Group 19</option>
</select><br><br>
<label for="phase2-lifetime">Lifetime (seconds):</label>
<input type="number" id="phase2-lifetime" name="phase2_lifetime" value="43200" min="1" autocomplete="new-password" required><br><br>
</fieldset>
<input type="submit" value="Generate Configuration">
</form>
</div>
</body>
</html>