Skip to content

Instantly share code, notes, and snippets.

@rynffoll
Created August 10, 2017 18:08
Show Gist options
  • Save rynffoll/37b7200d07bd92ffaa08392e203a75a8 to your computer and use it in GitHub Desktop.
Save rynffoll/37b7200d07bd92ffaa08392e203a75a8 to your computer and use it in GitHub Desktop.
Activate VPN (PPTP) in firewalld
#!/bin/bash
# Activate VPN (PPTP) in firewalld
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT # ipv4
firewall-cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p gre -j ACCEPT # ipv6
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment