QUOTE(Trane Francks)
This is a matter of correctly configuring your VPN client/router. It seems that your VPN is configured as the default route for all your traffic.
Unfortunately, no - I wish it were that simple. The default route on the gateway machine is to my adsl link to the internet.
I'll provide a few more details however.. Ip addresses are made up, but are representative.
System 1 (me): 10.0.0.1 (behind a nat gateway)
System 2 (target): 10.0.1.1
Gateway 1 internet IP address: 150.101.101.101 (iptables firewall)
Gateway 2 internet IP address: 150.101.101.102 (iptables firewall)
important gateway routes (note the 10.0.1.0/24 route through encrypted tun0):
CODE
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.2 * 255.255.255.255 UH 0 0 0 tun0
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
10.0.1.0 10.0.2.2 255.255.255.0 UG 0 0 0 tun0
default loop0.lns1.cbr1 0.0.0.0 UG 0 0 0 ppp0
The only thing that will go across the vpn is packets for 10.0.2.2 (gateway 2 IP) and 10.0.1.* (network on the other side of the gateway)
Or, in graphical (simplified) form:
CODE
150.101.101.101
10.0.0.1(Me) ------.0.2- Gateway1 |------- INTERNET (default route)
.2.1 |
|| |
vpn |
|| |
.2.2 |
10.0.1.1(Target) --.1.3- Gateway2 |-------- INTERNET (default route)
150.101.101.102
So in order to get to the target system, we could either go through the gateway, over ppp0, from 10.0.0.1 (me) through 150.101.101.101 (gate 1), across the internet to 150.101.101.102 (gate 2), to 10.0.1.1 (target)... or alternatively, from 10.0.0.1 to gateway 1, over the encrypted VPN (tun0), through gateway 2 (10.0.2.2), to 10.0.1.1.
It seems as though skype is choosing the second alternative every time, rather than going through the unencrypted default route.
The only thing I can think of, is that firewall rules on gateway 1 & 2 are blocking the initial 'call notification', and that skype is falling back to the 'backup pathway' over the VPN, which doesn't have quite as many firewall rules to trouble it.
If I have two skype clients, both behind firewall-protected NAT gateways, do I need to open up any ports on the gateways to allow the 'call notification' to go through? I would assume that this would be the case, but the documentation I've read on skype thus far, seems to imply that this approach is not needed.
Any help is appreciated,
Red.