Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - apiods

#1
Zenarmor (Sensei) / External Elasticsearch 'not running'
September 26, 2020, 12:39:18 PM
Hi,

Need some help please with external Elasticsearch  :)

I've been playing around with using a remote Elasticsearch instance in Azure, on an Ubuntu VM. A while back I had this working okay, although not secured (it was connecting to the ES instance over http://azure_ip:9200).
Then something broke, which was fine as it made me look at securing it properly ;)

So, it seemed that one way to secure this was to configure SSL on the Elasticsearch installation with Nginx reverse proxy - which I did, and that appeared to work:

❯ curl -u elastic:changeme -kL https://search.domain.co
{
  "name" : "server1.cloudapp.azure.com",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "some-random-string",
  "version" : {
    "number" : "7.9.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "some-random-string",
    "build_date" : "2020-09-23T00:45:33.626720Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}


Then, I tried setting up Sensei with a fresh config and deleted the '/usr/local/sensei/etc/.configdone' file.

During the setup wizard, it complained about the Database URL as just: https://search.domain.co
So, adding the URL as https://search.domain.co:443 seemed to work and i could complete the setup.

But, I then click on Dashboard and get the error:
Elasticsearch service is not running!
In order to view reports, you need to start Elasticsearch service.


Checking the Sensei config and resetting the DB url, it now errors with:
Elastic Search Database (https.//search.domain.co.443) cannot be reached. Please check your network connectivity and make sure the remote database is up and running.

But, running the test curl cmd from the opnsense shell works okay.

Any ideas on this error.
Or what's the recommended way to setup a secure, external ES instance ?

Thanks  ;D
#2
Hi, I'm having a problem with Multi WAN failover not, well, failing over  ;D

Setup:
2x DSL lines
2x WAN interfaces (1 for each DSL!)
ONsense: 20.1.3

For a while I just used them as separate gateways, routing certain VLAN traffic out of the 2nd gateway by using the 'Gateway' option in the firewall rule.

Due to regular, short(ish) outages on one of the DSL lines, I thought I'd try Multi-WAN failover and see if that reduced the impact of the outages.

So, I followed the OPNSense documentation for Multi-WAN failover and the base setup worked.

Then, today I had a short drop on the DSL ... and lost Internet until it came back online. WAN failover didn't appear to work.

I then tested it out - and pulled the main DSL line from the socket. Same thing ... no failover. I lost Internet traffic untilI'd plugged the DSL cable back in and the line came up.

Some observations during the "outage":

- packet loss went to 100% in about 1 minute on the primary (downed) gateway
- in the log, it showed an error on the monitor IP: dpinger: WAN_PPPOE 8.8.8.8: sendto error: 65
- "Gateway > Single":
  - Primary WAN gateway got auto-marked as Disabled, priority: defunct; 100% packet loss; and got removed from gateway dashboard widget
  - WAN2 interface is showing active (default route)
- Gateway Group status shows correctly: the tier 2 GW active
- DNS was resolving okay for Internet domains
- But, no ping/traceroute, internet access, etc

Any suggestions on what I can look at ?
#3
Hi,

OPNsense 19.7.7
Hardware: 􏰙􏱃􏱅􏱃􏱇􏰀􏰙􏰐􏰒􏰒􏰩􏰑􏰙􏱃􏱅􏱃􏱇􏰀􏰙􏰐􏰒􏰒􏰩􏰑Qotom-Q355G4

Had the same issue recently, once after an upgrade and now after a reboot - OPNsense was offline, and not reachable from the internal network.

Both times I plugged a serial cable in, and all looked normal - I logged into the console no issues.
A shutdown (remove/reconnect power cable),  power on fixes things. The box is then reachable on the local network and all works fine.

This time whilst on the console, I couldn't ping anything internally but pinging something outside works - so the outbound interface works, but not inbound (I have a bunch of VLANs setup).

Any suggestions of where to look?

Never used to happen on a previous piece of hardware (APU2C4 router), but with the Qotom I've also added some new configuration, Sensei, 2nd Internet connection (no HA, failover though).
So, I'm not sure if it is hardware-related, or something else  :-\ 
#4
Hardware and Performance / Migrate to new hardware
October 14, 2019, 05:30:00 PM
Hello - apologies, this has probably been discussed many times but a quick search threw up only a few threads.

I am currently running: OPNsense 19.7.5_5
On existing hardware: APU2C4
Just bought new hardware: QOTOM

To get the  new box up and running as is, I think I just follow these steps:

- Backup existing OPNsense config
- Install OPNsense 19.7.5_5 on QOTOM box
- Identify the interfaces (believe this will flash the appropriate LED: echo f2 > /dev/led/ibt0 (or ibt1, 2 3)
- Edit config.xml, find/replace old interface labels with the new ones (e.g. igb0 -> ibt0)
- Restore config.xml on QOTOM
- Check stuff works !

Looks like an alternative to editing the confi.xml is to "press any key to assign interfaces" during OPNsense boot and do it there.

Anything I missed ?

Thanks  :)
#5
(Running OPNsense 19.7.4_1)

Currently have OPNsense box setup not too crazy for home use:
- Connected to DSL
- A few VLANs
All is working well !

Now, I have a second DSL line installed and am trying to use that to route some VLAN traffic out to the Internet.
I'm not wanting to do anything like Multi-WAN failover or load balancing.
Just, for 1 VLAN send all that traffic out the 2nd WAN DSL interface (everything else goes out over the the main WAN interface).

So far, I've:
- Connected the 2nd DSL router to a spare physical interface on my OPNsense box
- Configured IPs like:
[DSL router]
WAN: public IP
LAN: 192.168.1.1
[OPNsense box]
WAN: 192.168.1.254
LAN: 192.168.5.0/24 (this is the VLAN I want to route out via this 2nd WAN)
(from OPNsense box, I can ping 192.168.1.1 okay)

I've added a gateway for this 2nd WAN
Added the new WAN interface (IPv4 Upstream Gateway is the Gateway)
Then, on the outbound firewall rule on the VLAN, I've set the 'Gateway' to be the new gateway  - in an attempt to use policy based routing.

But ... it's not routing as I'd hoped. When trying traceroute (from both a client and the OPNsense interface diagnostics traceroute), it just routes out the default gateway, not the 2nd one...

Any suggestions what I'm missing here ?!
Thanks  :)
#6
19.1 Legacy Series / Good to upgrade ?
April 29, 2019, 05:27:03 PM
Currently running OPNsense 18.7.10_4 - has been great  :)

I usually like to get a few releases in before upgrading a major version - so we're now on 19.1.6, should I give it a go ?