eurephiadm fwprofiles command is used to configure the firewall access profiles.
user@host:~ $ eurephiadm fwprofiles --help
Available modes for the fwprofiles command are:
-A | --add Add a new firewall profile
-D | --delete Delete a firewall profile
-l | --list List available firewall profiles
-h | --help <mode> Show help
user@host:~ $user@host:~ $ eurephiadm fwprofiles --help --add
The fwprofiles add mode will register a new firewall profile.
-d | --description <text> Description of the firewall destination/rule
-f | --fw-destination <name> The reference used by the firewall module
user@host:~ $vpn_intranet and vpn_all_srv were prepared in the OS firewall. At the moment, eurephia does not know about these destinations at all, so lets register them.
user@host:~ $ eurephiadm fwprofiles --add --description "Access to only Intranet server" --fw-destination vpn_intranet
eurephia::fwProfiles: Firewall profile registered with id 1
user@host:~ $ eurephiadm fwprofiles --add --description "Access to all network servers" --fw-destination vpn_all_srv
eurephia::fwProfiles: Firewall profile registered with id 2
user@host:~ $ eurephiadm fwprofiles --list
ID Firewall profile Description Users
------------------------------------------------------------------------------
1 vpn_intranet Access to only Intranet server 0
2 vpn_all_srv Access to all network servers 0
------------------------------------------------------------------------------
user@host:~ $