Posts filed under 'Linux'

Map IP to BGP AS number python script

This morning I felt on http://nmap.org/book/nse-scripts-list.html then wrote a tiny tool in python to map IP with an AS number, country, AS peers and subnet.

Output example: python ip2asn.py 194.140.247.6

AS Numbers:
BGP: 194.140.247.0/24 | Country: GB
Origin AS: 41156 SUPINFO-AS SUPINFO - International Institute of Information Technology
Peer AS: 8928 12600

Continue Reading Add comment octobre 24th, 2008

OpenVPN troubleshooting TUN/TAP no such device

Like me you were fucked up by this message when you run openvpn on your Linux :

Sun Jul 6 09:22:40 2008 us=895436 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Sun Jul 6 09:22:40 2008 us=895496 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Sun Jul 6 09:22:40 2008 us=896534 Cannot allocate TUN/TAP dev dynamically
Sun Jul 6 09:22:40 2008 us=896566 Exiting

As a basic google addict, I look for this message in order to find troubleshooting help. As always, there are a ton of useless comments by Linux wannabe that tainted the power and pipes of Internet with non-sense answers.

Finally, I found by myself. I’ve recently build my own kernel module for networking stuff. Hence, the modules.dep file was broken.

I just rerun depmod -a in the /lib/modules/kernel-version path, modprobe don’t yell anymore and openvpn start.

Add comment juillet 6th, 2008


Text Size:  Default Text Size  B  Text Large  

Calendar

novembre 2008
L Ma Me J V S D
« oct    
 12
3456789
10111213141516
17181920212223
24252627282930

Posts by Month

Posts by Category

Liens externes

Live Blog Stats