mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
wireguard.cgi: Add CGI to configure wireguard
commit 06dbc836a47160d51ab10f8b9d4ca356beaa7cdb
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Tue Apr 16 18:06:47 2024 +0200
wireguard.cgi: Add a basic CGI to configure the global settings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -48,6 +48,7 @@ wakeonlan.cgi=configuration/network/wake-on-lan
|
||||
|
||||
# Services menu
|
||||
vpnmain.cgi=configuration/services/ipsec
|
||||
wireguard.cgi=configuration/services/wireguard
|
||||
ovpnmain.cgi=configuration/services/openvpn
|
||||
ddns.cgi=configuration/services/dyndns
|
||||
time.cgi=configuration/services/ntp
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
'title' => "$Lang::tr{'virtual private networking'}",
|
||||
'enabled' => 1,
|
||||
};
|
||||
$subservices->{'15.wireguard'} = {
|
||||
'caption' => $Lang::tr{'wireguard'},
|
||||
'uri' => '/cgi-bin/wireguard.cgi',
|
||||
'title' => "$Lang::tr{'wireguard'}",
|
||||
'enabled' => 1,
|
||||
};
|
||||
$subservices->{'20.openvpn'} = {
|
||||
'caption' => 'OpenVPN',
|
||||
'uri' => '/cgi-bin/ovpnmain.cgi',
|
||||
|
||||
@@ -86,6 +86,7 @@ srv/web/ipfire/cgi-bin/wakeonlan.cgi
|
||||
srv/web/ipfire/cgi-bin/webaccess.cgi
|
||||
#srv/web/ipfire/cgi-bin/wio.cgi
|
||||
#srv/web/ipfire/cgi-bin/wiographs.cgi
|
||||
srv/web/ipfire/cgi-bin/wireguard.cgi
|
||||
srv/web/ipfire/cgi-bin/wireless.cgi
|
||||
srv/web/ipfire/cgi-bin/wirelessclient.cgi
|
||||
srv/web/ipfire/cgi-bin/wlanap.cgi
|
||||
|
||||
@@ -1559,6 +1559,7 @@ WARNING: untranslated string: proxy reports today = Today
|
||||
WARNING: untranslated string: proxy reports weekly = Weekly reports
|
||||
WARNING: untranslated string: ptr = PTR
|
||||
WARNING: untranslated string: ptr lookup failed = Reverse lookup failed
|
||||
WARNING: untranslated string: public key = unknown string
|
||||
WARNING: untranslated string: pulse = Pulse
|
||||
WARNING: untranslated string: pulse dial = Pulse dial:
|
||||
WARNING: untranslated string: qos enter bandwidths = You will need to enter your downstream and upstream bandwidth!
|
||||
|
||||
1526
html/cgi-bin/wireguard.cgi
Normal file
1526
html/cgi-bin/wireguard.cgi
Normal file
File diff suppressed because it is too large
Load Diff
@@ -118,6 +118,29 @@ iframe {
|
||||
float: right !important;
|
||||
}
|
||||
|
||||
/*
|
||||
Text Alignment
|
||||
*/
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/*
|
||||
Text Colors
|
||||
*/
|
||||
.text-error {
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
/* Header */
|
||||
|
||||
#header {
|
||||
|
||||
@@ -434,6 +434,7 @@
|
||||
'all services' => 'All Services',
|
||||
'all updates installed' => 'All updates installed',
|
||||
'allmsg' => 'show all',
|
||||
'allowed subnets' => 'Allowed Subnets',
|
||||
'alt dialup' => 'Dialup',
|
||||
'alt home' => 'Home',
|
||||
'alt information' => 'Information',
|
||||
@@ -671,6 +672,7 @@
|
||||
'compression' => 'Compression:',
|
||||
'computer to modem rate' => 'Computer to modem rate:',
|
||||
'concentrator name' => 'Concentrator name:',
|
||||
'configuration file' => 'Configuration File',
|
||||
'confirmation' => 'confirmation',
|
||||
'connect' => 'OVPN Start / Connect',
|
||||
'connect the modem' => 'Connect the modem',
|
||||
@@ -932,7 +934,7 @@
|
||||
'donation-link' => 'https://www.paypal.com/en_US/GB/i/btn/btn_donateCC_LG.gif',
|
||||
'donation-ipfire-text' => '<strong>IPFire</strong> is driven and maintained by volunteers in their free time. To keep this project running costs incurred, if you like to support us we would be pleased by a small donation.',
|
||||
'donation-bpfire-text' => '<strong>BPFire</strong> is to enable revolutionary eBPF technology for non-tech savvy users, make eBPF technology available to home users or any size of organizations to secure their network environment, It is driven and maintained by Vincent Li in his free time. To keep this project running costs incurred, if you like to support him he would be pleased by a small donation.',
|
||||
'done' => 'Do it',
|
||||
'done' => 'Done',
|
||||
'dos charset' => 'DOS Charset',
|
||||
'down and up speed' => 'Enter your Down- and Uplink-Speed <br /> and then press <i>Save</i>.',
|
||||
'downfall gather data sampling' => 'Downfall/Gather Data Sampling',
|
||||
@@ -1037,6 +1039,9 @@
|
||||
'encrypted' => 'Encrypted',
|
||||
'encryption' => 'Encryption:',
|
||||
'end address' => 'End address:',
|
||||
'endpoint' => 'Endpoint',
|
||||
'endpoint address' => 'Endpoint Address',
|
||||
'endpoint port' => 'Endpoint Port',
|
||||
'enter ack class' => 'Enter the ACK- Class <br /> and then press <i>Save</i>.',
|
||||
'enter data' => 'Enter your settings <br /> and then press <i>Save</i>.',
|
||||
'entropy' => 'Entropy',
|
||||
@@ -1484,6 +1489,7 @@
|
||||
'ike lifetime should be between 1 and 24 hours' => 'IKE lifetime should be between 1 and 24 hours.',
|
||||
'imei' => 'IMEI',
|
||||
'import' => 'Import',
|
||||
'import connection' => 'Import a Connection',
|
||||
'importkey' => 'Import PSK',
|
||||
'imsi' => 'IMSI',
|
||||
'in' => 'In',
|
||||
@@ -1542,6 +1548,8 @@
|
||||
'invalid domain name' => 'Invalid domain name.',
|
||||
'invalid downlink speed' => 'Invalid downlink speed.',
|
||||
'invalid end address' => 'Invalid end address.',
|
||||
'invalid endpoint' => 'Invalid Endpoint',
|
||||
'invalid endpoint address' => 'Invalid Endpoint Address',
|
||||
'invalid fixed ip address' => 'Invalid fixed IP address',
|
||||
'invalid fixed mac address' => 'Invalid fixed MAC address',
|
||||
'invalid hostname' => 'Invalid hostname.',
|
||||
@@ -1576,8 +1584,10 @@
|
||||
'invalid input for subscription code' => 'Invalid input for subscription code',
|
||||
'invalid input for valid till days' => 'Invalid input for Valid till (days).',
|
||||
'invalid ip' => 'Invalid IP Address',
|
||||
'invalid ip address' => 'Invalid IP Address',
|
||||
'invalid ip or hostname' => 'Invalid IP Address or Hostname',
|
||||
'invalid keep time' => 'Keep time must be a valid number',
|
||||
'invalid keepalive interval' => 'Invalid Keepalive Interval',
|
||||
'invalid key' => 'Invalid key.',
|
||||
'invalid loaded file' => 'Invalid loaded file',
|
||||
'invalid local-remote id' => 'local & remote id must not be equal and begin with a "@" sign. These are leftid and rightid in strongswan terminology.',
|
||||
@@ -1592,6 +1602,7 @@
|
||||
'invalid minimum object size' => 'Invalid minimum object size.',
|
||||
'invalid mtu input' => 'Invalid MTU',
|
||||
'invalid netmask' => 'Invalid netmask',
|
||||
'invalid network' => 'Invalid Network',
|
||||
'invalid port' => 'Invalid port. Must be a valid port number.',
|
||||
'invalid port list' => 'Port list syntax is: port[,port]... where port is in /etc/services or number',
|
||||
'invalid primary dns' => 'Invalid primary DNS.',
|
||||
@@ -1697,8 +1708,10 @@
|
||||
'local ip address' => 'Local IP Address',
|
||||
'local master' => 'Local Master',
|
||||
'local ntp server specified but not enabled' => 'Local NTP server specified but not enabled',
|
||||
'local port' => 'Local Port',
|
||||
'local subnet' => 'Local subnet:',
|
||||
'local subnet is invalid' => 'Local subnet is invalid.',
|
||||
'local subnets' => 'Local Subnets',
|
||||
'local vpn hostname/ip' => 'Local VPN Hostname/IP',
|
||||
'localkey' => 'Localkey',
|
||||
'localkeyfile' => 'Localkeyfile',
|
||||
@@ -1768,6 +1781,9 @@
|
||||
'mailmethod' => 'Mailmethod',
|
||||
'mailprogramm' => 'Mailprogramm',
|
||||
'main page' => 'Main page',
|
||||
'malformed preshared key' => 'Malformed Pre-Shared Key',
|
||||
'malformed private key' => 'Malformed Private Key',
|
||||
'malformed public key' => 'Malformed Public Key',
|
||||
'manage ovpn' => '5. Tunnel Management:',
|
||||
'manage printers' => 'manage printers',
|
||||
'manage shares' => 'Manage Shares',
|
||||
@@ -2205,12 +2221,14 @@
|
||||
'psk' => 'PSK',
|
||||
'ptr' => 'PTR',
|
||||
'ptr lookup failed' => 'Reverse lookup failed',
|
||||
'public key' => 'Public Key',
|
||||
'pulse' => 'Pulse',
|
||||
'pulse dial' => 'Pulse dial:',
|
||||
'qos add subclass' => 'Add subclass',
|
||||
'qos enter bandwidths' => 'You will need to enter your downstream and upstream bandwidth!',
|
||||
'qos graphs' => 'Qos Graphs',
|
||||
'qos warning' => 'The rule <strong>must</strong> be saved, otherwise it will be discarded!',
|
||||
'qr code' => 'QR Code',
|
||||
'quick control' => 'Quick Control',
|
||||
'quick playlist' => 'Quick Playlist',
|
||||
'ram' => 'RAM',
|
||||
@@ -2246,6 +2264,7 @@
|
||||
'reload' => 'reload',
|
||||
'remark' => 'Remark',
|
||||
'remark title' => 'Remark:',
|
||||
'remarks' => 'Remarks',
|
||||
'remote access' => 'Remote access',
|
||||
'remote announce' => 'Remote Announce',
|
||||
'remote browse sync' => 'Remote Browse Sync',
|
||||
@@ -2253,6 +2272,7 @@
|
||||
'remote logging' => 'Remote logging',
|
||||
'remote subnet' => 'Remote subnet:',
|
||||
'remote subnet is invalid' => 'Remote subnet is invalid.',
|
||||
'remote subnets' => 'Remote Subnets',
|
||||
'removable device advice' => 'Plug in a device, refresh, select and mount before usage. Umount before removal.',
|
||||
'remove' => 'Remove',
|
||||
'remove ca certificate' => 'Remove CA certificate',
|
||||
@@ -2286,6 +2306,7 @@
|
||||
'root user password' => 'Root password',
|
||||
'route subnet is invalid' => 'Additional push route subnet is invalid',
|
||||
'router ip' => 'Router IP address:',
|
||||
'routing' => 'Routing',
|
||||
'routing table entries' => 'Routing Table Entries',
|
||||
'rsvd dst port overlap' => 'Destination Port Range overlaps a port reserved for IPFire:',
|
||||
'rsvd src port overlap' => 'Source Port Range overlaps a port reserved for IPFire:',
|
||||
@@ -3102,6 +3123,48 @@
|
||||
'week-graph' => 'Week',
|
||||
'weekly firewallhits' => 'weekly firewallhits',
|
||||
'weeks' => 'Weeks',
|
||||
'wg client configuration file' => 'WireGuard Client Configuration File',
|
||||
'wg client pool' => 'Client Pool',
|
||||
'wg create host-to-net peer' => 'Create A New Host-To-Net Peer',
|
||||
'wg create net-to-net peer' => 'Create A New Net-To-Net Peer',
|
||||
'wg create peer' => 'Create A New Peer',
|
||||
'wg dns' => 'DNS',
|
||||
'wg download configuration' => 'Download Configuration',
|
||||
'wg download configuration file' => 'Download the configuration file',
|
||||
'wg edit host-to-net peer' => 'Edit Host-To-Net Peer',
|
||||
'wg edit net-to-net peer' => 'Edit Net-To-Net Peer',
|
||||
'wg edit peer' => 'Edit Peer',
|
||||
'wg host to net client settings' => 'Host-To-Net Client Settings',
|
||||
'wg import peer' => 'Import Peer',
|
||||
'wg invalid client dns' => 'Invalid client DNS address',
|
||||
'wg invalid client pool' => 'Invalid client pool',
|
||||
'wg invalid endpoint address' => 'Invalid endpoint address',
|
||||
'wg invalid endpoint port' => 'Invalid endpoint port',
|
||||
'wg invalid keepalive interval' => 'Invalid Keepalive Interval (Must be between 0 and 65535)',
|
||||
'wg invalid local subnet' => 'Invalid local subnet',
|
||||
'wg invalid name' => 'Invalid name (Only letters, numbers, space and hyphen are allowed)',
|
||||
'wg invalid psk' => 'Invalid pre-shared key',
|
||||
'wg invalid public key' => 'Invalid public key',
|
||||
'wg invalid remote subnet' => 'Invalid remote subnet',
|
||||
'wg keepalive interval' => 'Keepalive Interval',
|
||||
'wg leave empty to automatically select' => 'Leave empty to automatically select',
|
||||
'wg missing allowed ips' => 'Missing AllowedIPs',
|
||||
'wg missing endpoint address' => 'Missing Endpoint Address',
|
||||
'wg missing endpoint port' => 'Missing Endpoint Port',
|
||||
'wg missing port' => 'Missing Port',
|
||||
'wg missing private key' => 'Missing Private Key',
|
||||
'wg missing public key' => 'Missing Public Key',
|
||||
'wg name is already used' => 'The name is already in use',
|
||||
'wg no local subnets' => 'No local subnets given',
|
||||
'wg no more free addresses in pool' => 'No more free addresses in pool',
|
||||
'wg no remote subnets' => 'No remote subnets given',
|
||||
'wg peer configuration' => 'Peer Configuration',
|
||||
'wg peer does not exist' => 'Peer does not exist',
|
||||
'wg pre-shared key (optional)' => 'Pre-Shared Key (optional)',
|
||||
'wg rw peers' => 'WireGuard Roadwarrior Peers',
|
||||
'wg scan the qr code' => 'Scan the QR code to import the WireGuard configuration into a mobile client.',
|
||||
'wg show configuration qrcode' => 'Show Configuration QR Code',
|
||||
'wg warning configuration only shown once' => 'Attention: This WireGuard configuration file will only be shown this one time as it contains private key material that is not being stored on IPFire.',
|
||||
'whois results from' => 'WHOIS results from',
|
||||
'wildcards' => 'Wildcards',
|
||||
'winbind daemon' => 'Winbind Daemon',
|
||||
|
||||
Reference in New Issue
Block a user