View Single Post
#231
Old 03-23-2013, 02:59 PM
poorgrad poorgrad is offline
L5: Journeyman
  • Jan 2008
  • 646
  • 114 poorgrad will become famous soon enough
  • 0
Quote from SlickFerret View Post :
I found an article on it...
http://forum.interserver.net/foru...en-vz.948/
I was able to mostly follow these instructions and get pptp to work with ufw.

First, you need to apply the ufw [bodhizazen.net] hacks to get it to work.

The instructions on this page are a bit garbled about what to put in /etc/ufw/before.rules. I put in
Code:
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow forward traffic to venet0:0
-A POSTROUTING -j SNAT --to-source <VPS ip_address>

# Process the NAT table rules
COMMIT
This has a side effect though. Everytime to enable ufw it will add the SNAT rule to iptables. It never gets removed so you'll have duplicate rules until you reboot.