Coder Social home page Coder Social logo

threatpatrols / opnsense-plugin-autossh Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 4.0 170 KB

Autossh plugin for OPNsense

Home Page: https://documentation.threatpatrols.com/opnsense/plugins/autossh

License: BSD 2-Clause "Simplified" License

Makefile 0.39% Shell 9.02% PHP 32.72% Volt 16.87% Python 41.00%
opnsense autossh autossh-tunnel-server ssh-tunnel

opnsense-plugin-autossh's People

Contributors

ndejong avatar totalgrifflock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

opnsense-plugin-autossh's Issues

SSH-Key creation

Hi,

This plugin is my dream but it does not work.
I can not create an ssh key in the Keys tab
After pressing save, the key does not appear in the list
My Opnsense version in 19.7-amd64 and freeBSD is 11.2-RELEASE-p11-HBSD

I attach a capture of the ssh key generation window
2019-10-13_191847

[INFO] Updating this for OPNSense 21.1.x

Hi @ndejong,

This is a plugin for OPNSense that I'm sorely in need of.

I'll start pouring over the code and see about updating it to support 21.1.x, and fire off any questions to you if you can help.

  • Do you have a more recent/ non-published code-base that's more supportive of the current OPNSense release?

basic "here's how to get started" docs?

the readme feature list kindasorta sounds like something I need... but I'm not sure, because I dont see a single usage sample.
I dont see a reference in the README.md
I dont see a "docs" directory.
So I dont even know where to get started.

Placeholder options in config file

Have just downloaded and installed this plugin on a fresh installation of OPNsense 22.7.6-amd64

The tunnel was created and worked initially, until the OPNsense device was restarted. Now attempts to reconnect fail due to errors in the config file. From the autossh plugin log:

2022-10-20T10:07:58 Informational autossh ssh exited with error status 255; restarting ssh  
2022-10-20T10:07:58 Debug autossh check on child 56524  
2022-10-20T10:07:58 Critical /usr/local/bin/ssh fatal: /usr/local/etc/autossh/autossh.conf: terminating, 6 bad configuration options  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 59: Bad number 'rekey_limit_01': Invalid argument  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 57: Bad key types 'pubkey_accepted_key_types_01,pubkey_accepted_key_types_02,pubkey_accepted_key_types_03,pubkey_accepted_key_types_04,pubkey_accepted_key_types_05,pubkey_accepted_key_types_06,pubkey_accepted_key_types_07,pubkey_accepted_key_types_08,pubkey_accepted_key_types_09,pubkey_accepted_key_types_10'.  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 48: Bad SSH2 MAC spec 'macs_01,macs_02,macs_03,macs_04,macs_05,macs_06,macs_07,macs_08,macs_09,macs_10'.  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 45: Bad SSH2 KexAlgorithms 'kex_algorithms_01,kex_algorithms_02,kex_algorithms_03,kex_algorithms_04,kex_algorithms_05,kex_algorithms_06,kex_algorithms_07,kex_algorithms_08,kex_algorithms_09,kex_algorithms_10,kex_algorithms_11'.  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: Unsupported KEX algorithm "kex_algorithms_01"  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 37: Bad key types 'host_key_algorithms_01,host_key_algorithms_02,host_key_algorithms_03,host_key_algorithms_04,host_key_algorithms_05,host_key_algorithms_06,host_key_algorithms_07,host_key_algorithms_08,host_key_algorithms_09,host_key_algorithms_10'.  
2022-10-20T10:07:58 Error /usr/local/bin/ssh error: /usr/local/etc/autossh/autossh.conf line 19: Bad SSH2 cipher spec 'ciphers_01,ciphers_02,ciphers_03,ciphers_04,ciphers_05,ciphers_06'.

When checking the autossh.conf file it looks as you would expect from those errors:

    HostKeyAlgorithms host_key_algorithms_01,host_key_algorithms_02,host_key_algorithms_03,host_key_algorithms_04,host_key_algorithms_05,host_key_algorithms_06,host_key_algorithms_07,host_key_algorithms_08,host_key_algorithms_09,host_key_algorithms_10
    KexAlgorithms kex_algorithms_01,kex_algorithms_02,kex_algorithms_03,kex_algorithms_04,kex_algorithms_05,kex_algorithms_06,kex_algorithms_07,kex_algorithms_08,kex_algorithms_09,kex_algorithms_10,kex_algorithms_11
    PubkeyAcceptedKeyTypes pubkey_accepted_key_types_01,pubkey_accepted_key_types_02,pubkey_accepted_key_types_03,pubkey_accepted_key_types_04,pubkey_accepted_key_types_05,pubkey_accepted_key_types_06,pubkey_accepted_key_types_07,pubkey_accepted_key_types_08,pubkey_accepted_key_types_09,pubkey_accepted_key_types_10

etc etc. It seems that when creating or editing a tunnel from the web interface the config file is generated correctly but when created by configd using the templates it is not

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.