Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want to redirect incoming packets to another and another host that packets redirects to change destination of packets and send them back to the sender!like load balancers with DSR.
we have 3 Computer.computer1 send a tcp packet to computer 2 with source 1 and destination 2.computer 2 send received packet with source 1 and destination 3 to computer3.and computer3 send packets to computer1 with source 3 and destination 1.i used netfilter to get packets and change mac and ip and send them with dev_queue_xmit but packets drop in hub/switch.is better way to do this with modules?!
or source code to see?
i want to redirect incoming packets to another and another host that packets redirects to change destination of packets and send them back to the sender!like load balancers with DSR.
i'm so so sorry about my english!
i know what iptable is.but i want to write module.
in fact i want to implement an load balancer(one-armed , direct server return "DSR",layer 2 or 3) with netfilter(just for packet capturing in layer 2 of tcp/ip,PREROUTING).
1 - i got packets
2 - i changed destination ip and mac to ip and mac of server
3 - i sent it with dev_queue_xmit and this function return 0(successful)
but no packet receive on server!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.