Search results

  1. P

    freebsd resolvconf

    I haven't personally tested this, but you can most likely hook into devd to run scripts of your choosing when the interface goes up or down. The scripts could in theory overwrite resolvconf. man devd and man devd.conf ^^^ would be your friends in testing out this theory.
  2. P

    Dumping flows in ng_nat (libalias)

    Hey everyone, I'm testing ng_nat for a replacement of ipfw+nat that I had in mind. # uname -a FreeBSD netgraph0.myhome 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC...
  3. P

    Almost threw in the towel ...... a thanks to devs ....

    (mostly parody - feel free to move to a more appropriate forum) As the subject says, I almost installed linux over my BSD installation due to frustrations I was having with iscsi backed by ZVols. It started with a clean installation 6 months(?) ago of 12.1-RELEASE ... zfs lock ups. Frustrated...
  4. P

    [VLAN] Can't get jail/bhyve in vlan working

    Well, I gave up. You would think you can assign a vlan to the hosts' jail side of the epair and stick that in a bridge but you can't (easily) without hurdles. I instead created a vlan dev from within the jail and just added the hosts' side of the epair to the main bridge. I wanted to avoid...
  5. P

    [VLAN] Can't get jail/bhyve in vlan working

    So I think my problem is adding "main interfaces" to the bridge with another interface on the system. I haven't tried it yet, gotta wait once things die down here but I've essentially done: bridge0 --------------- igb0 <- physical nic w/ lan behind it tap0 <- bhyve pfsense instance...
  6. P

    [VLAN] Can't get jail/bhyve in vlan working

    Thanks for all the responses. I will read / try this after work. The one thing that I'd like to comment on before trying things tonight is a comment by genneko. It never occured to me to create a vlan in the jail with epair70b as it's parent. The reason why this is the case is because...
  7. P

    [VLAN] Can't get jail/bhyve in vlan working

    ... and thanks in advance for the responses.
  8. P

    [VLAN] Can't get jail/bhyve in vlan working

    Setup: Physical Machine w/ two nics. One of the nics is passed through to bhyve pfsense instance. Bhyve pfsense instance has four interfaces. 1 WAN and 1 LAN and 2 vlans. In addition to the bhyve pfsense instance, there is a vnet jail with epair70a and epair70b accordingly. A fully running...
  9. P

    Shell Elapsed time

    To may knowledge the answer to your question is no. However, a little script can take care of the process for you. #!/usr/bin/env perl6 my %months = ( Jan => '01', Feb => '02', Mar => '03', Apr => '04', May => '05', Jun => '06', Jul => '07', Aug => '08', Sep => '09', Oct =>...
  10. P

    Shell Replacing spaces with newlines using SED

    The answer given by obsigna is the correct answer for BSD sed. Alternatively, there's tr: echo 123 abc zyx | tr ' ' \\012 As for sed's l option to control output: echo 123 abc zyz | sed -n 's/ /\^M/g;l' It's doing what it's supposed to do and gives the following output: 123\rabc\rzyz$ The...
  11. P

    Other startpoint to programming with assembly

    For what it's worth, I program in assembly on 64-bit FreeBSD and prefer it over C. The common advice you'll find on the web is to ignore assembly, but I personally ignore that advice. Compilers are good; better than most humans even, but it's still damn fun IMHO. Besides the boot loader pointed...
  12. P

    Other [asm] [x86-64]Pure asm threads

    An old thread ... but when you decide to revisit this: The needed structures are as follows: STRUC rtprio .type: RESW 1 .prio: RESW 1 ENDSTRUC STRUC thr_param .op: RESQ 1 .arg: RESQ 1 .stack_base: RESQ 1 .stack_size: RESQ 1 .tls_base: RESQ 1 .tls_size: RESQ 1 .child_tid...
  13. P

    ld no longer works

    I know there was an import into FreeBSD (lld), but I'm unsure why it's not completely backwards compatible. Take for instance this simple program: ========================= BITS 64 DEFAULT rel global _start:function SECTION .text _start: mov eax, 1 xor edi, edi...
  14. P

    Sysctl. Brain broken. And, where is the "delete thread" button?

    You probably want to look at ipcs.
  15. P

    Why not use bash by default?

    For systems programming, stick to `sh`. You'll find `sh` is installed everywhere. For everything else, it's whatever you prefer. Installing `bash` via `pkg` is 1 command and is hardly "jumping through hoops". (offtopic) When I see `/bin/bash` at the top of scripts I cringe slightly at the...
  16. P

    Freebsd 11.1 ZFS using to much wired memory

    What's "best" is different for different people. My suggestion is ignoring it altogether unless you have a specific problem to solve. ZFS using as much memory as possible is not a problem unless something else is effected. The advice provided by shkhln to set vfs.zfs.arc_max is also fine...
  17. P

    Freebsd 11.1 ZFS using to much wired memory

    Gelo, From an end users' perspective, there isn't any correlation between Wired and Physical memory. They are both memory. The representation of "wired" memory is simply a representation of memory that cannot be swapped to disk. This is due to a userland process calling mlock(2) or the kernel...
  18. P

    Xorg/Nvidia Hang and Crash

    With slim disabled, and starting X via startx resulted in the exact same problems mentioned above. However, I do have another interesting thing I came across ... The problem isn't Xorg... but I still don't know what the problem is. While on the console (hadn't ran startx yet) and with vt...
  19. P

    Xorg/Nvidia Hang and Crash

    Yes. I always recompile kernel modules after a new kernel/world gets installed. ;)
  20. P

    Xorg/Nvidia Hang and Crash

    Yep sorry. I neglected to mention that. nvidia.ko is loaded just fine. In fact, I'm typing this message to you from the same machine with kern.vty=sc currently set. If I exit this session ...blam. Changing it to "=vt" prevents X from starting entirely. Loaded Modules...
Back
Top