###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2025 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
my %ddnssettings=();
my %proxysettings=();
my %vpnsettings=();
+my %wgsettings=();
my %vpnconfig=();
my %ovpnconfig=();
my $warnmessage = '';
&General::readhash("${General::swroot}/ddns/settings", \%ddnssettings);
&General::readhash("${General::swroot}/proxy/advanced/settings", \%proxysettings);
&General::readhash("${General::swroot}/vpn/settings", \%vpnsettings);
+&General::readhash("${General::swroot}/wireguard/settings", \%wgsettings);
my %color = ();
my %mainsettings = ();
<td style='width:45%; text-align:center; color:$Header::colourgreen;'>Online</td>
</tr>
END
- }
+}
+
+#check if WireGuard is running
+if ( $wgsettings{'ENABLED'} eq 'on' ) {
+print<<END;
+ <tr>
+ <td style='width:25%; text-align:center; background-color:$Header::colourwg;'>
+ <a href='/cgi-bin/wireguard.cgi' style='color:white'><b>$Lang::tr{'wg'}</b></a>
+ </td>
+ <td style='width:30%; text-align:center;'></td>
+ <td style='width:45%; text-align:center; color:$Header::colourgreen;'>Online</td>
+ </tr>
+END
+}
+
print"</table>";
&Header::closesection();