This project show how to implement simple bridge via tun interface. The main program(bridge.c) will create two tun interface: tun0, tun1. Then keep forwarding IP packet between the two interfaces. To demonstrate the bridging functionality, use the setup.sh to create a seperate network namespace and move the tun1 into that namespace. Then setup.sh will config address for each interface. After that we can ping 10.10.0.100 from host network and ping 10.10.0.200 from ns0 network namespace.
-
Notifications
You must be signed in to change notification settings - Fork 0
dlee-libo/tun-bridge
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published