ja-netfilter / ja-netfilter
- суббота, 4 декабря 2021 г. в 00:27:52
A javaagent lib for network filter
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.jarJVM Options file, you can add as a line of the JVM Options file.edit your own rule list config file. The ja-netfilter will look for it in the following order(find one and stop searching):
-javaagent. eg: -javaagent:/absolute/path/to/ja-netfilter.jar=/home/neo/downloads/janf_config.txtJANF_CONFIGjava startup property: janf.config. eg: java -Djanf.config="/home/neo/downloads/janf_config.txt"JVM Options file, you can add as a line of the JVM Options file. eg: -Djanf.config="/home/neo/downloads/janf_config.txt"ja-netfilter.jar, no need for additional configuration (PREFERRED!).janf_config.txt. eg: /home/neo/.janf_config.txt.config in your home directory. eg: /home/neo/.config/janf_config.txt.local/etc in your home directory. eg: /home/neo/.local/ect/janf_config.txt/usr/local/etc. eg: /usr/local/etc/janf_config.txt/etc. eg: /etc/janf_config.txtrun your java application and enjoy~
[ABC]
# for the specified plugin called "ABC"
[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 and start to enable it-Djanf.debug=1 to enable itfor developer:
for user:
plugins where the ja-netfilter.jar file is located