Code Monkey home page Code Monkey logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I'm pretty sure you can't do DHCP on a TUN device (as opposed to TAP). Have you 
tried whether dhcpcd works?

Original comment by [email protected] on 14 Feb 2014 at 4:05

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I tried dhclient which didn't give any errors which is why I assumed it was OK 
(and the fact that dhcp works at the application layer). However, on trying 
dhcpcd I do get an error: "err, tun0: interface is not Ethernet, FireWire, 
InfiniBand or Token Ring"

Original comment by [email protected] on 14 Feb 2014 at 4:59

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Am currently writing a template to get the information from "ip route" output 
using regular expressions. If you can think of an easier way please tell me.

Original comment by [email protected] on 14 Feb 2014 at 5:00

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Well, the answer at this time is simply that it's not supported. Use TAP, if 
you can, or assign addresses some other way than DHCP.

Original comment by [email protected] on 14 Feb 2014 at 5:01

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Have you tried letting openvpn assign the address? I know that integrating such 
tools like VPN clients is painful, but it can be done. For inspiration you can 
check my PPOoE code, 
https://code.google.com/p/badvpn/source/browse/trunk/ncd/examples/router/pppoe.n
cdi

Original comment by [email protected] on 14 Feb 2014 at 5:14

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Yes openvpn automatically assigns the ip address & gateway to a tun device in 
the main routing table, but I need to know what they are so that I can update 
other routing tables. Anyway, I've done it now: I wrote a template to get the 
information from iproute2. I will send you a copy.

Original comment by [email protected] on 15 Feb 2014 at 1:35

from badvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Not expecting this to be implemented anytime soon since it's a very rare 
configuration not even supported by dhcpcd.

Original comment by [email protected] on 17 Feb 2014 at 10:07

  • Changed state: WontFix

from badvpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.