What's new

Merlin - Static Route to VPN Client

burny02

New Around Here
Hi all,

First let me give a bit of background to my problem. I have an AC68U, with Merlin installed. I also use an OpenVPN service, however; to get my full 100mbps it quickly became apparent that the router was not going to handle the encryption. So I stuck it on my Ubuntu server and it works just fine using this as the gateway

Recently however; I've wanted to use all the lovely GUI functions of Merlin, so sought about trying to route traffic to the server from the router, whilst the router is default gateway; and I retain easy control of everything.

So; I set up some routes

Code:
ip route add default via 192.168.1.2 table ovpn
ip rule add from 192.168.1.15 table ovpn (15 just for testing purposes)
MASQUERADED IT (Forgot code)

and then on my server

Code:
ip route add default dev tun0 table vpn
ip rule add from 192.168.1.2 table main pref 1
ip rule add from 192.168.1.0/24 table vpn pref 2

So this worked; only some devices 100%. Windows firewall blocks webpages, however. Tracert and pinging through CMD still seemed to work; and everything works without the firewall.

After a bit of research I've dug up there needs to be some sort of tunnel between the router and the server? I have had limited success setting up a PPTP tunnel, however it turned off the router's other openVPN clients

Is there an easier method I am missing here?
 
This image may help with what I'm trying to achieve

attachment.php
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top