Hi guys,
I'm currently working with Python and sockets, and I've had a strange problem for a few days now.
Basically the idea is to:
1) Set up tun device
2) Route packets to that device
3) Read packet from there
4) Send that packet to eth0
My script "works" now, like I it does all those things that I mentioned. The problem is, I can't get any response from the system to my packets. If I for example test script with ping, wireshark shows that packets that I send are valid but system won't send any response.
The script with some comments is here:
http://phew.pastebin.com/m2b3041dd
I have no idea if I'm doing something totally wrong, or if there is some strange feature in kernel that I just don't know.
Thanks,
Antti