Thank you, I was afraid the answer might be the least prefered of the two.
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.
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.
--
Dee Earley----- Reply message -----
From: "Robert Gauld" <robert@robertgauld.co.uk>
Date: Thu, Oct 7, 2010 09:18
Subject: [bitfolk] HTTP via PPTP to same host
To: "Bitfolk Users List" <users@lists.bitfolk.com>What I would like to do is route all traffic via a VPN connection, even that which is destined for my vps (except of course the actual vpn connection). How can I do this.
My setup:
Netbook (Ubuntu 10,04)
connects via a WLAN to
VPS (Ubuntu 10.04 via a PPTP VPN)
and then onto the rest of the internet.
Browsing (either http or https) to any other site works fine. However trying to connect to my vps (using http or https) results in connection timed out - the WLAN firewalls ports 80 and 443 to force use of a proxy.
Is there a way to do this (ie all traffic except the PPTP connection goes through the PPTP connection) by tweaking the config at one end or the other, or do I have to essentially have an IP address dedicated to the VPN?
--
Robert Gauld
http://www.robertgauld.co.uk