Search results

  1. K

    ZFS How to add all ZFS datasets to Boot Environment (BE) for BECTL rollback?

    Hi, You have to put all your desired datasets under the dataset you use for "/". But be very careful and that it is really what you want. Once rollbacked you cannot recover the data changed since the snapshot.
  2. K

    Solved syslog piped to script

    chrbr No problem. I thought there would be another way to do what I want.
  3. K

    Solved syslog piped to script

    chrbr I am not sure how logger is supposed to help me here. It allows to send messages to syslog. I want to filter what is leaving syslog and goes to files.
  4. K

    Solved syslog piped to script

    I'll have to see how it works at the long term but with read I am able to catch the message #!/bin/sh # catch message read MSG # do any processing to MSG then # ... Thanks,
  5. K

    Solved syslog piped to script

    Thanks to both of you. covacat the use of cat as you mention seems to work. I have identical lines in both of log files in real time now. But as zirias@ added, I also do some processing (my samples were just basic samples that show the problem). And with cat I can't catch the logline to...
  6. K

    Solved syslog piped to script

    Hi, Playing with syslog recently, I found a strange behaviour at some point and I am looking for some explanation. From man pages and even from some results of my research, piping to script should be done like that +sourcehost *.* |exec /usr/local/sbin/myscript.sh *.*...
  7. K

    Set proxy server for rc.d / periodic scripts?

    I know it's old but I had to deal with that recently. As an alternative I have done things like this. Define proxy settings in /etc/profile and create a wrapper to fetch in /usr/sbin as it is, by default, before real fetch from /usr/bin in $PATH. #!/bin/sh [ -f /etc/profile ] && ...
  8. K

    Issue in routing with combo jails/FIBs

    You are right. I do not have a lot of time for testing now. Even if I had, I do not have the same machine to test with. I could maybe test with another one, but as I suspect that the problem may be related with interface type/driver, that would not be a good test/debug and would not have proper...
  9. K

    Issue in routing with combo jails/FIBs

    Yes I know. I can't update now but working on it for later. Original question was from beginning of September (so before end of support) but that would not change anything. I more looking after a way see deeper what's going on. As I think it's probably a bug.
  10. K

    Issue in routing with combo jails/FIBs

    Hello, I encounter a strange issue related to routing packets with a setup I have. I asked for some help via mailing lists (pf and net). Unfortunately, I had very little feedbacks so maybe here I would have some ideas to look after. The message on the mailing list...
  11. K

    Solved [C] reopen file while in capsicum

    After some trial and error I am able to achieve was I was looking for. The trick is to open the directory where FILEPATH points to with fdopen before calling cap_enter and then, while in restricted mode, reopen the file with openat and the fd returned from fdopen call. Default rights set at...
  12. K

    Solved Eventually they will find what they are looking for (setting up fail2ban with pf)

    It's also possible in sshguard to add new rules but that's not as easy. You have to play with code lines :/ I would set block rule for sshguard table with "quick" keyword and put it as early as possible. Oh and probably not limit to tcp protocol. You can monitor in auth.log or messages log...
  13. K

    Solved [C] reopen file while in capsicum

    Hello, I have a soft I try to do some changes in. Currently the soft works like that. (simplified version) - starting - open a file with fopen - read from the file once at startup - enter in restricted mode with cap_enter() - append to the file n times What I try to do is to do some changes...
  14. K

    qemu Guest on proxmox/qemu/kvm: foreign traffic reported by tcpdump

    I see arp packets as shown in the sample above. Like other traffic sniffed, they are only in one direction (arp requests). After testing some ip adresses I can't find duplicates. In addition a part of the traffic seems to be for non existing nodes or maybe somewhere else (no reply to pings...
  15. K

    qemu Guest on proxmox/qemu/kvm: foreign traffic reported by tcpdump

    Hello, I am trying to explain a strange behaviour I see with a FreeBSD guest I have on an external hypervisor. My guest seems to work correctly now. I had to play with receive and transmit checksum options for external interface. My guest's configuration: FreeBSD 11.4 amd64 with virtio...
  16. K

    usb disconnets with android tethering

    Ok, actually i had understood correctly but as I gave the name before I was not sure. I used an app/plugin for xposed framework, it's called "action widgets". This is for the manual activation. There are certainly others, the idea is to have a toggle usable before the cable is connected. To...
  17. K

    usb disconnets with android tethering

    I don't think adb has anything to do with usb tethering. The same applies for developper mode in my opinion. I don't have adb installed on the FreeBSD host and tethering is working. It's just this trick on how you enable it and how the switch is managed. I'll probably do more testing for that...
  18. K

    Daily security mail reports pf denied packets: how to inspect them?

    Hello, Don't you have any previous pflog files ? I mean /var/log/pflog.{0,1,2,...}.bz2 I can see what is in those files with tcpdump like this: # bzcat /var/log/pflog.2.bz | tcpdump -qnr - Reading man for pflogd may help too.
  19. K

    usb disconnets with android tethering

    obsigna Thanks for the details. It for sure may be usefull for someone in the futur, maybe for me too :) For my problem, I found an app that provides a toggle, in dowgraded phone, to enable tethering before plugging the phone to pc (action widgets via xposed). It make it works like I want. I...
  20. K

    usb disconnets with android tethering

    I don't have usb3 ports nor on the problematic pc nor on the laptop but what you say may be an explanation once added to what I found after posting yesterday. To try to identify where the problem could come from, I restored the Android version I had before the downgrade and retested tethering...
Back
Top