Login  •  Register


The time is now: Mon Nov 18, 2019 7:57 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 3 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Tue Dec 18, 2018 12:28 am 
Offline
Space Cadet

Joined: Mon Dec 17, 2018 11:49 pm
Posts: 1
I had set up the openvpn bridge on a raspberry pi 3B, running OSMC.

It works, but if you manually stop the openvpn server with
Code:
sudo service openvpn stop

the eth0 adapter is no longer "up" and you have no network access.

After much troubleshooting, I found the problem lies in the openvpn-bridge script, in the "stop" section.
Apparently, after the bridge interface br0 is deleted, the eth0 adapter goes into the "down" state.

To Fix:
In the "stop" section of the script, change this line:
Code:
ip link set $eth promisc off

to this:
Code:
ip link set $eth promisc off up

The weird thing is, I first ran this on Ubuntu 16.04, and you do not need to add "up"
But on the Pi, you do.
Might be due to different kernels and/or different versions of the ip command.
Or possibly the network manager software. OSMC uses something called "conman"
Or possibly different chipsets/drivers for the network interface.

Regardless, I don't think it would hurt anything to add "up", even if it's not strictly needed.
So I suggest the openvpn-bridge script on the wiki be modified to include this.

Many thanks for this setup guide. It worked perfectly on Ubuntu 16.04
and I was puzzled why I was having problems with the Pi running OSMC,
which is basically Debian that auto launches Kodi.

-MD


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Dec 18, 2018 7:16 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2721
Location: Emaculation.com
IP has changed a bit since 16.04; I found this out upgrading to 18.04. I guess we should update the wiki to highlight that some versions of ip will require up at the end.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Dec 21, 2018 11:46 am 
Offline
Tinkerer

Joined: Mon Aug 13, 2012 1:42 am
Posts: 66
Thanks. I've edited the guide.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 3 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:  
Powered by phpBB® Forum Software © phpBB Group