LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 04-10-2015, 03:12 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Configuring Open


I am trying to set up openvpn as an unprivileged user. I am using this guide:
https://openvpn.net/index.php/open-s...ion/howto.html

When I execute:joe@crunchbang:~$ sudo service openvpn start
Starting virtual private network daemon

daemon is running but no vpn tunnel

I have these files in /etc/openvpn:
*firewall.sh
*openvpn-shutdown.sh
*openvpn-startup.sh
*update-resolv-conf
/vpn_book

Steps I followed:

Write the following script and place it at: /usr/local/sbin/unpriv-ip:
#!/bin/sh
sudo /sbin/ip $*

I added this to /etc/sudoers.d/openvpn-unpriv
joe ALL=(ALL) NOPASSWD: /sbin/ip

To openvpn-startup I added:
openvpn --enable-iproute2
openvpn --rmtun --dev tun0
openvpn --mktun --dev tun0 --type tun --user joe
openvpn --script-security 2 --up /etc/openvpn/update-resolv-conf

Added to the config file: vpnbook-ca1-udp53.ovpn
iproute /usr/local/sbin/unpriv-ip

I can open a vpn tunnel with
sudo openvpn --config vpn_book/vpnbook-ca1-udp53.ovpn if I remove iproute /usr/local/sbin/unpriv-ip from the config file.

I new to vpns so I probably missed something. Maybe I put a config in the wrong place or forgot something, or iproute isn't working on Debian Wheezy.

Thanks
 
Old 04-11-2015, 08:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
duplicate of https://www.linuxquestions.org/quest...er-4175539352/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring an Open Samba Share carlosinfl Linux - Server 6 10-03-2012 03:20 AM
Problems configuring Open ldap otaku1 Linux - Server 6 11-28-2009 04:52 AM
LXer: Open messaging for the Open Web: Installing and configuring Mozilla Raindrop on LXer Syndicated Linux News 0 11-13-2009 12:10 PM
help configuring Open Suse as a file server mike160 Linux - Server 1 10-19-2007 07:30 AM
re: configuring keyboard to open kmenu w/ ms logo ergo_sum Linux - Newbie 1 11-20-2003 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration