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/install/install.md
+24-8Lines changed: 24 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -815,19 +815,35 @@ You can now proceed to the [Next Steps](#next-steps) or skip the rest of this se
815
815
816
816
## Install: DirectAdmin
817
817
818
+
819
+
<divclass="grid cards"markdown>
820
+
821
+
- :aetherx-axb-directadmin: __[DirectAdmin: System Requirements](https://docs.directadmin.com/getting-started/installation/overview.html#system-requirements)__
Before you begin installing DirectAdmin, you will need a valid license key. You can obtain one by [purchasing a plan](https://directadmin.com/pricing.php).
819
836
820
837
DirectAdmin offers competitively priced options, with the **Personal Plus** plan starting at just $5.00 USD per month.
821
838
822
-
??? note "Free Trial"
839
+
??? note "Free Trial Availability"
823
840
824
841
Currently, there is no information available regarding a free trial license for DirectAdmin.
825
842
If the DirectAdmin team wishes to clarify this, they can contact us via the [GitHub Repository](https://github.com/Aetherinox/csf-firewall/issues).
826
843
827
844
<br />
828
845
829
-
Once you have your license, download the DirectAdmin installation script to your server.
830
-
The specific command to use depends on your Linux distribution.
846
+
Once you have your license, download the DirectAdmin installation script to your server. The specific command to use depends on your Linux distribution.
831
847
832
848
=== ":aetherx-axd-circle-1: Option 1"
833
849
@@ -1130,20 +1146,20 @@ Clicking the menu item **ConfigServer Security and Firewall** will open the CSF
1130
1146
1131
1147
<br />
1132
1148
1133
-
The next important page to be aware of is the **Plugins** page:
1149
+
The next important page to be aware of is the **Plugins Manager** page:
1134
1150
1135
1151
<figuremarkdown="span">
1136
-
{ width="370" }
1137
-
<figcaption>DirectAdmin › Extra Features › Plugins</figcaption>
1152
+
{ width="370" }
1153
+
<figcaption>DirectAdmin › Extra Features › Plugins Manager</figcaption>
1138
1154
</figure>
1139
1155
1140
1156
<br />
1141
1157
1142
1158
On this page, you can see a list of all currently installed DirectAdmin plugins, including the installed version of CSF:
1143
1159
1144
1160
<figuremarkdown="span">
1145
-
{ width="800" }
1146
-
<figcaption>DirectAdmin › Extra Features › Plugins</figcaption>
1161
+
{ width="800" }
1162
+
<figcaption>DirectAdmin › Extra Features › Plugins Manager</figcaption>
Copy file name to clipboardExpand all lines: docs/docs/usage/prepost.md
+46-16Lines changed: 46 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,29 +41,57 @@ This section outlines exactly how the pre and post scripts are initialized and l
41
41
42
42
<br />
43
43
44
-
### Loader Scripts
44
+
### Structure
45
45
46
-
- When CSF is installed for the first time, two files :aetherx-axd-file: `/usr/local/csf/bin/csfpre.sh` and :aetherx-axd-file: `/usr/local/csf/bin/csfpost.sh` are automatically created on your system _(they will not overwrite existing copies)_. These files are loader scripts, giving you the ability to add your own custom bash scripts.
47
-
- You must create the pre-loader folder :aetherx-axd-folder: `/usr/local/include/csf/pre.d/` and post-loader folder :aetherx-axd-folder: `/usr/local/include/csf/post.d/`
48
-
- If you already have existing pre/post loader files in place, CSF will respect this and **NOT** overwrite your existing files. Your existing setup will not be touched.
46
+
When CSF is installed for the first time, it automatically creates two files:
47
+
48
+
- 📄 `/usr/local/csf/bin/csfpre.sh`
49
+
- 📄 `/usr/local/csf/bin/csfpost.sh`
50
+
51
+
<br />
52
+
53
+
These files act as **loader scripts**. They allow you to run your own custom Bash scripts **before** and **after** CSF executes. To use them, create the following directories:
54
+
55
+
- 📁 `/usr/local/include/csf/pre.d/` — scripts run *before* CSF
56
+
- 📁 `/usr/local/include/csf/post.d/` — scripts run *after* CSF
57
+
58
+
??? note "Existing Files"
59
+
60
+
If you already have pre-loader and post-loader files in placve on your server,
61
+
CSF will **not** overwrite them. Your existing configuration will be left exactly
62
+
as-is.
63
+
64
+
<br />
65
+
66
+
After creating the directories above, you can now place your own custom bash scripts inside these folders. Restart CSF to load them.
49
67
50
68
<br />
51
69
70
+
### Loader Files
71
+
72
+
As mentioned above, when installing CSF, two files will be loaded to your system. Those files are outlined below:
: - The file `csfpre.sh` installed with CSF loads every custom bash script you drop in the :aetherx-axd-folder: `/usr/local/include/csf/pre.d/` folder.
55
-
- If making your own `csfpre.sh` loader, there are **two allowed locations** to place this script — either one is valid:
: - The file `csfpost.sh` installed with CSF loads every custom bash script you drop in the :aetherx-axd-folder: `/usr/local/include/csf/post.d/` folder.
63
-
- If making your own `csfpost.sh` loader, there are **two allowed locations** to place this script — either one is valid:
@@ -288,7 +316,7 @@ After you edit the list of ports above, restart CSF and the script will be autom
288
316
289
317
=== ":aetherx-axs-square-terminal: Output"
290
318
291
-
```shell
319
+
```shell hl_lines="6 7"
292
320
LOGDROPOUT all opt -- in * out !lo 0.0.0.0/0 -> 0.0.0.0/0
293
321
LOGDROPIN all opt -- in !lo out * 0.0.0.0/0 -> 0.0.0.0/0
294
322
csf: FASTSTART loading DNS (IPv4)
@@ -306,7 +334,9 @@ After you edit the list of ports above, restart CSF and the script will be autom
306
334
307
335
<br />
308
336
309
-
We can now use the `iptables` command to confirm our rules were added. Iptables will resolve whatever service is associated with a port, which means port `111` will show as `sunrpc`. If you wish to show just the port number, append `-n` to your iptables command:
337
+
We can now use the `iptables` command to confirm our rules were added. Iptables will resolve whatever service is associated with a port, which means port `111` will show as `sunrpc`.
338
+
339
+
If you wish to show just the port number, append `-n` to your iptables command:
0 commit comments