Hey guys,
I have been trying to figure this out for about three days and I can't seem to get it to work. I'm building a small company VPN and I'm testing it out with my iPhone. I can get the iPhone to connect but it can't connect to the Internet afterwards. I'm hoping you guys can help me figure out what the problem is.
My mpd.conf:
My /etc/rc.conf:
My /etc/pf.conf:
My /etc/sysctl.conf:
From what I can tell it should work but it's not and I'm not really sure where I screwed up.
Any help is very much appreciated, thank you.
I have been trying to figure this out for about three days and I can't seem to get it to work. I'm building a small company VPN and I'm testing it out with my iPhone. I can get the iPhone to connect but it can't connect to the Internet afterwards. I'm hoping you guys can help me figure out what the problem is.
My mpd.conf:
Code:
startup:
# configure mpd users
set user pptpadmin admin
set user pptpadmin <PASSWORD>
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 0.0.0.0 5006
set web open
default:
load pptp_server
pptp_server:
set ippool add pool1 10.1.1.10 10.1.1.90
# Create clonable bundle template named B
create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
set ipcp ranges <PUBLIC IP>/20 ippool pool1
set ipcp dns 8.8.8.8
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
# Create clonable link template named L
create link template L pptp
# Set bundle template to use
set link action bundle B
# Multilink adds some overhead, but gives full 1500 MTU.
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap eap
set link enable chap
# Enable utmp/wtmp logging
set auth enable system-acct
# We are reducing link mtu to avoid GRE packet fragmentation.
set link mtu 1460
# Configure PPTP
set pptp self <PUBLIC IP>
# Allow to accept calls
set link enable incoming
My /etc/rc.conf:
Code:
# Enable mpd5 daemon
mpd_enable="YES"
mpd_flags="-b -s mpd5"
gateway_enable="YES"
#enable packet filter service
pf_enable="YES"
pf_rules="/etc/pf.conf"
arpproxy_all="YES"
My /etc/pf.conf:
Code:
ext_if="em1"
internal_net="10.1.1.10/20"
external_addr="<PUBLIC IP>"
nat on $ext_if from $internal_net to any -> $external_addr
pass in all
pass out all
My /etc/sysctl.conf:
Code:
net.inet.ip.forwarding=1
net.inet6.ip6.forwarding=1
net.link.ether.inet.proxyall=1
From what I can tell it should work but it's not and I'm not really sure where I screwed up.
Any help is very much appreciated, thank you.