root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-service=openvpn --permanent
success
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-port=1194/udp --permanent
success
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-source=10.8.0.0 -permanent
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: -permanent
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-source=10.8.0.0 --permanent
success
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-query-source=10.8.0.0 --permanent
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: --add-query-source=10.8.0.0
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --query-source=10.8.0.0 --permanent
yes
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --add-masquerade --permanent
success
root@fhzz-UniServer-R4900-G3:/etc/openvpn# sudo systemctl restart firewalld
root@fhzz-UniServer-R4900-G3:/etc/openvpn# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens9f3
sources: 10.8.0.0
services: dhcpv6-client openvpn ssh
ports: 1194/tcp 22/tcp 53/tcp 8080/tcp 6379/tcp 3306/tcp 8901/tcp 8801/tcp 6011/tcp 6010/tcp 631/tcp 1194/udp
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules: