Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a linux machine running Ubuntu 10.04 that is connected to a VPN via PPTP. When I browse the web the ip changes, when I use other apps I think its connecting to the VPN. But for some reason I just tried to connect to it from a windows machine on my network an I was able to browse the shares just fine (With samba). Is this normal? I thought that all access to the internet went through the vpn and no traffic would reach that machine from my local network. Am I mistaken? Whats going on here?

share|improve this question
add comment

2 Answers

The IP protocol configuration may (and will) include multiple routes on your machine. Typical configuration of one machine directly connected to Internet with one adapter include two routes:

$ ip route
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.10
default via 192.168.1.1 dev eth0

First route defines that all IP's on your LAN must be accessed directly with an adapter eth0 (which is connected to this LAN), and second means that all other IP's should be connected via some other host, specifically 192.168.1.1, which gets resolved through the first route.

When you connect to VPN, second route gets replaced with something like

default dev ppp0

which means that all packets non-matched by narrower routes should go thru the PPP interface.

Your Windows machine is still on your LAN, and can be freely accessed by your Linux host.

share|improve this answer
add comment

I'm not sure that the IP actually changes. Most OSs can assign a network card more than a single IP address. So even though some traffic goes through the VPN tunnel, the normal IP address of the machine is still active which means all services are available.

If you want to prevent this, you can try to change your firewall settings.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.