admin(eggs): add force_outgoing_ip option (#4323)

Closes #3841
This commit is contained in:
Matthew Penner 2022-09-25 13:24:54 -06:00 committed by GitHub
parent b04a47a4a4
commit 68e9100e57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 81 additions and 3 deletions

View file

@ -50,6 +50,21 @@
<textarea id="pDescription" name="description" class="form-control" rows="8">{{ old('description') }}</textarea>
<p class="text-muted small">A description of this Egg.</p>
</div>
<div class="form-group">
<div class="checkbox checkbox-primary no-margin-bottom">
<input id="pForceOutgoingIp" name="force_outgoing_ip" type="checkbox" value="1" {{ \Pterodactyl\Helpers\Utilities::checked('force_outgoing_ip', 0) }} />
<label for="pForceOutgoingIp" class="strong">Force Outgoing IP</label>
<p class="text-muted small">
Forces all outgoing network traffic to have its Source IP NATed to the IP of the server's primary allocation IP.
Required for certain games to work properly when the Node has multiple public IP addresses.
<br>
<strong>
Enabling this option will disable internal networking for any servers using this egg,
causing them to be unable to internally access other servers on the same node.
</strong>
</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">

View file

@ -91,6 +91,22 @@
followed by a pipe character, and then the image URL. Example: <code>Display Name|ghcr.io/my/egg</code>
</p>
</div>
<div class="form-group">
<div class="checkbox checkbox-primary no-margin-bottom">
<input id="pForceOutgoingIp" name="force_outgoing_ip" type="checkbox" value="1" @if($egg->force_outgoing_ip) checked @endif />
<label for="pForceOutgoingIp" class="strong">Force Outgoing IP</label>
<p class="text-muted small">
Forces all outgoing network traffic to have its Source IP NATed to the IP of the server's primary allocation IP.
Required for certain games to work properly when the Node has multiple public IP addresses.
<br>
<strong>
Enabling this option will disable internal networking for any servers using this egg,
causing them to be unable to internally access other servers on the same node.
</strong>
</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">