00:00hello i wanted to set up a firewall on void linux i looked within the
00:07packages of xbps src and i found that ufw and firewalld exist i was trying with both of them
00:17i kept getting some errors here and there and i was able to resolve some of them for ufw which
00:25i believe is gonna be installed successfully so let's hope it does here you need to have xbps src
00:34ready on your system i have done a video which i can put in the description
00:39please prepare it first since the steps that you're gonna see here depend on that
00:47after doing those steps you need to change directory into void packages which is the
00:54directory where the packages were cloned they are actually locally available not like the other
01:02distributions where they are on a remote repository and then you run xbps dot slash xbps src pkg and
01:12then ufw like this all right this sounds like successful and then we run xi ufw
01:29in case you faced any error like the package lib python as i guess which is what i got as an error
01:37and try to update your system it should it's supposed to work now we run xi ufw this one
01:46y here and enter
01:56okay it is installed successfully
01:58let's see uh let's see the service if it is running or not which the next step depends on sv status
02:09if ufw file does not exist okay
02:23ufw
02:24okay so we need to run sudo ln dash s
02:33so we need to run sudo ln dash s
02:35like this
02:36like this etc sv uf w
02:49and then var
02:51service if i am not mistaken
02:56and then
03:01like this okay status
03:10okay ufw list
03:15it should complain here about
03:18not using the root privileges and the command is wrong actually like this
03:27yes yes needs root sudo inactive
03:33i guess as long as it is inactive we need to allow the port 22 in case we are running
03:39remotely through ssh to prevent any system lock up your system will be locked up you cannot access it in
03:47case it is remote and you cannot reach it physically so and allow this before you activate it like this
03:56and then
03:58and then ssh maybe
04:02yes it is there and then
04:05enable if the command is right
04:09why
04:09yes that's what's told here command may disrupt existing ssh connection why and enter please be careful with this since
04:20it can cause
04:21uh
04:23your system to be locked if it is remote like this
04:29okay let's see the status
04:33yes if we want for example to allow a specific port
04:37let's say for vnc in case we installed it we run this command as i did before for ssh
04:50and we can check
04:52we will have it enabled
04:55if we want to disable it disable it as
04:59a port or a service we can run this command
05:02and we should see it here
05:05you can look more about how to use ufw
05:10there should be uh documentations
05:15here and there
05:17and for this video i believe we installed ufw successfully for our void linux
05:23please don't work don't forget to subscribe like share and comment that makes it here and see you
Comments