What's new

port mirroring and dns traffic

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

BartP

New Around Here
Hi all,

I executed the following commands in my dd-wrt flashed router to set up port mirroring:

xxx@xxx:~# iptables -t mangle -A POSTROUTING -j ROUTE --tee --gw 192.168.1.3
xxx@xxx:~# iptables -t mangle -A PREROUTING -j ROUTE --tee --gw 192.168.1.3

As far as I've been able to ascertain, all ip-packets are mirrored except for dns stuff. Anyone know why?

Thanks,
Bart
 
Hi all,

I executed the following commands in my dd-wrt flashed router to set up port mirroring:



As far as I've been able to ascertain, all ip-packets are mirrored except for dns stuff. Anyone know why?

Thanks,
Bart

What did you do to determine that dns was not passing?

And I doubt the order matters but in case it does I found the strings arranged this way in a guide online.

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

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

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Top