Forwarding the IP frame from tun0 to eth0
Hi all,
I am working on TUN/TAP for tunnelling IP packets from the application to the network. I am able to open the tun device and assign the IP address to tun0. The steps I followed are given, 1. Opened the tun device /dev/net/tun 2. Assigned a IP address to the tun0 using ifconfig tun0 10.66.67.247 3. Added to the routing table using the following command route add -host 10.66.67.247 dev tun0 4. I have loaded the tun device using modprobe tun and I was able to see the device when I gave the command lsmod | sort Code:
tsdev 7520 0 Code:
10.66.67.247 * 255.255.255.255 UH 0 0 0 tun0 7. finally I wrote a IP frame to tun0 device . The IP packet was for opening a ftp session on other machine (10.66.67.220. I could seee the packet received in tun0 device using ifconfig and wireshark. Code:
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 My question is, how do I route the IP packets recevied in tun0 device to the network via eth0 and vice versa. Is there any package or driver i need to install inorder to configure the tun device for routing it to the eth0 Thanks you in Advance Alan J |
johnniealan,
Ever figure this one out? |
All times are GMT -5. The time now is 09:48 PM. |