Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to connect to VPN every time eth0 goes up. I have already a script to do connect to VPN. How can I run it on interface up event on Fedora Core 12?

share|improve this question
up vote 1 down vote accepted

At least on Fedora 11, the networking scripts will call /sbin/ifup-local ${DEVICE} after bringing up the interfaces. Does that do what you're wanting?

(Note: untested)

share|improve this answer
Thanks, it works. But is it the proper way to edit /sbin/ifup-local itself? Is there any config file in /etc/sysconfig/network-scripts for this purpose? – lexsys Dec 8 '09 at 19:05
On my F11 system, /sbin/ifup-local doesn't exist. What package does it belong to on yours? (rpm -qf /sbin/ifup-local) – retracile Dec 8 '09 at 22:37
It doesn't exist on mine to. But I wrote a simple script and after service network restart it is called three times: with eth0, wlan0 and lo as parameters. – lexsys Dec 10 '09 at 6:06
Then yeah, that looks like the way they intend it to be done. – retracile Dec 10 '09 at 15:29

What kind of VPN is it? If you use NetworkManager you can set a VPN to automatically connect itself (For desktop use especially, NM is the recommended form of networking to use on Fedora)

share|improve this answer
I've tried setting this, and at least on F11, it doesn't appear to do anything. – retracile Dec 8 '09 at 16:09
I don't want to use NM. I had bad experience with it in F10 and I don't understand what it can afford me on my one-interface system. – lexsys Dec 8 '09 at 18:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.