About this question
I would appreciate if someone told me the practical difference between TAP vs TUN mode when use with OpenVPN. When to use TAP and When to use TUN ? What types of traffic will pass with both mode TAP vs TUN ?
I would appreciate if someone told me the practical difference between TAP vs TUN mode when use with OpenVPN. When to use TAP and When to use TUN ? What types of traffic will pass with both mode TAP vs TUN ?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask MS SQL Server Expert
Answered on Nov 29, 2021
TAP is basically at Ethernet level (layer 2) and acts like a switch whereas TUN works at the network level (layer 3) and routes packets on the VPN. TAP is bridging whereas TUN is routing. From the OpenVPN Wiki:
TAP benefits:
TAP drawbacks:
TUN benefits:
OpenVPN TAP vs TUN OpenVPN Tap
OpenVPN tap is the protocol that you should enable if you are looking to bridge two computers only using the ethernet cable for the connectivity between them. With this being the bottom line of using tap, on the OpenVPN setup, you should also have a better idea of the technicalities that are involved so that you can make it useful to its best abilities and also analyze the risks and contingencies that you will be facing as well.
OpenVPN Tun
Tun is another protocol that you can choose on the OpenVPN while bridging two devices through ethernet to create a virtual host server to divert the information. It is somehow similar to the tap as it does the same task, but with a bit more sophistication and neatness. That means you don’t have to deal with all the subnet IP masking and things like that because OpenVPN will take care of all that for you on its own and help you optimize the perfect settings that might be needed for the OpenVPN to run.
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step SQL Server guides from industry experts
Common SQL Server interview questions, answered
Guides, tips and career advice on SQL Server from JanBask experts.
SQL Server Top 75 SSAS Interview Questions and Answers For Beginners & Experts
Prepare for your SSAS interview with our comprehensive guide featuring 75 top SQL Server Analysis Services interview questions…
SQL Server How to Become a SQL Database Administrator?
How to become a sql database administrator In 2025, discover what these professionals do, explore how much they earn and learn…
SQL Server OLAP vs OLTP: Key Differences, Architectures, Performance & Real-World Examples
Compare OLTP vs OLAP with clear definitions, architecture diagrams, real-world examples, and FAQs. Learn when to use each system…
SQL Server 70+ Most Asked SSIS Interview Questions for Freshers & Experienced
Prepare for your next SQL Server Integration Services (SSIS) interview with our top 70+ SSIS interview questions and answers.…