1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| fwc --list-all public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: cockpit dhcpv6-client http https redis ssh ports: 10136/tcp 9998/tcp 51574/tcp 5180/tcp 80/tcp 443/tcp 27861/udp 41078/tcp protocols: forward: no masquerade: yes forward-ports: port=47000-48000:proto=udp:toport=27861:toaddr= source-ports: icmp-blocks: rich rules:
fwc --get-services
fwc --get-services
fwc --add-service http fwc --remove-service http fwc --add-port=2222/tcp --per fwc --add-service http --permanent fwc --reload
fwc --remove-port=2222/tcp --per firewall-cmd --zone=public --add-forward-port=port=8080:proto=tcp:toport=8088 firewall-cmd --permanent --add-forward-port=port=48000-49000:proto=udp:toport=27042 firewall-cmd --permanent --remove-forward-port=port=48000-49000:proto=udp:toport=27042 sudo firewall-cmd --reload
|