Skip to content

u/faesap

In this archive from May 2019 to May 2020

0
posts
12
comments
0
media
29
score

The easiest way would be using VMs like others said. However that is a bit heavy of a solution, but it is easy.

You could also use network namespaces. I have this set up, however I would not recommend it. Due to the way I want the networking done on my machine, I have essentially replaced a typical network manager with a pile of scripts. To set up the namespaces routing, interfaces and firewall rules. There is basically no network manager that supports namespaces and a few other things I want to use.

Once you start to get off the beaten path with Linux networking, it gets hairy pretty quick.

1 points

find . -type d -exec chmod nnn {} \; where nnn if the permissions for directory. probably 775. 664 for files with f instead of d.

. means current dir. So be at the root where you want to fix or specify with full directory. you can do d or f for files and directory. See the man page for more info.

2 points

There is no guarantee that disks show up in the same order in /dev instead you should identify them every time when partitioning and such, then use gpt uuids whenever you can for everything else.

no

reboot your system with the disk in it. then run the lsblk command. that will show all the normal partitions as sda1,sda2,sdb1,sdb2,etc... If you are using lvm it is more complicated

there is no actual trash on linux. any trash you may see is entirely a construct of that DE or tool. There have been some efforts to create a standard for doing trash, but for the most part. assume that when you rm or delete something that it is gone forever right away.

5 points

The most reliable way would be to use another computer like a Raspberry Pi to send a wake on lan frame to your machine at the time you want. You could schedule the wake on lan program on the second machine with cron or something similar.

6 points

Wether or not you can use static ARP to effectively mitigate ARP spoofing and other lower level network attacks will depend on how much control you have over the whole network. Plus if you have no way to lock down a MAC address to a specific interface you are still open to various attacks.

Now Linux... Using tools like ip or iptables or nft will not make permanent changes to the configuration of the kernel. This is one of the annoying things about Linux. there is no single way to temporarily or permanently persist changes. ifcfg scripts for example configure the network when interfaces go up or down. Network Manager does the same thing but is configured differently. One those changes have been made. You can manaully make additional changes that will be lost on boot.

Now back to ARP. Not all network daemons are capable of even doing static ARP. And even if you did choose one that did do it, there is nothing stopping something else from changing it behind it.

Now let's assume we have static ARP working on just your local machine. Other machines on the current segment can spoof or change their mac addresses, even to one that is a duplicate. This is a DoS at a minimum.

Unless you have control over the entire broadcast domain, you are wasting your time.

1 points

ip -6 a

ip -6 r sh

ip -6 nei

ping 2600:: and every combination of ping/ping6 and putting 2600:: in square brackets

Some distro use a ping6 tool instead of having it all in ping and some distro ping tool require putting the address in square brackets

Edit: also

iptables-save variant for v6

nft list ruleset

2 points

End of this list.

Back to top

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.