tomjamescn / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

Solution: How to have both default route and DNS over the tunnel #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have made a script which works for me for setting up a default route and DNS 
over the tunnel. Maybe this is a known technique, maybe it will help also for 
other scripts. Anyway, here it is. It should be run at up, route-up and down 
(through openvpn-down-root.so).

I use "route-delay 10" so that DHCP can get configured.

There is some strange while loop waiting for changes which is a left over from 
my other script I am using. It could probably go out. I use it in a script 
where I do not want default route but that DNS works for internal TLD. Instead 
of configuring IPv4 section in there, I do:

d.init
get State:/Network/Service/DHCP-$dev/DNS
d.add SupplementalMatchDomains * internal other third
set State:/Network/Service/DHCP-$dev/DNS
remove State:/Network/Service/DHCP-$dev/DHCP

Original issue reported on code.google.com by mmi...@gmail.com on 12 Jan 2011 at 12:02

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.

By the way, it's better to post this sort of thing on the Tunnelblick 
Discussion Group at

https://groups.google.com/forum/#!forum/tunnelblick-discuss

Original comment by jkbull...@gmail.com on 13 Jan 2011 at 2:14

GoogleCodeExporter commented 9 years ago
I would have to subscribe. ;-)

Original comment by mmi...@gmail.com on 13 Jan 2011 at 4:24

GoogleCodeExporter commented 9 years ago
It's easy to "subscribe" and then set your profile to not get any emails.

Original comment by jkbull...@gmail.com on 13 Jan 2011 at 4:37

GoogleCodeExporter commented 9 years ago
But it is not possible to receive just e-mails about one issue. Issue tracker 
does support this through staring issues. I am not interested in everything, 
but I am interested in some things. And starring allows this. This what are 
issue trackers for.

Original comment by mmi...@gmail.com on 13 Jan 2011 at 4:54

GoogleCodeExporter commented 9 years ago
OK, your choice.

Original comment by jkbull...@gmail.com on 13 Jan 2011 at 5:23