DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th March 2016
betweendayandnight betweendayandnight is offline
friendly
 
Join Date: Jul 2015
Posts: 67
Default update-resolv-conf

When I am using a Linux distro and wish to connect to a VPN server located in a foreign country, first I will ensure that update-resolv-conf.sh is in /etc/openvpn

The update-resolv-conf script can be downloaded from: https://github.com/masterkorp/openvp...te-resolv-conf

Next I will append to my *.ovpn file the following lines:
Code:
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh
The contents of my *.ovpn file is as follows:
Code:
client
dev tun
proto tcp
remote 66.77.88.99 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo no
route-delay 5
verb 3
ca "ca.crt"
cert "user.crt"
key "user.key"
tls-auth "ta.key" 1
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Questions:

1. Is there an equivalent script for OpenBSD users of OpenVPN?

2. Is such a script necessary for users of OpenVPN on OpenBSD?

Thanks in advance for your feedback and clarifications.

Last edited by ocicat; 30th March 2016 at 02:10 AM. Reason: Please use [code] & [/code] tags when posting file content.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf.tail betweendayandnight OpenBSD General 5 18th July 2015 11:44 AM
conky + lua + cairo issue - unable to resolv symbol bsdplus OpenBSD Packages and Ports 3 6th July 2014 03:04 AM
Apache HTTP Server update fixes remote DoS issue - Update J65nko News 0 12th May 2011 07:21 PM
How to add a nameserver in /etc/resolv.conf automatically guitarscn OpenBSD General 7 9th November 2010 12:12 PM
Update httpd.conf IPs from DNS zones. bigb89 Programming 16 2nd December 2008 02:02 AM


All times are GMT. The time now is 02:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick