Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a Ubuntu 10.04 server with PPTPD server. It has one nic with eth0 and eth0:0. eth0:0 has an UK IP and eth0 has a Franch IP. I have setup eth0:0 as default gateway because I want to show that the server has an UK IP address.

The problem is that when I connect to the server using a Mac, the traffic is routed using the eth0 nic.

Is there a way to tell to PPTPD which nic to use to route the internet traffic? Using route -n I get the right routing table:

Destination -> UK-IP

If I access an IP to geolocation web site from the server, it shows the UK IP. Network configuration is:

auto eth0 iface eth0 inet static address xxx.xxx.xxx.xxx netmask broadcast xxx.xxx.xxx.255 network xxx.xxx.xxx.0

auto eth0:0 iface eth0:0 inet static address IP.DE.FAIL.OVER netmask broadcast IP.DE.FAIL.OVER gateway IP.DE.FAIL.OVER

I have used this guide to configure PPTPD: Howto: PPTP VPN Server with Ubuntu 10.04 ‘Lucid Lynx’

I tried this too:

iptables -t nat -A POSTROUTING -o eth0 -d xxx.xxx.xxx.xxx -j MASQUERADE

(where xxx.xxx.xxx.xxx is the UK IP assigned to eth0:0)

but the client cannot access the network.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.