-
luke_jobless_sb
hello I wrote FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" } in /usr/local/etc/pkg/repos/FreeBSD.conf and it does not find any package
-
luke_jobless_sb
pkg update -f
-
luke_jobless_sb
I get "pkg: No packages available to install matching ..."
-
luke_jobless_sb
it works now. thank you!
-
luke_jobless_sb
my jail is out of control i can't stop it: service jail stop foo
-
luke_jobless_sb
I get Stopping jails: foo: jail_attach: Operation not permitted
-
luke_jobless_sb
I get "Stopping jails: foo: jail_attach: Operation not permitted" what could be the issue?
-
luke_jobless_sb
is this true freedom to jail user? invisible container with full privacy
-
luke_jobless_sb
hopefully nothing to do with 14.0
-
luke_jobless_sb
freebsd-version -u
-
luke_jobless_sb
sorrty
-
sixpiece
hello I am having the following issue
-
sixpiece
trying to add swap space and $ sudo gpart create -s GPT vtbd1
-
sixpiece
-
luke_jobless_sb
sixpiece: what do you see: $ [ -e /dev/vtbd1 ] && echo 'si'
-
sixpiece
nothing
-
luke_jobless_sb
lol
-
sixpiece
just a new line
-
luke_jobless_sb
sorry. you have another device corresponds to vtbd1 in the example
-
luke_jobless_sb
in the example it uses the device 'vtbd1' but your system have another device rather than one you found in the example
-
sixpiece
would it be vtnet0?
-
sixpiece
nothing either
-
luke_jobless_sb
sixpiece: i don't know. it's up to what disks you have
-
sixpiece
ok so what do I do?
-
luke_jobless_sb
sixpiece: 1. determine which dev you want to have swap space 2. try the same command with the device name
-
luke_jobless_sb
sixpiece: feel free to ask
-
sixpiece
what do you mean by that which dev you want to have swap space?
-
sixpiece
what is a dev I know I see it but don't know more than that
-
sixpiece
like dev/sda1 dev/sda2 etc.. on different virtual machines but I don't know more than that really
-
luke_jobless_sb
sixpiece: yes the numbered device name you see under the path /dev represent virtual/physical device. some of them represent storage or disk which you want to have the swap space in
-
luke_jobless_sb
by the way if you are not individually doing it, if this is part of your company work, you can alway consult me professionally. I can help more thoroughly
-
luke_jobless_sb
i want to get paid though. i need a job
-
luke_jobless_sb
if not, that's also ok. i still help no worries
-
sixpiece
thank you, yes I am also looking for work
-
luke_jobless_sb
sixpiece: easy way could be what device did you get after you phyiscally or virtually attach a new volume?
-
sixpiece
I have a virtual private cloud 2gb 1 core cpu and 55gb disk space shared
-
luke_jobless_sb
sixpiece: try: $ df -h
-
sixpiece
-
luke_jobless_sb
sixpiece: try: $ uname -a
-
sixpiece
FreeBSD videotron.eu 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
-
luke_jobless_sb
sixpiece: ok try: $ gpart list
-
sixpiece
-
luke_jobless_sb
sixpiece: so you only have volume 'vtbd0' already formatted in ufs on latest FreeBSD.
-
sixpiece
sounds correct
-
jmnbtsls1E
the easiest way to check the presence of your new device, if you attached one, is to ls /dev
-
luke_jobless_sb
sixpiece: in brief reading of the tutorial you showed, it seems it expect you to have an additional volume attach
-
sixpiece
I am not sure about that tutorial it's really a thread that I posted that motivated this
-
luke_jobless_sb
sixpiece: meaning that when you have a new volume (same kind of your root volume) you will have vtbd1 and you would not have any problem
-
sixpiece
-
sixpiece
it's a lot to read but basically they suggested a swap memory it seems
-
sixpiece
so is there a solution to this ? like redimensioning the drives?
-
sixpiece
this is a virtual disk correct?
-
luke_jobless_sb
sixpiece: if you don't want to have additional volume, you can also partition the root volume to spare. you will lose the current system though since it overrides
-
luke_jobless_sb
sixpiece: do you see that your second paste board "2. Name: vtbd0p2"
-
sixpiece
there is no way I am going to start again fresh to do this this took me years to get here...
-
luke_jobless_sb
sixpiece: that's the filesystem takes up all rest of your volume.
-
sixpiece
interesting
-
luke_jobless_sb
sixpiece: what was so difficult to take you years for it?
-
luke_jobless_sb
sixpiece: something i can help for partitioning at the reinstall?
-
sixpiece
getting the sendmail to work, opendkim , etc.. php-fpm etc..
-
luke_jobless_sb
sixpiece: I see. it seems important. why don't add an extra volume?
-
sixpiece
-
sixpiece
ok I will try
-
sixpiece
can it be hdd?
-
sixpiece
or it should be nvme?
-
luke_jobless_sb
sixpiece: is this vm?
-
sixpiece
yes
-
luke_jobless_sb
sixpiece: on cloud? vultr?
-
sixpiece
yes
-
luke_jobless_sb
sixpiece: do they provide the volume of your choice?
-
sixpiece
I can add a block volume
-
luke_jobless_sb
sixpiece: yes. once you add, you will see what's new in the commnad: gpart list
-
sixpiece
yes either hdd or nvme and I choose the size 1$ for 10gb of nvme or 40gb hdd
-
sixpiece
how much space do I need?
-
sixpiece
7gb nvme is enough? or I need more?
-
luke_jobless_sb
sixpiece: i remember swap space in linux was something to do with factor of ram size but not sure if this is the case
-
luke_jobless_sb
sixpiece: let's stick to the example you can have less than 7g
-
luke_jobless_sb
sixpiece: did you do: $ swapinfo
-
luke_jobless_sb
sixpiece: my machine has even if i didn't pay attention at the installation
-
sixpiece
yes four times the ram so it should be like 8 I think according to the manual
-
sixpiece
sorry double the size
-
luke_jobless_sb
sixpiece: make sure you don't get any out put from command: $ swapinfo
-
luke_jobless_sb
sixpiece: I installed and I didn't even know I have swap space
-
luke_jobless_sb
sixpiece: also my swap space is set 1/10 of root volume. I don't have any idea of how I did so
-
sixpiece
interesting I am trying to attach it now not sure how exactly
-
luke_jobless_sb
sixpiece: that's your cloud platform. I can't help
-
sixpiece
interesting understood
-
sixpiece
the instructions don't work...
-
sixpiece
I will open a ticket
-
sixpiece
thank you very much going to sleep soon or now I guess...
-
luke_jobless_sb
sixpiece: you're welcome.
-
Soni
we asked this in a few places without much of a satisfactory response (except we did almost give someone a stroke apparently) but, what does POSIX, or at least freebsd, have to say about this usage of sockets?
chaos.social/@SoniEx2/113495834154945337
-
luke_jobless_sb
does anyone know if root on '/dev/ttyu' always have permission denied at the use 'jail_attach'?. if so, is this intended? if it's intended, do you know the reason?
-
zijjgfs
Soni, it's kind of a stupid question no offense. To answer your question you should start with reading the source for SYS_socket:
github.com/freebsd/freebsd-src/blob…/main/sys/kern/uipc_syscalls.c#L131
-
luke_jobless_sb
any pf expert? I ask to ask because I am not answered any how. worth to ask to ask before ask here
-
luke_jobless_sb
oh i figured though. thanks.
-
luke_jobless_sb
I have another question though
-
luke_jobless_sb
It does not need to be an expert since I'm an idiot
-
luke_jobless_sb
;p
-
luke_jobless_sb
I figured out. thanks
-
Soni
zijjgfs: so it is UB to use an fd after it's allocated but before it's initialized?
-
zijjgfs
Soni: depends on who's defining said behavior
-
zijjgfs
for freebsd? i do not see any such conditions mentioned in `man 2 socket`. so it's behavior that has been left undefined (implicitly)
-
zijjgfs
but you're free to look at the implementation of kern_socket(), and if you find it deficient in how you think the scenario ought to be handled, you're welcome to create a patch for it.
-
zip
say, do I need to do anything to secure the root account in a jail?
-
zip
I can see that we start out with no password, but SSH won't permit root login, `su` users need to be in `wheel` which utility accounts shouldn't be, and presumably there's no ttys running getty
-
zip
is this actually secure by default or do I need to set a root password for every jail?
-
zip
I suppose I could simply assume the worst and write a tool that yells at me if I have a jail without a root password
-
ivy
zip: you should set a password or disable password login (i.e., set the password hash to '*'). i recommend the latter as you never need to log in as root on a jail, you use jexec. i don't think this is secure by default or really intentional at all, it just happens to not open an obvious remote vulnerability due to sshd default configuration
-
l00py
i used cloned_interfaces in netif service to create taps for each vm. if i add some more taps can i simply service netif reload to get them initialized? and if so, will that drop existing connections?
-
koolkat332
hello
-
koolkat332
my freebsd vm cannot connect to the internet after a reboot
-
koolkat332
ping 8.8.8.8 works but name does not resolve for some reason
-
vkarlsen
koolkat332: cat /etc/resolv.conf
-
vkarlsen
koolkat332: The resolvconf service might be tripping you up
-
koolkat332
nameserver 8.8.8.8
-
zip
ivy: i figured as much. i guess I'll do that before I take the template snapshot
-
vkarlsen
koolkat332: Ok, does `host freebsd.org 8.8.8.8` work?
-
zip
honestly I'm half wondering if I should just install void on this machien and run all my services in podman
-
koolkat332
connection timed out no servers could be reached i removed the stuff that was commented out in
-
koolkat332
resolv.conf
-
koolkat332
and deleted the 8.8.8.8 entry but can readd it
-
zip
but also half this project is just trying to get myself to stop being quiiiite such a docker-brained admin
-
koolkat332
I also added a block storage in the hope of getting a swap
-
koolkat332
everything is failed
-
koolkat332
permission denied on a ping
-
koolkat332
it was ipfw
-
l00py
btw no we can't add more tap interfaces to cloned_interfaces and just restart netif service and routing service. that sucks
-
l00py
wish we could dynamically reconfigure that without having to reboot
-
voy4g3r2
really?
-
voy4g3r2
cloned_interfaces="bridge0"
-
voy4g3r2
ifconfig tap0 create
-
voy4g3r2
ifconfig_bridge0="addm tap0 up"
-
l00py
not what i said
-
luke_jobless_sb
I thought bsdinstall cli was changed but it was the differnce between ttys
-
Soni
can you exploit the kernel via careful manipulation of file descriptor initialization in multithreading?
-
rwp
If l00py comes back perhaps someone could mention that after "service netif restart" they also need "service routing restart" too. That's likely what they are missing, no default gateway route.
-
uskerine
FreeBSD specific question: I am trying kevent's for first time to monitor when a file changes. I get the event working flawlessly when the file is modified by a program but if I modify it manually in vim, the events are not triggered. Any idea or hint on why?
bpa.st/5N5Q
-
satanist
uskerine: have you saved the changes you make with vim?
-
uskerine
satanist of course
-
ivy
uskerine: vim may be unlinking the file and re-creating it rather than modifying it in place, i can't remember off hand if it does that by default
-
uskerine
same if I change it using dd
-
uskerine
it does not work
-
uskerine
this is extremely weird
-
vkarlsen
vim juggles temp files, no?
-
vkarlsen
dd however should be rawdogging it
-
uskerine
there muyst be something else
-
uskerine
I also tried a basic C program and same
-
uskerine
but it works flawlesly in the original main program
-
uskerine
/* REGISTER THE KQUEUE FILE DESCRIPTOR WITH THE XT EVENT LOOP */
-
uskerine
XtAppAddInput(appContext, kq, (XtPointer)XtInputReadMask, eventfile_callback, (XtPointer)client_data);
-
uskerine
could it be that I am registering the callback in the Xt loop
-
satanist
have you tried the sample out of the manpage?
-
uskerine
I need to register it using XtAppAddInput, is a X11/Xt app, if I do it normally it will block the X11 app
-
uskerine
I think I am missing something relevant here
-
uskerine
-
uskerine
where can I learn more about kevents related to file changes?
-
satanist
in the manpage: kqueue(2)
-
satanist
search for EVFILT_VNODE
-
uskerine
ok my fault --partially--
-
uskerine
the plain C program works
-
uskerine
VIM no, because it seems to change the inode (I check with stat)
-
uskerine
same for dd
-
uskerine
the tests I did with dd and C were not properly done
-
uskerine
and vim changes the inode
-
uskerine
good, gravity remains in place