liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

LibreNMS with Gateone, Access denied, WinSocket issue #724

Closed timg86 closed 5 years ago

timg86 commented 5 years ago

Hi everybody,

I hope I’m asking this question on the right forum.

I’m currently creating a lab with LibreNMS and Gateone.

Ive got a local VM on Virtualbox runnning LibreNMS and installed Gateone which is running. The VM is set on IP 10.x.x.58 I’ve added the following rule in the libre config.php file. $config[‘gateone’][‘server’] = ‘http://10.x.x.58:8080/’;

In the Gateone server.conf file I’ve changed a few small things.

locale = “en_US” pam_service = “login” syslog_facility = “daemon” syslog_host = None enable_unix_socket = False port = 8080 uid = “0” url_prefix = “/” user_dir = “/opt/gateone/users” dtach = False certificate = “certificate.pem” log_to_stderr = False session_logs_max_age = “30d” gid = “0” pid_file = “/var/run/gateone.pid” sso_realm = None cookie_secret = “NTIyYjgwQ0YmJkNDczMzk0MjFjYmZkOGIxYhYWNiM” pam_realm = “librenms” sso_service = “HTTP” https_redirect = False syslog_session_logging = False disable_ssl = True debug = False session_dir = “/tmp/gateone” auth = “none” address = “” api_timestamp_window = “30s” log_file_num_backups = 10 logging = “info” embedded = False origins = "http://localhost;http://10.x.x.58:8080;https://localhost;http://127.0.0.1;h$ session_logging = False unix_socket_path = “/var/run/gateone.sock” ssl_auth = “none” log_file_max_size = 104857600 session_timeout = “5d” command = "/opt/gateone/plugins/ssh/scripts/ssh_connect.py -S '/tmp/gateone/%SESSION%/%S$ ca_certs = None js_init = “” keyfile = “keyfile.pem” log_file_prefix = “/opt/gateone/logs/webserver.log”

The button in LibreNSM works fine but I get the following error. Message From Gate One Server: Access denied for origin: http://10.x.x.58:8080 Message From Gate One Server: Access denied for origin: http://10.x.x.58:8080 Message From Gate One Server: If you feel this is incorrect you just have to add ‘10.x.x.58:8080’ to the ‘origin’ option in your server.conf. See the docs for details.

Anyone an idea?

What I actually want is click on the SSH button in LibreNMS and Gateone ask me for credentials to login the corresponding device.

Kind regards, Tim