On Thu, Oct 07, 2010 at 10:18:58AM +0100, Dee Earley wrote:
You will need to use the vpn endpoint address,
essentially one that is dedicated to the vpn anyway.
Routing can.only be done per ip so.you can't add a route over the vpn.
Actually it's possible to do with Linux's advanced / policy routing
support, you need an additional routing table to route the PPTP
traffic then put the PPTP traffic into that table (probably based on
the IP protocol number, although PPTP isn't just one protocol).
See
lartc.org for more information.
If you don't want to have to enter another
address, you could probably proxy it locally and send over the vpn to it's internal
address.
This sort of thing is probably much easier though, even something with iptables like:
iptables -t nat -A OUTPUT -p tcp -d YOUR.VPS -j DNAT --to YOUR.VPS.INTERNAL.IP
Would probably work (as PPTP isn't TCP).
David
PS: Using PPTP between two Linux machines seems insane, OpenVPN or similar
would surely be better?