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?
Results after firewall restart (service restart_firewall):
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: