Page 1 of 1

[Closed] dhclient tap0 after OpenVPN connection

Posted: Mon Jan 13, 2014 4:23 pm
by critak
Hi @ all !

I'm new here and i got a question !

I'm using a raspberry pi running the lates version of wheezy. I recently tried to connect it the a OpenVPN server. It was relatively easy. But dhclient was not starting automatically. So the problem is: after every reboot i have to run dhclient manually.

Is their a way to trigger "dhclient tap0" automatically after openvpn is connected ?


config:

Code: Select all

client
dev tap
proto tcp
remote xxxxxxxxxxxx
resolve-retry infinite
nobind
persist-key
persist-tun
pkcs12 xxxxxxxx.p12
comp-lzo
verb 3
remote-cert-tls server
status /var/log/openvpn_berlin.log
dhcp-option DNS 8.8.8.8
Thanks to everybody who is trying to help!

Re: Running dhclient tap0 after OpenVPN established a connec

Posted: Sun Jan 26, 2014 5:06 pm
by critak
the log says:

Code: Select all

[b]Jan 26 17:36:19 backup dhclient: Bind socket to interface: No such device[/b]
Jan 26 17:36:20 backup ovpn-backup[2116]: SENT CONTROL [OpenVPN_server]: 'PUSH_REQUEST' (status=1)
Jan 26 17:36:21 backup ovpn-backup[2116]: PUSH: Received control message: 'PUSH_REPLY,route-gateway dhcp,ping 10,ping-restart 120'
Jan 26 17:36:21 backup ovpn-backup[2116]: OPTIONS IMPORT: timers and/or timeouts modified
Jan 26 17:36:21 backup ovpn-backup[2116]: OPTIONS IMPORT: route-related options modified
Jan 26 17:36:21 backup kernel: [   39.347267] tun: Universal TUN/TAP device driver, 1.6
Jan 26 17:36:21 backup kernel: [   39.347302] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jan 26 17:36:21 backup ovpn-backup[2116]: TUN/TAP device tap0 opened
so it first tries to get ip than creates the tap.