Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I am trying to connect my iPAQ PDA (running Familiar linux) to internet through a laptop (Ubuntu Feisty). The connection via USB works fine (usb0 interfaces), but I am stuck on bluetooth, where the laptop won't forward IP packets from bnep0 interface through eth0 to the outside world.
Here is some info and what I did:
laptop: eth0 - 192.168.0.164 (connected to router which is 192.168.0.1)
bnep0 - 192.168.1.1
PDA: bnep0 - 192.168.1.2.
I set the connection using pand:
laptop: pand --listen --role NAP --master -autozap
PDA : pand --connect 11:11:11:11:11:11 --service NAP --autozap
I tried various options for pand, none works.
I brought both interfaces up using these settings in /etc/network/interfaces:
laptop: iface bnep0 inet static
PDA: iface bnep0 inet static
I have enabled IP forwarding and masquerade:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.2 -j MASQUERADE
I can ping both devices with each other, but PDA's pinging won't get outside the laptop (in fact, I can ping 192.168.0.164 [laptop's eth0] but not 192.168.0.1 [router]).
I don't think that problem is in routing table, since the exact same setting works when pda connected through USB (usb0 interface).
It behaves like the laptop is not able to "convert" HCI packets to ethernet packets. But since I don't know anything about this topic I ask on this forum. Any help is appreciated. Thank you, kind regards Kuni
The iptables line is probably one of the longer iptables script you have. You may be dropping the packets comming from bnep0. Check if you have rules that base on the interface name, not source address. They may cause the problem you have.