You are not logged in.

#1 2007-07-30 18:42:09

paramthegreat
Member
Registered: 2006-06-27
Posts: 38

dnsmasq and vpnc

Hi Guys,

I use vpnc to connect to my office and work remotely. What I want is to send only the vpn traffic through vpn tunnel and everything else throught my regular internet. I found [url http="http://www.gentoo.org/doc/en/vpnc-howto.xml"]this guide[/url] to accomplish that, but it is a bit Gentoo specific.

I am having trouble with implementing this particular section:

Now you need to add an option to your dnsmasq startup options. Edit the following option to suit your needs. 
Substitute .example.org with the appropriate domain and the IP address with a valid DNS server that belongs to the VPN tunnel.
-----------------------------------------------------------------------------------------------------------
Code Listing 6.2: /etc/conf.d/dnsmasq
-----------------------------------------------------------------------------------------------------------
>> Config file for /etc/init.d/dnsmasq
>> # See the dnsmasq(8) man page for possible options to put here.
>> DNSMASQ_OPTS="-S /.example.org/192.168.125.10"
-----------------------------------------------------------------------------------------------------------

Is there a way to replicate those DMSMASQ_OPTS without editing the rc.d/dnsmasq script. I have been reading the manpages, but I could not figure out anything in the dnsmasq.conf file that would enable me to replicate the DNSMASQ_OPTS.

Any help is very much appreciated.

Offline

#2 2007-07-31 20:46:42

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 139

Re: dnsmasq and vpnc

The "CONFIG FILE" section of "man dnsmasq" says that you can specify options in dnsmasq.conf by taking the long version of the command-line option and removing the leading "--".

So I guess you could replicate the command line

dnsmasq -S /.example.org/192.168.125.10

which is equivalent to

dnsmasq --server=/.example.org/192.168.125.10

by putting

server=/.example.org/192.168.125.10

in dnsmasq.conf ?  And you should be able to add multiple server= lines to the conf file.

Offline

#3 2007-07-31 21:23:48

paramthegreat
Member
Registered: 2006-06-27
Posts: 38

Re: dnsmasq and vpnc

Thanx loserMcloser. I will give it a shot and see if that works.

Offline

Board footer

Powered by FluxBB