You are not logged in.

#1 2022-09-02 15:06:25

archbaby
Member
Registered: 2022-09-02
Posts: 20

[SOLVED] How do I enable firewall in a fresh install of Arch?

Hi. I've just installed Arch.

The Arch Wiki says: "Arch Linux comes with two options for managing a firewall, neither of which is enabled automatically."

Now how do I enable the firewall?

Last edited by archbaby (2022-09-26 10:25:56)

Offline

#2 2022-09-02 15:31:25

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] How do I enable firewall in a fresh install of Arch?

This is covered the two linked pages just below that sentence....


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-09-02 20:15:34

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: [SOLVED] How do I enable firewall in a fresh install of Arch?

Read through the following links...caveat, it's a bit of a tedious process to get a firewall setup under Arch. I considered giving up on Arch when I first encountered all of the steps that are required to get a firewall setup.

iptables

Simple stateful firewall

Uncomplicated Firewall


Arch Linux with Openbox & Tint2

Offline

#4 2022-09-02 22:08:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: [SOLVED] How do I enable firewall in a fresh install of Arch?

Or you skip the legacy iptables and check the nftables wiki page .

install nftables, issue 2 simple commands and basic firewall protection works.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2022-09-03 01:48:12

cloverskull
Member
Registered: 2018-09-30
Posts: 277

Re: [SOLVED] How do I enable firewall in a fresh install of Arch?

Setting up a basic firewall is simple.

If using iptables

sudo pacman -S ufw
sudo ufw enable
sudo systemctl enable ufw.service

If using nftables

sudo pacman -S firewalld
sudo systemctl enable --now firewalld

This is a very simple, outbound ok inbound blocked type of setup.

Offline

#6 2022-09-03 12:17:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: [SOLVED] How do I enable firewall in a fresh install of Arch?

Adding a 3rd package is not what I call simple.

https://wiki.archlinux.org/title/Nftables#Simple_firewall wrote:

Simple firewall

nftables comes with a simple and secure firewall configuration stored in the /etc/nftables.conf file.

The nftables.service will load rules from that file when started or enabled.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB