Loading topic
sudo on the command line and know what a listening TCP or UDP port is. It also assumes you can read an IPv4 address in CIDR notation, such as 203.0.113.0/24, and that firewalld is installed and running. The previous chapter covered how firewall-cmd talks to the5 min readfirewall-cmd: whether it runs, which zone applies to your traffic, and which services, ports, and rules that zone holds. The commands only read state, so you can r6 min readsudo on a Linux server and manage services with systemctl. It also assumes you know that firewalld groups rules into zones, which the earlier chapters covered. Here you will learn that firewalld keeps two separate copies of its rules, how each firewall-cmd opti7 min readfirewall-cmd with sudo, that you know the difference between runtime and permanent configuration, and that you can read firewall-cmd --list-all output. You will learn which changes can lock you out of a remote server and how to make changes so you can undo a mi6 min readsudo, manage services with systemctl, and know what a listening TCP port is. It also assumes you have read the earlier chapters on zones, inspecting state, and runtime versus permanent configuration. Here you will use that background t5 min readsudo, and that you know what a TCP or UDP port and a listening service are. It also assumes you have read the earlier chapters on zones and on runtime versus permanent configuration. You will use those ideas here.6 min readsudo and systemctl, and that you read IPv4 addresses and CIDR notation such as /24. It also assumes you know the difference between runtime and permanent configuration in firewalld, covered in an earlier chapter. Here you will block traffic from a specific addr6 min readfirewall-cmd with sudo. It also assumes you know the difference between runtime and permanent configuration, and that you can read IPv4 addresses in CIDR notation such as 203.0.113.0/24. You should know how zones match traffic by interface and by source.6 min readhttp and individual ports such as 8080/tcp. This chapter covers a third option: a custom service, a named group of ports and protocols that you define for your own application.5 min readsudo on a Linux server, know what TCP and UDP ports are, can manage services with systemctl, and have already opened or closed a port with firewall-cmd. Changing a rule is only half the job. You also have to confirm that the rule does what you intended, from th7 min readfirewall-cmd, the command reported success, and the client still can't connect. This chapter gives a fixed order of checks that finds the cause. The firewall is only one of several layers that can stop a connection, so you check each layer in turn.7 min read