Login  •  Register


The time is now: Fri Dec 13, 2019 3:33 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 13 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sat Apr 05, 2014 7:24 am 
Offline
Tinkerer

Joined: Mon Aug 13, 2012 1:42 am
Posts: 66
The guide in this post is moved to the wiki:

Bridged OpenVPN Server Setup (Needed for getting AppleTalk going over wireless and over the Internet)


Last edited by Ronald P. Regensburg on Mon Apr 14, 2014 7:40 am, edited 1 time in total.
Guide moved to the wiki


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Apr 07, 2014 4:32 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2757
Location: Emaculation.com
This is great! Just a reminder that these instructions can be used for almost* full network domination -- you can use the OpenVPN client for all your mobile devices and other remote "internet things" to create a private, encrypted network for all VMs, emulators, desktops, laptops, phones, etc. inside and outside your local network. This means that if you connect to public wifi for example, and then tunnel to your local network, all that an outsider sees is encrypted traffic.

* Still waiting for official LTOE and TCP/IP stack replacement for Mini vMac; I hope it's coming soon :)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Nov 09, 2015 7:08 pm 
Offline
Space Cadet

Joined: Mon Nov 09, 2015 6:45 pm
Posts: 1
Nice, had been looking around for something like this in the past.

The other ones I found didn't work and people at the OpenVPN forums didn't respond to my thread asking for help...

Do you know if this will work with Red Hat Linux? If not, happen to know where I can find a detailed guide for it?

Thanks.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Nov 16, 2015 2:40 am 
Offline
Tinkerer

Joined: Mon Aug 13, 2012 1:42 am
Posts: 66
iDShaDoW wrote:
The other ones I found didn't work and people at the OpenVPN forums didn't respond to my thread asking for help...
Thanks.


Yes, and furthermore, the OpenVPN forums are unfortunately chock-full of incorrect information, especially regarding bridge mode.

Since Red Hat uses systemd, you should be able to adapt this guide to it. I recommend following it step by step as you would for Debian. If you run into something that differs, you'll have to figure out what the Red Hat equivalent is.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 06, 2016 3:21 pm 
Offline
Space Cadet

Joined: Sat Feb 06, 2016 3:14 pm
Posts: 2
Hey,

Followed this great guide to the letter...twice! But having trouble getting the service to start.

My setup, if this makes a difference, is an ESXi 5.5 host running a couple of VMs, with the one I'm using for the OpenVPN being a Debian 'Jessie' VM. Promiscuous mode is enabled within the vSwitch that the VM is connected to.

When doing testing after the configuration, the br0 interface doesn't appear.

When doing "systemctl status openvpn@server.service" I receive

Code:
● openvpn@server.service - OpenVPN connection to server
   Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled)
   Active: failed (Result: exit-code) since Sat 2016-02-06 15:02:50 GMT; 1min 37s ago
  Process: 550 ExecStartPre=/etc/openvpn/openvpn-bridge start (code=exited, status=203/EXEC)

Feb 06 15:02:50 debian systemd[1]: openvpn@server.service: control process exited, code=exited status=203
Feb 06 15:02:50 debian systemd[1]: Failed to start OpenVPN connection to server.
Feb 06 15:02:50 debian systemd[1]: Unit openvpn@server.service entered failed state.


Can anyone assist?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sat Feb 06, 2016 3:50 pm 
Offline
Space Cadet

Joined: Sat Feb 06, 2016 3:14 pm
Posts: 2
Update: when doing a 'service openvpn stop' then 'service openvpn start' I receive the following:

Code:
● openvpn@server.service - OpenVPN connection to server
   Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled)
   Active: failed (Result: exit-code) since Sat 2016-02-06 15:40:43 GMT; 19s ago
  Process: 1835 ExecStartPre=/etc/openvpn/openvpn-bridge start (code=exited, status=203/EXEC)

Feb 06 15:40:43 debian systemd[1835]: Failed at step EXEC spawning /etc/openvpn/openvpn-bridge: No such file or directory
Feb 06 15:40:43 debian systemd[1]: openvpn@server.service: control process exited, code=exited status=203
Feb 06 15:40:43 debian systemd[1]: Failed to start OpenVPN connection to server.
Feb 06 15:40:43 debian systemd[1]: Unit openvpn@server.service entered failed state.


Not sure why it says 'no such file or directory' as I can confirm that the openvpn-bridge file definitely exists in that location.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 28, 2016 2:31 am 
Offline
Tinkerer

Joined: Mon Aug 13, 2012 1:42 am
Posts: 66
The only thing I can suggest, other than the obvious checking for spelling errors, is to check the permissions of the openvpn-bridge script. But you should get "Permission denied" if the script was not executable (if you missed the "chmod" step of the setup instructions), not "No such file or directory." I think you just have to retrace your steps carefully. Be sure to do everything as root.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Mon Feb 29, 2016 9:47 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2757
Location: Emaculation.com
Is it a process ACL issue as managed by systemd?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Nov 02, 2016 1:02 am 
Offline
Apple Corer
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 279
I would like to set up this OpenVPN server on a NAS drive. Is there anyone who could give me an advice on how to do that? I just need a simple single drive NAS for private use with Ubuntu or Debian as OS so I can set up the OpenVPN server without the use of a VM.

Or would this work with OMV? It is built around Debian Linux Jessie, as mentioned in the setup guide? I don't necessarily need wireless AFP (but would be nice to have).


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Nov 02, 2016 8:30 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2757
Location: Emaculation.com
I don't see why it wouldn't work -- worth a try.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Nov 03, 2016 12:33 am 
Offline
Apple Corer
User avatar

Joined: Wed Apr 10, 2013 9:32 am
Posts: 279
I just realised I have misunderstood things. I don't need the OpenVPN server.
I'm trying OMV and go on in my original thread.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Feb 05, 2017 1:17 am 
Offline
Space Cadet

Joined: Sun Feb 05, 2017 1:01 am
Posts: 1
hi folks i was wondering if anyone could help please
am trying set this up on a raspberry pi 2 using raspbian

when i do 'service openvpn start' and watch ifconfig the br0 gets the ip address for a few seconds then tap0 gets the ip address.
i think i have narrowed this down to the server.conf setting the ip address of tap0

i stopped the openvpn service then ran the bridge script manually which created the tap0 device and the bridge, setting the ip address on the bridge as it should
i than start openvpn --confg /etc/openvpn/server.conf and the ip address is then assigned to tap0
does anyone know whats going on,
i can provide the config files if need

thanks for any help


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Feb 07, 2017 5:02 am 
Offline
Tinkerer

Joined: Mon Aug 13, 2012 1:42 am
Posts: 66
The problem could be in the openvpn-bridge script, which is the script that deals with the IP addresses.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 13 posts ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group