You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/server-administration/firewall.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Firewall
2
2
3
3
::: warning
4
-
After every restart, Hestia will clear the current iptables unless the rules are added via Hestia.
4
+
After every edit or update the firewall, Hestia will clear the current iptables unless the rules are added via Hestia and [custom script](#how-can-i-customize-iptables-rules).
5
5
:::
6
6
7
7
## How can I open or block a port or IP?
@@ -36,6 +36,37 @@ IPSet are large lists of IP addresses or subnets. They can be used for blacklist
36
36
8. Choose whether to auto-update the list or not.
37
37
9. Click the **<iclass="fas fa-fw fa-save"></i> Save** button in the top right.
38
38
39
+
## How can I customize iptables rules?
40
+
41
+
::: danger
42
+
This is dangerously advanced feature, please make sure you understand what you are doing.
43
+
:::
44
+
45
+
Hestia supports setting custom rules, chains or flags, etc. using script.
46
+
47
+
Script must be here: `/usr/local/hestia/data/firewall/custom.sh`
add_upgrade_message "About iptables rules [non-urgent]\n\nJust in case, if you added custom iptables rules in an unsupported way, they may have been lost.\n\nSee this issue to learn more:\nhttps://github.com/hestiacp/hestiacp/issues/3128"
27
+
echo"[ * ] Clean up firewall rules restore file..."
0 commit comments