Community discussions

MikroTik App
 
Ixodides
just joined
Topic Author
Posts: 5
Joined: Mon Dec 28, 2009 1:31 pm

PPTP Client to bridge

Thu Feb 23, 2017 11:28 pm

Hi,

I need to achieve something on Mikrotik which I can't figure out myself.

Basically I have typical configuration.
1. Static IP and FEED IN connected to ETH1
2. DHCP Server on Bridge1 with Eth2, Eth3
3. Gateway inside route list
# DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
0 A S  0.0.0.0/0                          XXX.XXX.XX.162            1
4. masquerade on ETH1

Now I connected the router to PPTP server using the PPTP Client.
I am connecting with no issue
status: connected
uptime: 27m20s
encoding: 
mtu: 1610
mru: 1600
local-address: 10.0.2.202
remote-address: 10.0.2.32
I wish to somehow make this PPTP Client connection available either on ETH4 or on the BRIDGE2 so If I plug something to ETH4 it will be going through that PPTP and essentially have access to local resources on PPTP Server.

So If I plug something to ETH2 I get access to local resources on Mikrotik but if I connect to ETH4 I will get access to local resources on the remote router.

I hope I explained the query clear enough.
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: PPTP Client to bridge

Fri Feb 24, 2017 8:58 pm

This could possibly be solved by just routing over the PPTP connection to the far end resources. Say your PPTP subnet is 10.10.10.0/24, you would add this:

/ip route add dst-address=10.10.10.0/24 gateway=10.0.2.32 (or could possibly use interface name if you create a binding for it).

Depending on whether or not you need to have the reverse happen (PPTP server subnet route back to Local LAN) you could add a src-nat masquerade rule to the PPTP client connection.

This would then just be saying basically, anything destined for 10.10.10.0/24 send it over the PPTP connection with a src-address of 10.0.2.202 (Your clients PPTP ip address).

Hope this helps.

Who is online

Users browsing this forum: No registered users and 0 guests