route add -net 192.168.1.0/24 dev [vpn device here] route add default dev [normal net device here]
Now, this will not affect your DNS -- your etc/resolv.conf will define a DNS server, which it will access according to the routing table above. This mans you won't be able to access machines on the VPN'd network by name unless your DNS server is defined as being on that network, or you have the hostnames explicity defined in your etc/hosts file. It souds, though, like you're accessing by IP directly and you misspoke when you said you wanted "DNS to go to VPN only". Please correct me & clarify if I'm wrong. Hope that helps! On Fri, Nov 21, 2008 at 7:29 PM, Shaun Marolf <[EMAIL PROTECTED]>wrote: > > Okay I have finally gotten the VPN tunnel straight and can connect to > the VPN server. However, I am running into a couple of issues. > > Here is the setup: > > Ubuntu 8.10 Intrepid > Local Network 192.168.3.0 > VPN Network 192.168.1.0 > > I want to have all DNS for 192.168.1.XXX go to VPN only (Should not > anything sent to the VPN is by IP address only i.e http://192.168.1.33 I > do not type in a URL only the IP address on the VPN services. > All Others should go through my normal network route and DNS service. > How do I setup the routes to make that happen? > > --Shaun > > > > > -- Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [EMAIL PROTECTED] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
