What's new

(Solved) iptables Entry Not Applied 86U 384.8

  • 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!

GHammer

Very Senior Member
I am trying to get traffic from one device to be available at a second device so I can sniff for certain packets. The traffic from the first device still needs to continue, not just be forwarded to the second device.

I believe these are the iptables entries I need to do this. However, entering them directly or using a script does nothing when I list iptables.
I'm sure I have went wrong somewhere, but where?

Code:
/jffs/scripts/firewall-start
#!/bin/sh
iptables -t mangle -A PREROUTING  -s 10.10.100.121 -j ROUTE --tee --gw 10.10.100.115
iptables -t mangle -A POSTROUTING -d 10.10.100.121 -j ROUTE --tee --gw 10.10.100.115

Results after firewall restart (service restart_firewall):
Code:
Oct 27 12:17:22 custom_script: Running /jffs/scripts/firewall-start (args: eth0)

admin@RT-AC86U-6828:/tmp/home/root# iptables -L | grep 115
admin@RT-AC86U-6828:/tmp/home/root#
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

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