What's new

Duplicate packets from ip address

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

DAWOOD6283

New Around Here
I am trying to figure out how to duplicate packets from an IOT device that send my electricity usage to a remote server. I am testing a local server I build and want to duplicate the packets the device sends. From the router it send traffic to port 80. I just want to duplicate and forward traffic from 109.169.55.159 to 192.168.1.50.

tcp192.168.1.8164873109.169.55.15980TIME_WAIT
tcp192.168.1.8153611109.169.55.15980TIME_WAIT
tcp192.168.1.8163397109.169.55.15980TIME_WAIT
tcp192.168.1.8157259109.169.55.15980TIME_WAIT
tcp192.168.1.8156818109.169.55.15980TIME_WAIT
 
You can do with iptables on the RT-AC68U but you need to disable NAT acceleration otherwise it won't work. That will restrict your maximum download speed to probably less than 250Mbps. What is your current internet speed?
 
I only get about 210Mbps, so good there.
I tried
iptables -t mangle -A PREROUTING -d 192.168.1.81 -j TEE --gateway 192.168.1.50
iptables -t mangle -A PREROUTING -s 192.168.1.81 -j TEE --gateway 192.168.1.50

but get an error
 
You can do with iptables on the RT-AC68U but you need to disable NAT acceleration otherwise it won't work. That will restrict your maximum download speed to probably less than 250Mbps. What is your current internet speed?
Dont forget, the bulk of the routers CPU will be exhausted in the 250mbps transactions as well.
 
RT-AC68U-58B0:/tmp/home/root# iptables -t mangle -A POSTTROUTING -d 192.168.1.81 -j TEE --gateway 192.168.1.50
iptables: No chain/target/match by that name.
 

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