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 - Cadish

#1
General Discussion / Unbound - see blocked domains
March 18, 2021, 10:54:41 AM
Hi,

I've setup Unbound, but on some sites I have trouble to login. It is very difficult to get this solved as I need to whitelist every domain the sites are linking to, which is sometimes a very tedious job.
Is it possible to see somewhere which domains have been blocked in the last period?

Thanks
Cadish
#2
21.1 Legacy Series / Very strange cron behaviour
February 19, 2021, 09:04:50 AM
Hi all,

I've setup a cron job to restart my WAN interface when my connection drops and reboot if this doesn't help, according to the post of marjohn56.

I've setup a cron job in the GUI as described (see attachment).

Now comes the strange thing: after a reboot, the cron job doesn't start, unless I hit "Apply" on the cron page again. So after each reboot, I must hit the "Apply" button (even without changing anything) before the cron job starts successfully every 5 minutes.

Any clue what can be wrong?

Thanks
Cadish
#3
Development and Code Review / Command as a daemon
February 10, 2021, 04:06:23 PM
Hi,

I'm trying to run Cloudflared as a service.
Via the following command (as root), I'm able to setup an Argo Tunnel:
cloudflared tunnel run

I want to set this as a daemon, so I've created the following scripts:

/etc/rc.d/argotunnel (with chmod +x)
#!/bin/sh

. /etc/rc.subr

name="argotunnel"
rcvar="argotunnel_enable"
argotunnel_user="root"
argotunnel_command="cloudflared tunnel --config /root/.cloudflared/config.yml run"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f ${argotunnel_command}"

load_rc_config $name
: ${argotunnel_enable:=no}

run_rc_command "$1"


I've added this to my /etc/rc.conf:
argotunnel_enable='YES'

Via the following command, I start the service:
service argotunnel start

I can validate that the service has started:
ps aux
root    45253   0.0  0.0 1066812    2508  -  Ss   16:03       0:00.00 daemon: cloudflared[62627] (daemon)


But apparently, nothing happens. The tunnel is not started as if I would start the tunnel myself manually.

Any idea what's wrong?

Thanks
Cadish
#4
General Discussion / Install cloudflared
February 01, 2021, 01:23:21 PM
Hi,

I'm trying to install the Cloudflare application to build Argo Tunnels, namely "Cloudflared".

I'm trying it via the ports tree, but I get the following error message:
root@firewall:/usr/ports/net/cloudflared # make install
===>  cloudflared-2020.11.11 License cloudflare needs confirmation, but BATCH
is defined.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/cloudflared


Really don't know how I can solve this, or install it in another way on my OPNsense machine (https://github.com/cloudflare/cloudflared)

Thanks!
Cadish