[SOLVED] OpenVPN - tap device does not come up

I am trying to connect to an OpenVPN server. The server configuration is good; it works for Windows clients.
When I try to connect my Arch box, it says everything is good:
Aug 30 18:47:52 morpheus openvpn[7862]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 30 18:47:52 morpheus openvpn[7862]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 30 18:47:52 morpheus openvpn[7862]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 30 18:47:52 morpheus openvpn[7862]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 30 18:47:52 morpheus openvpn[7862]: Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Aug 30 18:47:52 morpheus openvpn[7862]: [natoau] Peer Connection Initiated with 59.xxx.xxx.93:1115
Aug 30 18:47:54 morpheus openvpn[7862]: SENT CONTROL [natoau]: 'PUSH_REQUEST' (status=1)
Aug 30 18:47:54 morpheus openvpn[7862]: PUSH: Received control message: 'PUSH_REPLY,route 172.31.0.0 255.255.0.0 172.31.1.1,route-ipv6 2001:44b8:xxxxxx/56 2001:44b8:xxxxxxxxx::f0,route 192.168.0.0 255.255.254.0 172.31.1.1,ping 10,ping-restart 360'
Aug 30 18:47:54 morpheus openvpn[7862]: OPTIONS IMPORT: timers and/or timeouts modified
Aug 30 18:47:54 morpheus openvpn[7862]: OPTIONS IMPORT: route options modified
Aug 30 18:47:54 morpheus openvpn[7862]: ROUTE default_gateway=192.168.xxx.30
Aug 30 18:47:54 morpheus openvpn[7862]: TUN/TAP device tap0 opened
Aug 30 18:47:54 morpheus openvpn[7862]: TUN/TAP TX queue length set to 100
Aug 30 18:47:54 morpheus openvpn[7862]: /usr/sbin/ip route add 172.31.0.0/16 via 172.31.1.1
Aug 30 18:47:54 morpheus openvpn[7862]: ERROR: Linux route add command failed: external program exited with error status: 2
Aug 30 18:47:54 morpheus openvpn[7862]: /usr/sbin/ip route add 192.168.0.0/23 via 172.31.1.1
Aug 30 18:47:54 morpheus openvpn[7862]: ERROR: Linux route add command failed: external program exited with error status: 2
Aug 30 18:47:54 morpheus openvpn[7862]: Initialization Sequence Completed
The route errors are because the tap0 device doesn't actually come up; the "link" remains down, and no address is assigned:
# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 6c:f0:49:e8:64:28 brd ff:ff:ff:ff:ff:ff
inet 192.168.x.x/27 brd 192.168.x.31 scope global eth0
inet6 2001:44b8:4121:xxxxxxxxxxxxxxxxx/64 scope global dynamic
valid_lft 86396sec preferred_lft 14396sec
inet6 fe80::6ef0:49ff:fee8:6428/64 scope link
valid_lft forever preferred_lft forever
Forcing the link up makes the device appear in the ip output, but still no address:
morpheus /etc/openvpn # ip link set tap0 up
morpheus /etc/openvpn # ip a s
11: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/ether 86:b9:40:dc:b6:da brd ff:ff:ff:ff:ff:ff
inet6 fe80::84b9:40ff:fedc:b6da/64 scope link
valid_lft forever preferred_lft forever
I've also tried a netcfg profile for the same config; same result.
Any ideas why tap0 doesn't want to come up?
Last edited by fukawi2 (2012-09-04 05:12:36)

FYI, I had to change my Windows config to up an --up script to explicitly request the DHCP address:
# this script brings the tap device up and starts a dhcpcd client on it
script-security 2
up /etc/openvpn/postup.sh
# we we wait until that's finished before adding routes...
route-delay 10
#!/bin/bash
tap_dev=$1
tap_mtu=$2
link_mtu=$3
ifconfig_local_ip=$4
ifconfig_netmask=$5
/usr/sbin/ip link set $tap_dev up
/usr/sbin/dhcpcd --background -L -t 10 --nogateway $tap_dev
exit 0
It's a bit (lot) of a hack, but it works. I have to start dhcpcd in the background otherwise OpenVPN seems to timeout the --up script and abort everything. I couldn't find how to extend the time limit that --up is allowed to run for.
This article helped point me in the right direction:
http://hans.fugal.net/blog/2009/01/06/p … its-place/

