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

Messages - trumee

#1
Hello,

My router disk is getting full. It is the /var/log/filter which is the culprit. I have looked at the Rules and none of them has 'Enable Logging' turned on. How do i identify what is writing and more important have these logs rotated often?

root@OPNsense:~ # df -h
Filesystem                   Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default           440G    3.1G    436G     1%    /
devfs                        1.0K      0B    1.0K     0%    /dev
/dev/gpt/efiboot0            260M    1.3M    259M     1%    /boot/efi
zroot/tmp                    436G    5.1M    436G     0%    /tmp
zroot/home                   436G    384K    436G     0%    /home
zroot/var/tmp                436G    688K    436G     0%    /var/tmp
zroot                        436G    384K    436G     0%    /zroot
zroot/usr/src                436G    384K    436G     0%    /usr/src
zroot/var/audit              436G    384K    436G     0%    /var/audit
zroot/var/crash              436G    384K    436G     0%    /var/crash
zroot/var/log                436G    1.9M    436G     0%    /var/log
zroot/usr/ports              436G    384K    436G     0%    /usr/ports
zroot/var/mail               436G    512K    436G     0%    /var/mail
tmpfs                        4.0G    4.0G      0B   100%    /var/log
devfs                        1.0K      0B    1.0K     0%    /var/dhcpd/dev
devfs                        1.0K      0B    1.0K     0%    /var/unbound/dev
/usr/local/lib/python3.11    440G    3.1G    436G     1%    /var/unbound/usr/local/lib/python3.11
/lib                         440G    3.1G    436G     1%    /var/unbound/lib

root@OPNsense:/var/log/filter # ls -la
total 4007690
drwx------   2 root wheel        192 Oct 12 11:01 .
drwxr-xr-x  18 root wheel       2432 Oct 18 03:01 ..
-rw-------   1 root wheel 1649451749 Oct 11 00:00 filter_20251010.log
-rw-------   1 root wheel 1866379578 Oct 12 00:00 filter_20251011.log
-rw-------   1 root wheel  588033927 Oct 18 04:56 filter_20251012.log

#2
25.7, 25.10 Series / Re: Nextcloud backup
August 03, 2025, 03:24:34 PM
Thanks, that fixed the issue.
#3
25.7, 25.10 Series / Nextcloud backup
August 03, 2025, 10:18:02 AM
I cant find the plugin for nextcloud backup in the plugins.
#4
I was able to follow these steps to reinstall. It was a painful exercise as i was doing this over internet and had to ask for a pair of hands.

Hopefully, the team can avoid such kind of issues in the future.
#5
Please can somebody help me how to get past this,

#6
Hello,

The gandi.net api supports TTL. However, it no exposed in the UI


Is there any way to set TTL?

Thanks
#7
Thank you for posting this. I can confirm this behavior.

I migrated from pfsense to opnsense recently. And in pfsense i did not have to create this rule. After migration i went through similar experience, and ultimately settled on a NAT rule as you have described.
#8
Hello,
I am migrating my config from pfsense to wireguard. pfsense allows one to select which tunnel should not be part of the Wireguard Group using "Interface Group Membership". Is there any way to set this in opnsense?
#9
General Discussion / Re: Alias creation using API
October 28, 2023, 04:09:31 PM
Here is a python script which creates a json file for upload.


import json
import uuid
import csv

with open('opnsense_aliases.json') as user_file:
  parsed_json = json.load(user_file)

cur_items=parsed_json['aliases']['alias']
with open('/tmp/pfsense_alias.csv', newline='') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
    #print(row)
    item_name = row['name']
    item_data = row['data']
    item_type = row['type']
    item_description = row['description']

    if len(row['data'].split(" "))>1:
       item_data = "\n".join(row['data'].split(" "))

    item_uuid = str(uuid.uuid4())



    y =    {'enabled': '1',
            'name': item_name,
            'type': item_type,
            'proto': '',
            'interface': '',
            'counters': '0',
            'updatefreq': '',
            'content': item_data,
            'categories': '',
            'description': item_description
          }

    cur_items[item_uuid] = y
print(json.dumps(parsed_json,  indent=2))
#10
General Discussion / Alias creation using API
October 28, 2023, 02:59:53 PM
Hello,

I want to create a 'new' alias using the API. I am able to modify an existing alias but get the following error when creating a new alias:

$curl -X POST -d '{"address":"192.168.42.42"}' -H "Content-Type: application/json" -k -u $key:$secret https://opnsense/api/firewall/alias_util/add/test
{"status":"failed","status_msg":"nonexistent alias test"}


How do i create a new alias using the API?