OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: mosimo on April 27, 2016, 04:08:21 pm

Title: opnsense as pptp client to create tunnel
Post by: mosimo on April 27, 2016, 04:08:21 pm
I know pptp is insecure but we have no option and it's not an issue for me anyway.

I'm looking to use opnsense to create a pptp tunnel using opnsense as the pptp client. I can't seem to figure out what I need to do to get this setup. Is it possible this way. If not can someone suggest another way to create a pptp tunnel.
Title: Re: opnsense as pptp client to create tunnel
Post by: franco on April 27, 2016, 04:27:28 pm
Hi mosimo,

PPTP client is still common for some countries to provide internet access. :)

You can add a PPTP device via "Interfaces: Point-to-Point: Devices" and then use the Device in your assigned interface, e.g. "Interfaces: [WAN]".


Cheers,
Franco
Title: Re: opnsense as pptp client to create tunnel
Post by: franco on April 27, 2016, 04:31:03 pm
Whoops, what I said is not completely true. To use PPTP as a dailup on an interface you can use it like setting DHCP or a static IP directly.

For adding extra PPTP devices, you can create them like described above and then assign them as a new interface under "Interfaces: Assignments".
Title: Re: opnsense as pptp client to create tunnel
Post by: mosimo on April 27, 2016, 05:30:45 pm
Hi Franco,

Still having problems getting this connect. Here is what I've done:

Just a bit of info: We have two interfaces on our opnsense box. The pptp link is just so we act as a client to access multiple devices on the other network only.

bge0 = LAN (10.20.40.x)
bge1 = WAN - Static IP connection (external static IP)

1. I've created a Point-to-Point device. Link type PPTP. Link Interface I'm not sure what to select. user/pass filled in. Local IP I've put as the IP I've been assigned by the pptp server admin (10.0.0.48). Gateway as server address I use to connect. (This info all works fine as a single win 7 client)

2. Interfaces -> Assignments -> Created the new interface by selecting pptp0 (the newly created ptp device)

3. Interfaces -> [OPT1] -> Enable interface. This shows all the correct info I entered creating the pptp device originally. -> Save

4. If I go to Interfaces -> Overview -> OPT1 interface (opt1, pptp0) it just shows status as down, PPTP down. The connect button does nothing. I can't find any logs to see what is failing at this point. Interfaces -> Point-to-Point -> Log File just shows "File /var/log/ppps.log yielded no results."
Title: Re: opnsense as pptp client to create tunnel
Post by: franco on April 27, 2016, 05:46:47 pm
Hi mosimo,

Is LAN a 10.0.0.0/8?

1. Link interface should be on bge0 if it's a /8.

2. Good. :)

3. Ok.

4. If PPTP was assigned to a physical interface that is down that's expected.

I did all of that just now on my LAN, in overview I get:

Status   up
PPTP           up
Title: Re: opnsense as pptp client to create tunnel
Post by: Mohiuddin on September 28, 2016, 05:47:30 am
Hi Guys, I'm new in opnsense, so welcome to myself!
I did the same above as you did, I can see opt1 showing up also, but I didn't see our remote server say X.X.X.X getting any hit from the client. Is there anything else I need to do like add a firewall rules!

ifconfig shows pptp interface up with no ip for a long time!

Would appreciate if you can help me out on this!
Thanks!