Archive for March, 2012

Making multiple VPN connections and using them at the same time

0

As I figured how to make certain clients on LAN to use a VPN, I was a bit unsatisfied with the performance of the VPN connection (read: low transfer rates). Then I remembered that we can add multiple routes (explained here). Which means one connection a client makes are routed via VPN0, the other one is routed from VPN1. Hell, you can even add same VPN again and again so that it is used more often.

So as an addition to my previous post, you can simple add more VPN connections in interfaces. Then at the same routing rule, you can add all those VPN connection as gateways. It looks like this:

It is the rule that matches the packets with route-mark, I added more gateways to it. Now when a connection is made, it is routed via one of these.

Now, you can use all the cumulative bandwidth all these servers allocated for you.

Though, I couldn’t make burst of multiple connection attempts distributed over these gateways yet. Which means, if a client opens many connections rapidly, they are all routed from one gateway. If I can figure this out,  a segmented downloading for instance, would be MUCH faster with many VPN servers utilized.

Making certain clients on LAN use a particular VPN connection with Mikrotik

1

Today, I received my RB-750GL from (kablosuzmarket.com) within 24h of my purchase, kudos for the excellent service. Rushed home to use this beast.

I had this idea for some time. To make certain devices on the LAN (i.e. Apple TV) to use a VPN connection so they appear to be from US (or whever the VPN server is). With Mikrotik it took just about half an hour to figure out how to do this.

1. Add your VPN connection into interface. In my case, I needed PPTP Client. Make sure it’s connected successfully.

Last one is my VPN connection.
2. Prepare the address list of the devices you want to use this new VPN connection.

3. Add firewall rules to mark-route packets from this address list. I’ve marked them as “usvpn”.

4. Now, route packets marked with “usvpn” route-mark via pptp1 interface.

The details are not visible in this print. When adding new route, just select the Gateway (pptp1) and Routing Mark (usvpn).

Now test if your devices are out in the US :)

Go to Top