• February 23, 2025, 01:25:13 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DFL-800 routing traffic to pptp tunnel  (Read 4319 times)

enriquev

  • Level 1 Member
  • *
  • Posts: 7
DFL-800 routing traffic to pptp tunnel
« on: February 01, 2012, 05:15:40 AM »

Hello, so on my wan1 I have an external IP address.

The DFL is the dhcp server and gives out IPs in the 192.168.77.0/24 range.

I have a pptp linux server on the web, if I use the windows client to connect to it, all I have to do is choose the option "Use default gateway on remote network" and all my internet traffic goes trough the PPTP tunnel. This is tested and works correctly.

On the DFL-800 I have created a PPTP Client connection and when I check this interface status it says it is up and connected. The IP adress received from the pptp server is in the 192.168.1.0/24 range.

Following guides I have created the rule NAT/lan/lannet/pptp-interface/pptp-iprange/allservices.

I would like to know what rules I need to create to make traffic pass trough this tunnel instead of directly to the wan1 as it is doing now, the tunnel is already up.

Thank you.
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: DFL-800 routing traffic to pptp tunnel
« Reply #1 on: February 02, 2012, 06:36:00 PM »

Which kind of traffic? All internet traffic or some specified network?
Logged
BR, Alexandr Danilov

enriquev

  • Level 1 Member
  • *
  • Posts: 7
Re: DFL-800 routing traffic to pptp tunnel
« Reply #2 on: February 03, 2012, 05:21:51 AM »

Actually both, for a certain computer I would like all internet traffic, for another one it would be a certain port going to a certain network. If possible that is.
« Last Edit: February 03, 2012, 12:41:50 PM by enriquev »
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: DFL-800 routing traffic to pptp tunnel
« Reply #3 on: February 04, 2012, 01:11:34 PM »

Your rule "NAT/lan/lannet/pptp-interface/pptp-iprange/allservices" dont allow you use internet

To allow traffic between networks, make rule
Allow lan/lannet pptp_client/pptp_network all_services
Allow pptp_client/pptp_network lan/lannet all_services

To allow your network use PPTP internet, first make static route thru wan to PPTP server, default route to PPTP and after make rule
NAT lan/lannet pptp_client/all-nets all_services
Logged
BR, Alexandr Danilov