threatpatrols / opnsense-plugin-autossh Goto Github PK
View Code? Open in Web Editor NEWAutossh plugin for OPNsense
Home Page: https://documentation.threatpatrols.com/opnsense/plugins/autossh
License: BSD 2-Clause "Simplified" License
Autossh plugin for OPNsense
Home Page: https://documentation.threatpatrols.com/opnsense/plugins/autossh
License: BSD 2-Clause "Simplified" License
Is this plugin totally orphaned ?
Is it working with opnsense 21.1 ?
Thanks for answers
The "Healthy" status remains as pending
in the Connection Status view
Root cause is due to the log file /var/log/autossh/latest.log
not being available to query the required data from - in later OPNsense versions we make use of configctl syslog archive
that creates the symlink for the latest.log
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.