I am new to graylog so I hope my questions are ok to ask.
I installed graylog on a vm server (ubuntu 16.04 lts server) and I am able to login to the graylog web GUI when locally on the same network, like with “http://192.168.1.211:9000”. When reading the manual it seams like using the public IP for graylog web GUI is not good practice, since it is less secure, exposed to internet. Is that the concern?
So then I tried to tunnel in externally (public IP) vis ssh on that port instead, yet that didn’t work either.
For example:
ssh root@xx.xx.xx.xx -L7000:127.0.0.1:9000 or ssh root@xx.xx.xx.xx -L7000:192.168.1.211:9000
Then use this in browser to access graylog: http://localhost:7000
Yet this gives the following error:
Server currently unavailable
We are experiencing problems connecting to the Graylog server running on http:192.168.1.2111:9000/api/. Please verify that the server is healthy and working correctly.
So, I guess my questions is what is the best practice if I want to access the graylog web GUI remotely.
Our servers are hosted (colocation) and I need to be able to access the graylog GUI from another company location (over internet), no vpn available. So I can’t be on the same network (local network) to access Graylog web GUI. What are my options here?
You either have to set web_endpoint_uri or use the X-Graylog-Server-URL HTTP request header to provide the URI of the Graylog REST API which the Graylog web interface is supposed to access.
On the Graylog server (vm ubuntu 16.04) I have two NIC’s enabled
NIC 1 = Public IP (64.xx.xx.xxx)
NIC 2 = Local IP (192.168.100.139)
I want to be able to access the Graylog Web GUI on the public IP (64.xx.xx.xxx)
I want to use the local server IP (192.168.100.139) for the server clients to send the rsyslog data to this graylog server.
If using the these setting I get the following error
We are experiencing problems connecting to the Graylog server running on http://192.168.100.139:9000/api/. Please verify that the server is healthy and working correctly.
The following settings were used in /etc/graylog/server/server.conf
Can you please let me know what I am doing wrong here? if I want to be able to login to graylog web GUI via the public IP (eth0) and use the local IP (eth1) for the client servers (rsyslog via udp)
I tested with the following, yet the same issue. I also restarted graylog service and rebooted the server after change. I don’t understand what the problem is here?
Error received when trying to access graylog web GUI on the public IP
We are experiencing problems connecting to the Graylog server running on http://192.168.100.139:9000/. Please verify that the server is healthy and working correctly.
Error message
Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
Original Request
GET http://192.168.100.139:9000/system/sessions
Status code
undefined
Full error message
Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
Is this correct? Yet, this does not work, must be another setting wrong or something. Or I am an idiot:)
Error
We are experiencing problems connecting to the Graylog server running on http://192.168.100.139:9000/api/. Please verify that the server is healthy and working correctly.
Error message
Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
Original Request
GET http://192.168.100.139:9000/api/system/sessions
Status code
undefined
Full error message
Error: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
FYI, when I use the public IP for all these setting I can at least login via the graylog web GUI
So this vm graylog server is located on our datacenter (colocation) on one of our physical servers. Also, this vm graylog server is the server version, so do not have a graphical user interface. so I have a vm windows machine that I tested from. This vm also has NIC 1 (public IP) and NIC 2 (local IP, 192.168.100.131). When NIC 2 is enabled on the windows machine I can access the graylog web login with http://64.xx.xx.xxx:9000 but when I disable NIC 2 on the vm I get the same issue. So seams like it works fine locally but not when the communication goes via the public network.
I also tested on a different port, changed from 9000 to 2010, yet same issue.