Joined: 29 May 2017 Posts: 3 Location: Dnepropetrovsk, Ukraine
Posted: Mon May 29, 2017 7:12 Post subject: Partitial traffic routing via PPTP/OpenVPN
Hello everyone!
I'm a new to dd-wrt. Recently upgraded my TP-Link TL-WR1043ND to a latest dd-wrt firmware with some reason. I need to route traffic to special resources (networks) on Internet via PPTP or OpenVPN, but other common traffic needs to be routed via default gateway of my ISP. What should I do?
I have already set up a PPTP connection to some VPN server, so I have some intranet address and gateway from this service. But I don't know how to route traffic for xxx.xxx.xxx.xxx/xx like networks via this VPN connection.
Joined: 29 May 2017 Posts: 3 Location: Dnepropetrovsk, Ukraine
Posted: Mon May 29, 2017 11:50 Post subject:
O.k. Thank you. But maybe I didn't give enough information. So I will try to explain what I need...
All the clients (all of my domestic network without any expetions) of my router (wired or wi-fi) must go via default ISP gateway but if destination address equals some criteria (for example 95.142.200.0/24) the router must inject these packets into the tunnel (PPTP or OpenVPN).
If my router were Cisco this should be seen like:
Code:
enable
configure terminal
ip route 0.0.0.0 0.0.0.0 <isp_gateway_ip_address>
ip route 95.142.200.0 255.255.255.0 Tunnel0
end
So it is not a source based routing but some kind of destination one. I don't know how to say right.
Joined: 29 May 2017 Posts: 3 Location: Dnepropetrovsk, Ukraine
Posted: Mon May 29, 2017 13:39 Post subject:
And if I use PPTP will my actions be the same? Cause PPTP configuration is different to PPTPs one.
And where should I eneter that route string? SSH session? Is that dd-wrt syntax of command?