Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

can anyone tell me the use of tun interface in openvpn? as far as i read, it is used to tunnel all the traffic from the PC over the ssl tunnel. But incase of VPN, i suppose all the traffic initiated from remote-pc should have the ip-address assigned from the private network by the ssl-vpn server. So does tun interface helps in identifyin the source-ip to be used for all traffic from remote pc? Or is there any doc explains how the openvpn client side works for better understanding?

Thanks, summa.

share|improve this question

tun or tap devices are the network adapters of the openvpn tunnel, like eth0 is for the LAN or tap adapter for a modem connection. They are assigned an IP by the vpn server.

principle behind openvpn tunnels

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.