You are not logged in.
Pages: 1
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
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.10which is equivalent to
dnsmasq --server=/.example.org/192.168.125.10by putting
server=/.example.org/192.168.125.10in dnsmasq.conf ? And you should be able to add multiple server= lines to the conf file.
Offline
Thanx loserMcloser. I will give it a shot and see if that works.
Offline
Pages: 1