Skip to content

u/yoniyuri

In this archive from Jan 2019 to Mar 2024

1
posts
89
comments
0
media
285
score
1 saved before deletion

Top posts

Top comments

It is definitely not more secure to not use the firewall in linux. Actually, the firewall is pretty much always enabled, so not having rules installed doesn't eliminate the firewall as an attack vector. The linux firewall is actually netfilter which is responsible for more than just blocking and logging, it also handles nat for instance. Additionally having a few rules installed doesn't make a huge difference in performance on modern hardware at gigabit speeds. The firewall operations are pretty efficient since evaluating the rules is mostly simple logical operations. For example, to determine if an IP is within a defined subnet, the test ip is logically anded with the subnet in question. https://stackoverflow.com/questions/31040208/standard-safe-way-to-check-if-ip-address-is-in-range-subnet

Enabling logging with a firewall can have a performance impact since the logging or triggering is likely not efficient. For example, logging to disk is slow and will cause the network to compete for disk I/O which is usually the bottleneck.

As for securing services with or without ACL capabilities, you can and should use OS level firewalling when possible as an extra layer of security. It's also possible that the OS implementation is more secure than whatever that specific software is doing.

16 points

If they are both gpt, just boot into the arch install media and use dd without mounting or unlocking the luks volumes.

dd if=/dev/sdx of=/dev/sdy bs=4M status=progress

After that is done, you would be able to boot your os on the new disk like normal.

You will still need to expand the partitions, logical volumes and luks and such, but that would get your data into the new disk. You might find gparted useful here. It is a graphical interface to work on partitions and filesystems. Burn it to usb/cd and boot your machine on it.

14 points

You could try user mode networking. This makes qemu work like any other program on your machine.

https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29

https://libvirt.org/formatdomain.html#userspace-slirp-stack

Qemu will fake all the necessary things to get tcp and i think udp working without needing to mess with various linux network devices.

The downside is that the machine can only go out, connections can't go directly in i think. But you could work around this. To work around it, inside the guest, ssh to the host and use reverse tunnel. You can forward ports back to the vm in this manner. https://wiki.archlinux.org/title/OpenSSH#Reverse_SSH_through_a_relay

13 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.