iptables Command
I'm trying to duplicate packets from that are going to one IP on my network and send them to another IP. I have an ASUS router and I can terminal into it using Putty. I run the following commands and I receive error "iptables: No chain/target/match by that name." I've double-checked the IP addresses and they are correct. From what I've been able to gather, this should duplicate all packets from 192.168.128.40 and send them to 192.168.128.143.
Code:
iptables -t mangle -A PREROUTING -d 192.168.128.40 -j TEE --gateway 192.168.128.143 |
The error indicates that you don't have the TEE extension.
On my Fedora 28: Code:
$ modinfo xt_TEE |
It appears that the commands below work for some reason. I don't understand Linux or this command enough to know why. I just dug around the internet and finally was able to put these together.
Code:
iptables -t mangle -I PREROUTING -s 192.168.128.40 -j ROUTE --gw 192.168.128.143 --tee |
All times are GMT -5. The time now is 08:23 AM. |