URL Scheme
Starting from version 1.27.0, Egern supports URL Scheme, allowing users to quickly perform the following actions via URLs: start, stop, add policy groups, add rules, and add modules. Below are the supported URL Scheme and their parameter descriptions:
- Start Egern Engine
egern:///start
- Stop Egern Engine
egern:///stop
- Add a New Policy Group
egern:///policy_groups/new?name=name&url=url
Parameter Descriptions:
name
: Name of the policy groupurl
: URL of the policy
- Add a New Rule
egern:///rules/new?type=domain&match=match&policy=DIRECT
Parameter Descriptions:
type
: Rule type (e.g.,domain
ordomain_keyword
)match
: Matching target (e.g., a specific domain likeexample.com
)policy
: Policy (e.g.,DIRECT
orPROXY
)
- Add a New Module
egern:///modules/new?name=name&url=url
Parameter Descriptions:
name
: Name of the moduleurl
: URL of the module's resource file