Skip to content

macielmeireles/OpnSense-ActiveGateway-Globe_23.7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpnSense-ActiveGateway-Globe

Script for OpnSense | Add a globe icon to the right of the active gateway name in the widget

Donation | Doações

(En)      Support our project via Pix or PayPal.
(Pt-Br) Apoie nosso projeto via Pix ou PayPal:

Screenshot

Screenshot

Overview (En)

“This project provides two scripts. One to get the active gateway information and another to modify the OPNsense “Gateways” widget file, and add a globe icon to the right of the active gateway name.”

Requirements

  • OPNsense Firewall
  • SSH terminal
  • Download the install.sh from this GitHub repository (last stable version) to your machine with OPNsense

Quick Installation Guide (En)

  1. Enable SSH on OpnSense
  2. Download the file install.sh
  3. Set Permission
  4. Run the script
  5. Test

Detailed Installation Guide

  1. Enable SSH on OpnSense and access SSH
    1.1 Enable SSH on OpnSense: System > Settings > Administration
    1.2 Access OpnSense via SSH from terminal: ssh root@192.168.1.1. Replace root with your username and 192.168.1.1 with your OpnSense IP address.

  2. Download the file install.sh
    2.1 In terminal, navigate to the Widgets folder: cd /usr/local/www/widgets/widgets/
    2.2 Use fetch to download "install.sh" from GitHub:
    fetch https://raw.githubusercontent.com/macielmeireles/OpnSense-ActiveGateway-Globe/main/install.sh

  3. Set Permissions:
    3.1 Set +x permission on the file:
    chmod +x install.sh

  4. Run the script
    4.1 In terminal, run the command to run the installion: ./install.sh

  5. Test:
    5.1 Open your opnSense in your Browser


Help

To help, use: ./install --help

Check version compatibility:

To check compatibility, use: ./install --check

Restore Guide:

To restore, use: ./install --restore


Update of install.sh:

To update install.sh, use in terminal the command:
cd /usr/local/www/widgets/widgets/ && rm install.sh && fetch https://raw.githubusercontent.com/macielmeireles/OpnSense-ActiveGateway-Globe/main/install.sh && chmod +x install.sh && ./install.sh


Guia Rápido de Instalação (pt-Br)

  1. Ative o SSH no OpnSense
  2. Baixe o arquivo install.sh
  3. Defina a permissão
  4. Execute o script
  5. Teste

Guia Detalhado de Instalação

  1. Ative o SSH no OpnSense e acesse via SSH
    1.1 Ative o SSH no OpnSense: System > Settings > Administration
    1.2 Acesse o OpnSense via SSH pelo terminal: ssh root@192.168.1.1. Substitua “root” pelo seu nome de usuário e “192.168.1.1” pelo endereço IP do seu OpnSense.

  2. Baixe o arquivo install.sh
    2.1 No terminal, navegue até a pasta Widgets: cd /usr/local/www/widgets/widgets/
    2.2 Use o comando fetch para baixar o arquivo “install.sh” do GitHub:
    fetch https://raw.githubusercontent.com/macielmeireles/OpnSense-ActiveGateway-Globe/main/install.sh

  3. Defina a permissão:
    3.1 Defina a permissão +x no arquivo:
    chmod +x install.sh

  4. Execute o Script
    4.1 No terminal, execute o comando para iniciar a instalação: ./install.sh

  5. Teste:
    5.1 Abra o OpnSense no seu navegador


Ajuda:

Para ajuda, use: ./install --help

Verificando a Compatibilidade:

Para verificar a compatibilidade, use: ./install --check

Guia de Restauração:

Para restaurar, basta usar: ./install --restore

Atualização do Install.sh:

Para atualizar o install.sh, use o seguinte comando no terminal:
cd /usr/local/www/widgets/widgets/ && rm install.sh && fetch https://raw.githubusercontent.com/macielmeireles/OpnSense-ActiveGateway-Globe/main/install.sh && chmod +x install.sh && ./install.sh

About

OpnSense | Script to append a globe icon to the active gateway name in the OpnSense widget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors