So I have two Hex S routers (7.23.1)
The routers are a simple DHCP server for a couple of local 'LAN' IPs and a OpenVPN tunnel to a remote server.
Essentially they are just used for making a VOIP connection from a site to a VOIP server but want to route all traffic over the VPN, not just the VOIP traffic.
Clearly the initial connection needs to go via the interwebs, but after that all traffic can be routed down he VPN tunnel. The WAN interface is DHCP.
I actually had both of these kind of working, but it was a bit "Heath Robinson" and cobbled together.
I have had a read of a lot of guides and they vary - often out of date.
The VPN tunnel bit is simple and runs quite happily.
The tricky bit is routing the traffic and I have been well and truly stumped - I can sometimes seem to to get some traffic down it, not others.
I have had so many rules in and out I have completely frazzed my brain
![]()
Has anyone got a simple guide on how to do this?
I'm happy to test and document it myself but need a hand.
I was going to do a complete reset, start with a simple masqueraded LAN, and the VPN and try again.
Anyone have any pearls of wisdom to impart?
This seems to be an accepted answer except routing-mark and type are no longer right eg:
/ip route add dst-address=0.0.0.0/0 distance=1 gateway=192.168.98.1 routing-mark=vpn
/ip route add dst-address=0.0.0.0/0 type=unreachable distance=2 routing-mark=vpn
I suspect they are now
/ip route add dst-address=0.0.0.0/0 distance=1 gateway=192.168.98.1 routing-table=vpn
/ip route add dst-address=0.0.0.0/0 type=unreachable distance=2 routing-table=vpn
https://superuser.com/a/999549
An alternative method?
Any any advice appreciated - it's driving me nuts!
B. Rgds
John