Allow PPTP VPN connection on firewalld

To allow PPTP VPN connection when using firewalls, run the following commands. Allow 1723/tcp sudo firewall-cmd –permanent –zone=public –add-port=1723/tcp Allow gre protocol firewall-cmd –permanent –add-rich-rule=’rule protocol value=”gre” accept’ or sudo firewall-cmd –permanent –zone=public –direct –add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT sudo firewall-cmd –permanent –zone=public –direct –add-rule ipv6 filter INPUT 0 -p gre … Read more

Firewalld

firewall-cmd is used to manage firewall (iptables). It is used by default on latest version of CentOS, RHEL. Check firewall status To see if firewall is running of not use or To disable firewalls Open a port in firewall To allow HTTP and HTTPS traffic, run Permanent option make the changes permanant. You need to … Read more

Firewalld list rules

To list rules use command firewall-cmd –list-all –zone=public To list all open ports firewall-cmd –list-ports Example [root@centos7 zones]# firewall-cmd –zone=public –add-rich-rule=’rule family=”ipv4″ source address=”10.1.1.2/32″ port protocol=”tcp” port=”1-65535″ accept’ success [root@centos7 zones]# firewall-cmd –list-all –zone=public public (active) target: default icmp-block-inversion: no interfaces: eth0 eth1 sources: services: dhcpv6-client ssh ports: 25/tcp 9090/tcp protocols: masquerade: no forward-ports: source-ports: … Read more