Allow PPTP / GRE

Post Reply
bsntech
Junior Member
Posts: 12
Joined: 29 Mar 2014, 13:36

Allow PPTP / GRE

Post by bsntech »

Hello all -

Looking for some input on how to allow PPTP / GRE connections. Allowing TCP port 1723 in the config is easy to do - but PPTP also requires a GRE packet type. How can this ben allowed?
bsntech
Junior Member
Posts: 12
Joined: 29 Mar 2014, 13:36

Re: Allow PPTP / GRE

Post by bsntech »

Resurrecting this question to see if anyone can provide assistance.

In essence, is there a file within the CSF config that allows me to specifically put in additional IPTABLES rules? If so, I could open up the GRE protocol myself by using an IPTABLES rule.

Thank you :)
izghitu
Junior Member
Posts: 13
Joined: 15 Jan 2008, 09:08

Re: Allow PPTP / GRE

Post by izghitu »

Hi,

Something like this should help:

Code: Select all

[root@server csf]# cat csfpost.sh
#!/bin/bash
iptables -I INPUT -p gre -j ACCEPT
iptables -I OUTPUT -p gre -j ACCEPT
iptables -I FORWARD -i ppp+ -j ACCEPT
[root@server csf]#
You also need to enable ipv4 packet forward with sysctl.

Hope it helps.
Post Reply