Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Sir I am trying to capture the IPv6 packet through libpcap utility.
I am sending the packet to the IPv6 host in my subnet , and want that
all the packets should be redirected to loopbackaddress, where it can
be captured.But the packets destined for the destination address are
not taking the loopback address.I have statically configured the
gateway of the destination as ::1.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Packet on local subnet are not routed through gateway, they are sent directly. But what are you trying to achieve? If you are root on localhost, run tcpdump or wireshark, catching well-formed outgoing IP packets is usually easy with such applications.
I am developing Fragroute for IPv6, for which i am redirecting the ipv6 packets to loopback address and then where i am manipulating the fields of the packet.And then resending them to there original destination.
But firstly I have to redirect them to the loopback address, can you please suggest something for this.Its urgent!!!
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Look at what tcpdump does.. Use libpcap. You do not need to change gateway - it doesn't work. You can try to achieve something by weird firewall rules, but actually you need just to use libpcap and simply capture the packets.
Actually i have to send back the packets from eth0 interface to the loopback address.
Because if i capture the packet at eth0 interface then original packets will also be sent which i dont want,
I want that only the packets manipulated by me to be sent.
I am also searching for how to know the MAC address of the IPv6 destination, if anyone can please come out with this too..........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.