jb-netfilter v2.0.1
An unofficial edition of ja-netfilter which has built-in plugins for activating JetBrains IDE.
Usage
- download from the releases page
- configure javaagent argument
- for JetBrains IDE, use
java -jar /path/to/jb-netfilter.jar
and follow the guide - for normal java program, use
java -javaagent:/path/to/jb-netfilter.jar -jar /path/to/java/program.jar
- for programs which support vm options file, add
-javaagent:/path/to/jb-netfilter.jar
at the end of vm options file
- for JetBrains IDE, use
- put your plugin jar files into
plugins
folder (if there isn'tplugins
folder, you can create it; if you don’t need to load plugins, you can skip this step) - edit your plugin config files:
${lower plugin name}.conf
file in theconf
folder wherejb-netfilter.jar
is located. - run your java application and enjoy~
Config file format
# file "abc.conf" for plugin "ABC"
[Setting1]
RuleType,value
[Setting2]
RuleType,value
[SettingN]
RuleType,value
# RuleType:
# 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 "starts with" to compare
# PREFIX_IC Use "starts with" to compare, ignore case
# SUFFIX Use "ends with" to compare
# SUFFIX_IC Use "ends with" to compare, ignore case
# REGEXP Use regular expressions to match
#
# Comment:
# You can write comment like this line
; or like this
// or like this.
You can view config files in conf
folder to see how does config file work.
MyMap
Plugin MyMap
can help you custom activating information in JetBrains IDE. Here is the config file:
[MyMap]
EQUAL,licenseeName->jb-netfilter
EQUAL,gracePeriodDays->100000
EQUAL,paidUpTo->2099-12-31
You should change jb-netfilter
to your user name, change 2099-12-31
to the time you want to show.
JB_DEFAULT
No stable version currently supports this feature.
You can see JB_DEFAULT
in our config files. This expression allows the plugin to automatically adjust the configuration to the corresponding one suitable for activating JetBrains IDE, and does not conflict with other configurations of the same plugin.
For example, in conf/url.conf
we have:
[URL]
PREFIX,JB_DEFAULT
it's equal to:
[URL]
PREFIX,https://account.jetbrains.com/lservice/rpc/validateKey.action
which can block the IDE activation verification.
In power.conf
, you are allowed to configure JB_DEFAULT
twice. The first JB_DEFAULT
is equal to: 12050631930840502994303310119825952355765...
, the second JB_DEFAULT
is euqal to: 80286595538361199015936553116778652906723...
.
If there's one invalid JB_DEFAULT
config, the other can be used as a backup.
Plugin system
-
for developer:
-
view the scaffold project written for the plugin system
- if you want to add
JB_DEFAULT
support, view our plugins' code atcom.janetfilter.plugins
orin.jetbra.mymap
- if you want to add
-
compile your plugin and publish it
-
just use your imagination~
-
-
for user:
jb-netfilter
has built-in plugins:dns
: block dns resolutionhideme
: prevent detection against javaagentpower
: dragon slayer for asymmetric encryptiondragon slayer for asymmetric encryptionurl
: block http requestsmymap
: custom JetBrains IDE activation information
- add other plugins for
jb-netfilter
:- download the jar file of the plugin
- put it in the subdirectory called
plugins
where thejb-netfilter.jar
file is located - add config file for plugin as you need
- enjoy the new capabilities brought by the plugin
Debug info
- the
jb-netfilter
will NOT output debugging information by default likeja-netfilter
- add environment variable
JANF_DEBUG=1
and start to enable it - or add system property
-Djanf.debug=1
to enable it