Configure Firewall
xplex listens on port 80
(HTTP) & port 1935
(RTMP). Please make sure the firewall on the host system allows traffic on these ports. Depending on the frontend that the system uses to manage firewall, follow the appropriate section below:
ufw
is typically used as frontend for iptables
on Debian-based distros.
# check firewall statussudo ufw status# allow HTTP trafficsudo ufw allow http# allow RTMP trafficsudo ufw allow 1935
Please follow Ubuntu’s official documentation or, community guide for more advanced help with managing firewall rules.
firewalld
is typically used as frontend for iptables
on Fedora-based distros.
# check firewall configurationsudo firewall-cmd --list-all# allow HTTP trafficsudo firewall-cmd --add-service=http --permanent# allow RTMP trafficsudo firewall-cmd --add-port=1935/tcp --permanent# reload firewall rulessudo firewall-cmd --reload
You can follow Fedora’s official documentation for more advanced help with managing firewall rules.
If you’re on a system that uses some other frontend for iptables
, then please consult its official documentation.
Or you can directly manage iptables
rules to allow HTTP & RTMP traffic:
# allow HTTP trafficsudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT# allow RTMP trafficsudo iptables -A INPUT -p tcp --dport 1935 -j ACCEPT# save updated rulessudo iptables-save