Further to my earlier question today I have a netbook which connects over
wireless to a pptp vpn on my vps's 3rd IP. When I try to connect to apache
running on my vps's first IP address rather than appearing to come from my
vps's 3rd IP it instead comes from the netbook's 'local' address.
(Numbers
below if this is not clear).
It would appear that in order to get this working how I want that I need to
tell SNAT to use eth? rather than eth?:?. Am I missing something or do I
need to ask Andy about linking that IP to a second virtual NIC.
It works just fine for IPs not on my VPS so I think I'm missing something o
tell ubuntu not to try being efficient (ie only use 192.168.254.x when I
enter a 192.168.254.0 destination address).
Netbook:
WLAN IP: x.x.x.x
IP on VPN: 192.168.254.x
VPS:
Apache runs on y.y.y.73
VPN runs on y.y.y.75
Running a simple CGI to report the remote IP (from apache's perspective)
reports 192.168.254.x where I'm after it being y.y.y.75
--
Robert Gauld
http://www.robertgauld.co.uk