• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 801
  • Last Modified:

Eathernet Bridging Running Script Bridge-Start


 Refer back to the Openvpn (Eathernet Bridging) Setup:

On the Page It said: Now run the bridge-start script. It will create a persistent tap0 interface and bridge it with the active ethernet interface

How I can run this two scripts (Bridge-start,Bridge-Stop)?
  • 5
  • 4
1 Solution
Hi ya

create a file bridge-start like this in any where but do this in /root directory

touch bridge-start

then past the script in their

then give permission to this script

chmod 755 bridge-start

then run this script like this  ./bridge-start

do the same for the other one
mubama0nAuthor Commented:
Ok , Can I put it in (/etc/init.d) and write this command (chmod 755 bridge-start)?
can you specify the root directory is it CD /root?
If I wnt to let this script (bridge-start) to operated after rebooting can you show me how I do this?

easy way to do this task is

insert the script in /etc/rd.cd/rc.local
so it will run at leaset once when system will boot

so edit rc.local file  , added the path of the script like thist  /root/bridge-start

so next time when system will boot , it will restart automaticaly

but i didnot understand , what you meant by this : can you specify the root directory is it CD /root?
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

mubama0nAuthor Commented:
I mean I didn't work before with this directory (/root) , Is it Required to put the script (bridge-start) on this directory (/root) or I can put it in another directory e.g.: /etc/openvpn or /etc/init.d?

Remeber that When i run this script I must write : (./bridge-start) , can i write it like this on (rc.local)?
Another question, If I want to run the following scripts on this sequence:
2-start openvpn
3- stop openvpn

Can I put it also on (rc.local) to be started after booting?
its not required to put it in root directory. you an put any directory as long as you have full access to that directory.

if you want you can create /etc/openvpn and the place those bridge-start and bridge-stop .

if you want to run the script from command prompt then you will have to use ./bridge-start.

but when you will add that one in rc.local, you dont need to write ./bridge-start

as i said, just write the path of that file ( for /etc/openvpn/bridge-start) just write  /etc/openvpn/bridge-start

2-start openvpn  == if you would be able to add individual command in rc.local file,

but you will have to give it full restart command

suppose if i want to restrt httpd by rc.local i will write : service httpd start in rc.local

another way you would be able to add openvpn  to run after linux boot up like this : chckconfig openvpn on  ( if open vpn support chckconfig)

let me know if you need further explanation

mubama0nAuthor Commented:
Thanks for this Clarification I'm really appreciated , About the second question (scripts sequence) I don't know who is the file(script) that responsible for calling processes during boot so I thought that (rc.local)is the one , Any way I'm far away now from the Linux machine around (2)HRS from now I'll be near the machines and I'll let you know about the result.
if you have root access, then its fine. root will have everything on the process

do everything as root user.
mubama0nAuthor Commented:
The First line on (rc) file is :
Shall I put the start-bridge statement after this line?
sorry my account was cancled for a while due to not close question properly!!!

insert after last line. [ path of the script as i said before ]
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now