Jetbrains Tutorial
Jetbrains Tutorial
0
A javaagent framework
Usage
download from the releases page
add -javaagent:/absolute/path/to/ja-netfilter.jar argument (Change to your
actual path)
--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.
# for example
[URL]
EQUAL,https://someurl
[DNS]
EQUAL,somedomain
Debug info
the ja-netfilter will NOT output debugging information by default
add environment variable JANF_DEBUG=1 (log level) and start to enable it
or add system property -Djanf.debug=1 (log level) to enable it
log level: NONE=0 , DEBUG=1 , INFO=2 , WARN=3 , ERROR=4
Debug output
the ja-netfilter will output debugging information to the console by default
add environment variable JANF_OUTPUT=value and start to change output medium
or add system property -Djanf.output=value to change output medium
output medium value: [ NONE=0 , CONSOLE=1 , FILE=2 , CONSOLE+FILE=3 ,
WITH_PID=4 ]
eg: console + file + pid file name = 1 + 2 + 4 = 7, so the -Djanf.output=7
Plugin system
for developer:
for user: