mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
bsd readme: filter.inc ........
This commit is contained in:
parent
7714468f4e
commit
3adf2a2806
@ -206,12 +206,14 @@ Only PF redirection works. PF does not allow to freely add and delete rules. Onl
|
|||||||
To make an anchor work it must be referred from the main ruleset. But its managed by pfsense scripts.
|
To make an anchor work it must be referred from the main ruleset. But its managed by pfsense scripts.
|
||||||
One possible solution would be to modify '/etc/inc/filter.inc' as follows :
|
One possible solution would be to modify '/etc/inc/filter.inc' as follows :
|
||||||
```
|
```
|
||||||
|
.................
|
||||||
/* MOD */
|
/* MOD */
|
||||||
$natrules .= "# ZAPRET redirection\n";
|
$natrules .= "# ZAPRET redirection\n";
|
||||||
$natrules .= "rdr-anchor \"zapret/*\"\n";
|
$natrules .= "rdr-anchor \"zapret/*\"\n";
|
||||||
|
|
||||||
$natrules .= "# TFTP proxy\n";
|
$natrules .= "# TFTP proxy\n";
|
||||||
$natrules .= "rdr-anchor \"tftp-proxy/*\"\n";
|
$natrules .= "rdr-anchor \"tftp-proxy/*\"\n";
|
||||||
|
.................
|
||||||
```
|
```
|
||||||
|
|
||||||
Write the anchor code to '/etc/zapret.anchor':
|
Write the anchor code to '/etc/zapret.anchor':
|
||||||
|
@ -207,12 +207,14 @@ dvtws --daemon --port 989 --dpi-desync=split2
|
|||||||
Его трогать нельзя, иначе порушится весь фаервол.
|
Его трогать нельзя, иначе порушится весь фаервол.
|
||||||
Поэтому придется править код скриптов pfsense. Поправьте /etc/inc/filter.inc следующим образом :
|
Поэтому придется править код скриптов pfsense. Поправьте /etc/inc/filter.inc следующим образом :
|
||||||
-----------
|
-----------
|
||||||
|
.................
|
||||||
/* MOD */
|
/* MOD */
|
||||||
$natrules .= "# ZAPRET redirection\n";
|
$natrules .= "# ZAPRET redirection\n";
|
||||||
$natrules .= "rdr-anchor \"zapret/*\"\n";
|
$natrules .= "rdr-anchor \"zapret/*\"\n";
|
||||||
|
|
||||||
$natrules .= "# TFTP proxy\n";
|
$natrules .= "# TFTP proxy\n";
|
||||||
$natrules .= "rdr-anchor \"tftp-proxy/*\"\n";
|
$natrules .= "rdr-anchor \"tftp-proxy/*\"\n";
|
||||||
|
.................
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Напишите файл с содержимым anchor-а (например, /etc/zapret.anchor):
|
Напишите файл с содержимым anchor-а (например, /etc/zapret.anchor):
|
||||||
|
Loading…
Reference in New Issue
Block a user