Similar Messages

  • My ipad device does not come up on itunes, need help fast:/, my ipad device does not come up on itunes, need help fast:/

    my ipad device does not come up on itunes, need help fast:/, my ipad device does not come up on itunes, need help fast:/

    Hi, Nancy.  
    Thank you for visiting Apple Support Communities. 
    Here are the steps that I would recommend going through when experiencing an error that begins with 0xE. 
    iOS: Unknown error containing '0xE' when connecting to a Windows PC
    http://support.apple.com/kb/ts3221
    Cheers,
    Jason H.

  • HT4623 Started up i tunes (latest version) - connected i phone 4s through computer and device does not come up. what do I do? Bruce

    Plugged in iPhone to competer - iphone 4s does not show up in itunes. Cannot find where? Bruce

    -Get yourself an appointment for apple's genius bar at local apple store. this is a hardware problem. you can't fix hardware problems.

  • HT3529 I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    Read here:
    http://support.apple.com/kb/ts2755

  • My daughter forgot her password and now her ipod touch is disabled.  When I connect it to itunes it does not come up on the screen as a device.  What can I do to get her itouch working again?

    My daughter forget her password and now her ipod touch is disabled.  Red message says to connect to itunes.  When I do connect to itunes, the device is not recognized and then a message comes on the screen that says it is locked and to enter the password to access it.  I cannot access the password and since itunes does not recognize the device, it does not come up on the list on the left, i cannot reset it.  What do I need to do so she can use her ipod touch again?   Thanks

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen        
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • When i plug my itouch into my computeri get a pop-up that says "this ipod cannot be used because the apple mobile device service is not started." and when i plug it it my itouch name does not come up on my itunes, how do i start it and fix this?

    When I plug my iPod Touch 4g into my computer I get a pop-up that says "This iPod cannot be used because the Apple Mobile Device service is not started." And when I plug in my iTouch the name of the iTouch does not come up on my iTunes. How do I start the Apple Mobile Device? How do I fix this?

    I'd start with the following document with that one:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • IPhone does not come up as a device on my PC when ITunes loads even though it is connected via USB

    IPhone does not come up as a device on my PC when ITunes loads even though it is connected via USB

    Hi ICF Vic,
    Thanks for visiting Apple Support Communities.
    You can use our iPhone Troubleshooting Assistant to resolve the connection issue you're seeing:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    All the best,
    Jeremy

  • I have purchased a in app purchase of a 'gcsepod' for my little brother however the purchase does not come up in the app and requests me to buy another. How do i solve this? I have also got the receipt for this purchase.

    i have purchased a in app purchase of a 'gcsepod' for my little brother however the purchase does not come up in the app and requests me to buy another. How do i solve this? I have also got the receipt for this purchase.

    I'm not sure I can make sense of this but without asking too many questions, you can resolve your question by contacting iTunes direct.
    Apple - Support - iTunes - Contact Us
    But they will be wondering about the reference to hacking and you feeling bad about getting something for free.
    Best step in my view is to make sure you don't get similarly involved in future.  You must know roughly what you were doing.   Then writie it off to a not to be repeated experience.

  • HT1414 i-phone does not come up in devices

    i-phone does not come up in devices in i-tunes,trying to back up as getting new i-phone tomorrow

    http://support.apple.com/kb/TS1538

  • My shuffle does not come on or charge and is not reconized in my itunes devices

    I pod Shuffle does not come or charge and is not reconized in my Itunes devices

    It's possible there is a problem with the shuffle, but a few more questions and suggestions to rule out other possibilities...
    Are you using the original cable that came with the shuffle?  Some third-party replacements look similar, but if it is made for the 2nd gen shuffle, it will not work because the connector is different.
    Are you using a direct USB port on the computer, and not a USB hub?  A USB hub that is self-powered (has its own power supply) should work, but try a direct USB port on computer.
    If you have not since this problem occurred, shut down (power off) your computer.  If there are other USB devices connected, as a test, you may want to disconnect them, except for standard keyboard and mouse (if normally used).  Do this to Reset the shuffle
    http://support.apple.com/kb/ht1655
    Turn on computer, run iTunes, and connect shuffle to a direct USB port.
    If that does not help, did this shuffle work previously on this computer, and does not work now for some reason? Or is this a new shuffle that was not previously connected to this computer?  (If it is less than one year since purchase date, it is under warranty.)

  • "The selected communication device does not exist"

    Whenever I log on (or come out of sleeping), I get a prompt box from Internet Connnect that says "The selected communication device does not exist. Please verify your setting and try again". I think this started to happen when I stopped using a USB modem to access the internet. Recently I was again using a (different) USB modem, and when I stopped (I now have a wireless router), I now get TWO of the above alerts!
    To be clear - I have no problem accessing and using the internet with the wirelss router I am using.
    Is there a way of deleting historical communication devices I no longer use from Internet Connect that might stop this from happening?
    Thanks in advance.
    G4 iBook   Mac OS X (10.4.8)  

    Hello Dunstan,
    I wonder if this might have something to do with Location and Network settings.
    I'd go to System Preferences/Network and, choosing the location that you are using, select the "modem" tab. On the presumption that, because you are now using wireless router and that your computer is no longer using its built-in modem, I'd delete all settings under "modem".
    Then I'd open Internet Connect and see what crops up when you click on the Modem tab. It should be blank. If it is not, I'd close Intertet Connect, then go to My User Folder/Library/Preferences, and there move the following file to the Desktop: com.apple.internetconnect.plist. Open Internet Connect again.
    There are other things that can be done, especially in the Locations settings. However, I'd try the above first.
    Best of luck,
    Martin
    If you found that this contribution helped to answer your question, please consider the "Helpful" and "Solved" buttons in this message. Why reward points?
    Powerbook 15-inch G4 1GHz   Mac OS X (10.4.8)   Several veterans that go on and on. 40gig, 3rd generation iPod

  • APPLE ICON JUST FLASHING ON MY IPHONE on connection to laptop or charging source and the phone does not come on

    Dear All,
    I am requesting help to resolve problem on my iPhone 4S. The  Apple Icon is just flashing on connection to charging source or to the computer and the phone does not come on.  Need help as this phone is driving me crazy.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • Your Device does not meet System requirements that are needed to support BB App World

    Hello,
    My last Torch died with a JVM. Just got it replaced today and I want to get my Downloaded apps back. After I have restored the device from BlackBerry Desktop, none of my downloaded apps are there. I have a brand new 9860 , running Bundle 7.1.  I launch App World. It tells me to upgrade. When I follow  the screen upgrades, I reach an error message : Notice: Sorry your device does not meet the system requirements that are needed to support BB App World. I have a brand new phone so first question...can I upgrade App World over Wi-FI. or do I have to get a Data Plan from my Telco first ? I have been running my old phone fine with no Data plan but enjoying BBM and Cell use. Not happy.
    Do you have a band or artist you want to promote ? For new music and music news, visit www.soundnebula.com/blog
    SoundNebula is the BlackBerry App for SoundCloud with BBM built in !
    Solved!
    Go to Solution.

    Yep, hopefully soon.. I know the right people are aware of the "inaccurate" error message.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My Iphone 4 does not come with a SOFTWARE UPDATE option.

    My partner bought my iphone 4 version 4.2 about two years ago from a well known store. He got himself one at the same time but i cannot update mine because it does not come with an option in settings, general that allows me to update it. All of my apps are useless as they need at least iSO5 to run. I cannot check my bank accounts or anything. I have rung and spoke to apple many of times and followed all the steps to try and update. As this is not my fault and the iphone had not been loaded with the correct software there should be something APPLE could do free of charge!!!! I really need help as i cannot afford a replacement or want one. I just dont know what to do anymore!!

    Hi there wishheartgirl,
    You may find the information in the article below helpful.
    iOS 4: Updating your device to iOS 5 or later
    http://support.apple.com/kb/HT4972
    -Griff W. 

  • My ipad screen is black and will not reset and does not come back after restoring, the info is still on internal because i can see it on itunes in the apps catagory it's the display is not working, can see backlight but black...does anyone know how to fix

    my ipad screen is black and will not reset and does not come back after restoring, the info is still on internal because i can see it on itunes in the apps catagory it's the display is not working, can see backlight but black...does anyone know how to fix, other than take it to apple.
    thanks!

    The wish list only works on apps you have to pay for. To get it tap the icon of the app you want to save. After it opens at the upper right corner is a box with a arrow. Tap that then tap add to wish list list in the box that opens.

Maybe you are looking for

  • af:activeCommandButtonToolbarButton in ADF 11g

    Hi i want to know about the Active Boolbar button .so i read the Help about this component.they described about each attribute of the component. i am not getting about some attributes like DepressedIcon,Hiver Icon,disabled Icon,UseWindow,acessKey,imm

  • After removing my payment info, why can't I remove the credit card type

    How can I completely remove all of my payment information? I already removed all of my info but can't seem to remove the credit card type (Visa, MasterCard, etc.). After removing the info I am able to, I click Done and then in red letters the words,

  • Action based on tab?

    Simple question: Is it possible for Flash to react to a user Tabbing Out of a field rather than just onRelease of a button?

  • LR 127 Error Message in CAT2

    Hi All, I am trying to create time entry with a sending purchase order / item to create time entry against an external service. I receive the following error message: LR 127 An error has occured". Does anyone have an idea how to resolve this issue?

  • MDT 2012 Update 1 - Deployment - Auto Login won't Disable

    Hello, I am using MDT 2012 Update 1 with an almost vanilla Windows 8.1 and Windows 7 test box. I can deploy both images fine and get a success on my summary but both machines continue to auto login to the Administrator account. To my understanding, t