diff options
author | Simon Rettberg | 2020-09-03 12:06:07 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-09-03 12:06:07 +0200 |
commit | 5574e028dc0ed802d4954b577151cc09c9687ee5 (patch) | |
tree | 5c5e5d49740aa0ee8f80ad664f2408d89eecc65b /modules-available/rebootcontrol/templates | |
parent | [serversetup-bwlp-ipxe/rebootcontrol] Fix translations (diff) | |
download | slx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.tar.gz slx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.tar.xz slx-admin-5574e028dc0ed802d4954b577151cc09c9687ee5.zip |
[rebootcontrol] WOL: Make UDP-Port and c2c discovery configurable
The port setting only applies to WOL-packets sent from the satellite
server.
Testing the reachability of client subnets between each other is usually
pointless, since a subnet that is reachable from another subnet can also
be reached form the satelitte server, unless some fancy firewall rules
are in place.
Diffstat (limited to 'modules-available/rebootcontrol/templates')
-rw-r--r-- | modules-available/rebootcontrol/templates/header.html | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/modules-available/rebootcontrol/templates/header.html b/modules-available/rebootcontrol/templates/header.html index f539be9a..d5e79a14 100644 --- a/modules-available/rebootcontrol/templates/header.html +++ b/modules-available/rebootcontrol/templates/header.html @@ -29,25 +29,39 @@ </button> <div class="clearfix slx-space"></div> </div> - <div class="modal-body"> - <label>{{lang_wolDiscoverHeading}}</label> - <form method="post" action="?do=rebootcontrol"> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="action" value="toggle-wol"> - <div class="checkbox"> - <input {{perms.woldiscover.disabled}} id="wol-auto-discover" type="checkbox" name="enabled" {{wol_auto_checked}}> - <label for="wol-auto-discover">{{lang_wolAutoDiscoverCheck}}</label> + <form method="post" action="?do=rebootcontrol"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="toggle-wol"> + <div class="modal-body"> + <label for="port-input">{{lang_wol}}</label> + <div class="input-group"> + <span class="input-group-addon">{{lang_wolDestPort}}</span> + <input {{perms.woldiscover.disabled}} type="number" min="1" max="65535" + class="form-control" name="port" value="{{port}}" id="port-input"> </div> - <div class="slx-space"></div> - <p>{{lang_wolDiscoverDescription}}</p> - <button {{perms.woldiscover.disabled}} class="btn btn-primary pull-right" - onclick="generateNewKeypair()" type="submit"> - <span class="glyphicon glyphicon-floppy-disk"></span> - {{lang_save}} - </button> - <div class="clearfix"></div> - </form> - </div> + </div> + <div class="modal-body"> + <label>{{lang_wolDiscoverHeading}}</label> + <div class="checkbox"> + <input {{perms.woldiscover.disabled}} id="wol-auto-discover" + type="checkbox" name="enabled" {{wol_auto_checked}}> + <label for="wol-auto-discover">{{lang_wolAutoDiscoverCheck}}</label> + </div> + <div class="checkbox"> + <input {{perms.woldiscover.disabled}} id="wol-c2c" + type="checkbox" name="enabled-c2c" {{wol_c2c_checked}}> + <label for="wol-c2c">{{lang_wolDiscoverClientToClient}}</label> + </div> + <div class="slx-space"></div> + <p>{{lang_wolDiscoverDescription}}</p> + <button {{perms.woldiscover.disabled}} class="btn btn-primary pull-right" + onclick="generateNewKeypair()" type="submit"> + <span class="glyphicon glyphicon-floppy-disk"></span> + {{lang_save}} + </button> + <div class="clearfix"></div> + </div> + </form> <div class="modal-body"> </div> </div> |