mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
firewall.cgi XDP SYNPROXY UI option
only show XDP SYNPROXY option when protocol TCP is selected. Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -130,9 +130,15 @@ print<<END;
|
|||||||
|
|
||||||
// Check if we are dealing with a protocol, that knows ports.
|
// Check if we are dealing with a protocol, that knows ports.
|
||||||
if (\$.inArray(protocol, PROTOCOLS_WITH_PORTS) >= 0) {
|
if (\$.inArray(protocol, PROTOCOLS_WITH_PORTS) >= 0) {
|
||||||
|
if (protocol === "TCP") {
|
||||||
|
\$("#XDP_SYNPROXY").show();
|
||||||
|
} else {
|
||||||
|
\$("#XDP_SYNPROXY").hide();
|
||||||
|
}
|
||||||
\$("#PROTOCOL_PORTS").show();
|
\$("#PROTOCOL_PORTS").show();
|
||||||
} else {
|
} else {
|
||||||
\$("#PROTOCOL_PORTS").hide();
|
\$("#PROTOCOL_PORTS").hide();
|
||||||
|
\$("#XDP_SYNPROXY").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle ICMP.
|
// Handle ICMP.
|
||||||
@@ -1928,7 +1934,7 @@ END
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table width="100%" border="0" id="PROTOCOL_PORTS">
|
<table width="40%" border="0" id="XDP_SYNPROXY">
|
||||||
<tr>
|
<tr>
|
||||||
<!-- #USE_SYNPROXY -->
|
<!-- #USE_SYNPROXY -->
|
||||||
<td>
|
<td>
|
||||||
@@ -1939,6 +1945,8 @@ END
|
|||||||
<input type='checkbox' name='USE_SYNPROXY' id='USE_SYNPROXY' value="ON" $checked{'USE_SYNPROXY'}{'ON'}>
|
<input type='checkbox' name='USE_SYNPROXY' id='USE_SYNPROXY' value="ON" $checked{'USE_SYNPROXY'}{'ON'}>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table width="100%" border="0" id="PROTOCOL_PORTS">
|
||||||
<tr>
|
<tr>
|
||||||
<!-- #SOURCEPORT -->
|
<!-- #SOURCEPORT -->
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -1254,7 +1254,7 @@
|
|||||||
'fwdfw toggle' => 'Activate or deactivate',
|
'fwdfw toggle' => 'Activate or deactivate',
|
||||||
'fwdfw togglelog' => 'Activate or deactivate logging',
|
'fwdfw togglelog' => 'Activate or deactivate logging',
|
||||||
'fwdfw use nat' => 'Use Network Address Translation (NAT)',
|
'fwdfw use nat' => 'Use Network Address Translation (NAT)',
|
||||||
'fwdfw use synproxy' => 'Use XDP SYNPROXY acceleration',
|
'fwdfw use synproxy' => 'Use XDP TCP SYNPROXY acceleration:',
|
||||||
'fwdfw use srcport' => 'Source port:',
|
'fwdfw use srcport' => 'Source port:',
|
||||||
'fwdfw use srv' => 'Destination port:',
|
'fwdfw use srv' => 'Destination port:',
|
||||||
'fwdfw useless rule' => 'This rule is useless.',
|
'fwdfw useless rule' => 'This rule is useless.',
|
||||||
|
|||||||
Reference in New Issue
Block a user