download from the releases page
add -javaagent:/absolute/path/to/ja-netfilter.jar
argument (Change to your actual path)
java
command. eg: java -javaagent:/absolute/path/to/ja-netfilter.jar -jar executable_jar_file.jar
JVM Options file
, you can add as a line of the JVM Options file
.or execute java -jar /path/to/ja-netfilter.jar
to use attach mode
.
for Java 17 you have to add at least these JVM Options
:
--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED
--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED
edit your plugin config files: ${lower plugin name}.conf
file in the config
dir where ja-netfilter.jar
is located.
the config
, logs
and plugins
directories can be specified through the javaagent args.
-javaagent:/path/to/ja-netfilter.jar=appName
, your config, logs and plugins directories will be config-appname
, logs-appname
and plugins-appname
.config
, logs
and plugins
.config
, logs
and plugins
.run your java application and enjoy~
[ABC]
# for the specified section name
# for example
[URL]
EQUAL,https://someurl
[DNS]
EQUAL,somedomain
# EQUAL Use `equals` to compare
# EQUAL_IC Use `equals` to compare, ignore case
# KEYWORD Use `contains` to compare
# KEYWORD_IC Use `contains` to compare, ignore case
# PREFIX Use `startsWith` to compare
# PREFIX_IC Use `startsWith` to compare, ignore case
# SUFFIX Use `endsWith` to compare
# SUFFIX_IC Use `endsWith` to compare, ignore case
# REGEXP Use regular expressions to match
ja-netfilter
will NOT output debugging information by defaultJANF_DEBUG=1
(log level) and start to enable it-Djanf.debug=1
(log level) to enable itNONE=0
, DEBUG=1
, INFO=2
, WARN=3
, ERROR=4
ja-netfilter
will output debugging information to the console
by defaultJANF_OUTPUT=value
and start to change output medium-Djanf.output=value
to change output mediumNONE=0
, CONSOLE=1
, FILE=2
, CONSOLE+FILE=3
, WITH_PID=4
]console
+ file
+ pid file name
= 1 + 2 + 4 = 7, so the -Djanf.output=7
for developer:
for user:
plugins
where the ja-netfilter.jar file is located.disabled.jar
, the plugin will be disabled此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.