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

#1
Hi to all.
I've got this code:
#!/bin/sh

OPNSENSE_URL="https://ip:port"
API_KEY="key"
API_SECRET="secret"
ALIAS_NAME="NNN_ips"
IP_FILE="/tmp/NNN_ips.txt"

add_ip_to_alias() {
    local ip="$1"
    curl -k -X POST \
         -H "Content-Type: application/json" \
         -u "${API_KEY}:${API_SECRET}" \
         -d "{\"address\":\"${ip}\"}" \
         "${OPNSENSE_URL}/api/firewall/alias_util/add/${ALIAS_NAME}"
}

apply_changes() {
    curl -k -X POST \
        -H "Content-Type: application/json" \
        -u "${API_KEY}:${API_SECRET}" \
        -d "{}" \
        "${OPNSENSE_URL}/api/firewall/alias/reconfigure"
}

while IFS= read -r ip; do
    if [ -n "$ip" ]; then
        add_ip_to_alias "$ip"
        echo "$ip"
    fi
done < "$IP_FILE"

apply_changes

But it adds one address at a time, which is not very efficient. Is it possible to send the whole list to the API at once, so that the adding can be done in one request?
#2
General Discussion / Re: Folding@home
December 20, 2024, 06:38:19 PM
Try this guide: https://blog.ohmykreee.top/article/setup-tun2socks-in-opnsense/ of course replacing it with your own file
#3
General Discussion / Re: Folding@home
December 19, 2024, 07:56:33 PM
I meant that apart from folding@home there are many inherently CPU projects where performance will not be so catastrophically low.
#4
General Discussion / Re: Folding@home
December 18, 2024, 11:08:45 PM
As I remember it's a GPU-based project. And CPU will have extremely low speed of analyzing or checking jobs. Maybe you should choose a CPU-based project?  But yes, you can install it and even add the ability to run it from GUI.
#5
Quote from: Clumpton on December 15, 2024, 11:14:26 AMI have 44 lists which gives me about 600 000 blocked domains.
I have only 4 lists in unbound blacklist category and they gave me about 900k blocked donains. Everything that can be blocked via domains can be blocked as it is, you don't need an additional service for that.
#6
General Discussion / Re: website update looks great!
December 12, 2024, 09:38:09 PM
Quote from: dseven on December 12, 2024, 08:41:11 PMMaybe everyone else is running 4k monitors nowadays,
Then I really sympathize with them, it's shallow on 1080p, and on 4k you won't be able to see anything at all).
#7
Ну это я, если память не изменяет, давал ссылку. Я, кстати, пробовал из start оно тоже запускается вполне себе нормально. Если кто найдет описание в чем различие, с удовольствием бы почитал. Подозреваю, что в очередности загрузки дело.. но что из них первое идет start или early вопрос интересный и в доке не описан.

Апд. нашел, наверное все же лучше в Start добавлять пользовательские службы, Early вообще до загрузки всего работает.
#8
Quote from: hayate on December 12, 2024, 03:42:49 PMВ syshook запускаю не службу, но напрямую бинарник с нужными параметрами
странно, я истерию и tun2socks запускаю как службы и нормально стартует
#9
Quote from: Balya on December 12, 2024, 02:06:47 PMФайл нужно положить в /usr/local/etc/rc.syshook.d/early/

эм. Тоже интересно, откуда такая информация.
#10
General Discussion / Re: website update looks great!
December 12, 2024, 04:52:38 PM
I don't share everyone's happiness.
The new design is certainly good, but large controls (buttons) with small font of the main text topics, huge incomprehensible indents and empty spaces - I do not understand it. What's it for?
#11
он вроде та и запускает:
Quoteон запускается на старте /usr/local/etc/rc.syshook.d/start файлом 90-singbox
внутри одной строчкой
#12
Quote from: vivekmauli14 on December 10, 2024, 07:38:11 AM
Is there a guide or checklist available for this process?

I followed these instructions:
https://blog.ohmykreee.top/article/setup-tun2socks-in-opnsense/

You can also look at files from other services, as an additional example. As strange as it may be, there are some differences in writing even from official doc.
#13
I know exactly what you mean. But the "box" was serviced upon reception and the thermal paste was replaced with Arctic Cooling MX4, which is more than enough in this case. And if everything was as you write, there would be a difference on the old version too, i.e. the average temperature would be higher, but the mentioned increase happened exclusively after switching to the new way of temperature reading. Actually, for me it is not so critical, but I am not the only one who noticed such behavior. I perfectly understand that I have no right to demand anything from a free product and the developers in any case will do as they want, it's just not very convenient - to keep a correction of 7-10 degrees in your head when you look at the temperature graph. That's all.
#14
Quote from: meyergru on December 05, 2024, 11:27:54 AM
And for now my impression is like the usual case is a 2-3°C delta and up to 15°C for cases where heat transfer is problematic.
if only. Unfortunately the difference is floating, but more often it is in +10 gr. No problems with heat transfer, the system passed a stress test lasting more than a week.
#15
Quote from: OPNenthu on December 05, 2024, 10:31:57 AM

Maybe we need a 5105 owners thread to see if anyone else is having similar quick temperature transitions.
I have exactly the same behavior on my N5105 since upgrading to 24.x.  >:(All my questions were answered with assurances that I was looking at the temperature in the wrong way and everything is correct now.  :'( I'm already desperate to explain anything to the developers and just subtract 10-15 degrees in my mind when I look at the temperature graphs ::)