Windows tun driver
James:
Are you aware of a Windows tun project? While most windows users may prefer tap, I am interested in the point-to-point nature of the tun device. When setting up many routed connections, it seems that each TAP connection will use 1 ip and waste 2 others. I can also live without broadcast traffic and non-IP protocols.
_SNIP_
I think that Windows users are going to prefer a tap interface anyways, because it carries the kind of traffic and protocols which Windows applications generate, such as broadcast traffic and non-IP protocols.
James
Quoted 6 lines · Bert Shuler
James:
Are you aware of a Windows tun project? While most windows users may prefer tap, I am interested in the point-to-point nature of the tun device. When setting up many routed connections, it seems that each TAP connection will use 1 ip and waste 2 others. I can also live without broadcast traffic and non-IP protocols.
While I do believe that the majority of Windows users will prefer a tap interface, I say this simply because in my experience _most_ Windows users prefer the option that is the easiest to configure. Once you stop automatically routing broadcasts and non-IP protocols, then you have to start doing more configuration on Windows, i.e. setting up WINS servers and clients, configuring samba differently, etc.
Having said that, I will agree that having a tun driver would be cool, and that in many if not most circumstances, it is technically a better choice -- it is more scalable, it offers finer gradation of access control, it is more universal across *nix platforms, etc. -- as long as you don't need to route non-IP protocols.
The real problem is that very few open source developers are interested in developing drivers for Windows, so there are not many choices available. To my knowledge there are three: TAP-Win32, CIPE-Win32, and WinPcap, and none of them provide tun capabilities.
James
Quoted 6 lines · James Yonan
While I do believe that the majority of Windows users will prefer a tap interface, I say this simply because in my experience _most_ Windows users prefer the option that is the easiest to configure. Once you stop automatically routing broadcasts and non-IP protocols, then you have to start doing more configuration on Windows, i.e. setting up WINS servers and clients, configuring samba differently, etc.
Would the TUN device really be much different from any random PPP device? Either is a point-to-point connection. Granted, with current Windoze versions, SMB and all that stuff isn't bound to PPP devices by default but is likely that the user wants it bound to TUN, however, there are convenience features like --ifconfig.
Signature · 3 lines
Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95
Quoted 9 lines · Matthias Andree
Quoted 6 lines · James Yonan
While I do believe that the majority of Windows users will prefer a tap interface, I say this simply because in my experience _most_ Windows users prefer the option that is the easiest to configure. Once you stop automatically routing broadcasts and non-IP protocols, then you have to start doing more configuration on Windows, i.e. setting up WINS servers and clients, configuring samba differently, etc.
Quoted 5 lines
Would the TUN device really be much different from any random PPP device? Either is a point-to-point connection. Granted, with current Windoze versions, SMB and all that stuff isn't bound to PPP devices by default but is likely that the user wants it bound to TUN, however, there are convenience features like --ifconfig.
Yes, tun and ppp are very similar. I know that the linux tun driver basically just sets the ppp bits and the kernel does most of the work.
Windows kernel hacking is more complicated, as it requires a great deal more support code to do even simple things. I just did a wc *.[ch] on the source, and ...
TAP-Win32 -- 3061 lines of code for TAP only Linux TUN/TAP -- 699 lines of code for TUN and TAP
Incidentally, beta8 has an expanded --ifconfig function that works on both tun and tap devices (including tap devices on windows). It also has a --route convenience function that figures out the appropriate per-platform syntax for route, and it too works on windows.
James