LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Writing a virtual NIC (https://www.linuxquestions.org/questions/programming-9/writing-a-virtual-nic-4175682271/)

eylinux 09-17-2020 05:18 AM

Writing a virtual NIC
 
Hello everybody,
I want to create a virtual NIC to redirect outgoing packets to a server (basically I'm writing a VPN client).

What do you recommend me to read? What do I need to know? What do I need to learn?

Also, I want this to be a kernel module just for fun and practice.

Thanks ahead.

mikelw 09-17-2020 11:07 AM

I'd recommend _Linux_Device_Drivers_, by Jonathan Corbet, Alessandro Rubini, & Greg Kroah-Hartman. I believe the 3rd Edition is the latest, and it is a bit old (2005), but still good. There are many other good books on Linux device drivers and kernel programming. Another great resource for something similar to a VPN client would be the documentation and source code for OpenVPN:
https://sourceforge.net/projects/openvpn/
https://forums.openvpn.net/
http://community.openvpn.net/openvpn


All times are GMT -5. The time now is 05:07 AM.