Jump to content

Port Mirroring


sickduck

Recommended Posts

Does anyone know how to mirror the LAN port from the WAN port? What I am trying to do is to monitor all wireless traffic in realtime from Wireshark. (I want this in realtime so I can't use tcpdump.) The pineapple gets internet from the WAN port. I used network manager to set up the internet sharing to br-lan. I would like the LAN port to be a monitor/mirror port to see the wireless traffic. I did some googling and came up with the following iptables commands but it doesn't seem to be working. Any ideas, please?

iptables -A PREROUTING -t mangle -j ROUTE --gw 172.16.42.42 --tee

iptables -A POSTROUTING -t mangle -j ROUTE --gw 172.16.42.42 --tee

Link to comment
Share on other sites

Yes, you need a layer 3 switch or a network switch that has port mirroring capabilities. Usually a smart or managed switch will have this feature.

Link to comment
Share on other sites

Yes, you need a layer 3 switch or a network switch that has port mirroring capabilities. Usually a smart or managed switch will have this feature.

If I understand the OP correctly, that is wrong.

If you take a look at Digininja's Interceptor, you will not find the exact solution but a similar one. I am currently working on a pineapple version for just this though.

Best Regards,

Sebkinne

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...