enable and disable a rule through CLI / SSH

Security Gateway Discussions
Post Reply
joad
Posts: 4
Joined: 23 Dec 2008, 01:30

enable and disable a rule through CLI / SSH

Post by joad » 10 Aug 2017, 13:04

Hi, I would like to enable and disable a rule through CLI / SSH.
I suppose this is possible via SSH, but I lack knowledge :( :oops: I'm grateful for all the examples you can provide.

Thanks.
/Johan

mape
Posts: 41
Joined: 24 Oct 2016, 08:23

Re: enable and disable a rule through CLI / SSH

Post by mape » 10 Aug 2017, 13:10

Hello Johan,

Please see the following example on how to use the command.

For IP Policies:
set IPPolicy 14(Drop_all) -disable
set IPPolicy 14(Drop_all) -enable

For IP Rules:
set IPRule 16(Lan_To_Wan) -disable
set IPRule 16(Lan_To_Wan) -enable

Best Regards
Mattias P.

mape
Posts: 41
Joined: 24 Oct 2016, 08:23

Re: enable and disable a rule through CLI / SSH

Post by mape » 10 Aug 2017, 13:13

You can also download the Cli-reference guide from your my clavister account under downloads -> cOS Core version -> Documentation -> Cli-reference guide.

Best Regards
Mattias P.

joad
Posts: 4
Joined: 23 Dec 2008, 01:30

Re: enable and disable a rule through CLI / SSH

Post by joad » 10 Aug 2017, 13:28

Thanks for a quick reply!

/Johan

mape
Posts: 41
Joined: 24 Oct 2016, 08:23

Re: enable and disable a rule through CLI / SSH

Post by mape » 10 Aug 2017, 13:41

No Problem.

Best Regards
Mattias P.

joad
Posts: 4
Joined: 23 Dec 2008, 01:30

Re: enable and disable a rule through CLI / SSH

Post by joad » 10 Aug 2017, 14:59

New question, I'm unable to upload ssh public key data:
"scp sshkey.pub user@sgw-ip:sshclientkey/sshclientkey_name"

The command executes without error but i cant the file after upload?

EDIT.
Forget it, I fixed it. Forgot to add the certificate to the user.

Post Reply