Hi,
I am trying to mirror the traffic sent from my weatherstation (on router 1) to a website (Weather Underground), to a Raspberry PI (On router 2).
I found a website that shows how to mirror ALL traffic from router 1 to the IP of the Raspberry PI , using the following commands (Executed on Router 1):
iptables -I PREROUTING -t mangle -j ROUTE --gw 192.168.1.4 --tee
iptables -I POSTROUTING -t mangle -j ROUTE --gw 192.168.1.4 --tee
Unfortunately too much traffic gets sent to the Raspi's IP 192.168.1.4, flooding it an making it unreachable (Forcing me to stop the mirroring).
My question:
How can I modify the commands so that ONLY the outgoing traffic from the weather station to Weather Underground website gets forwarded to my PI (On router 2)
Any help is greatly appreciated!
Fredster
I am trying to mirror the traffic sent from my weatherstation (on router 1) to a website (Weather Underground), to a Raspberry PI (On router 2).
I found a website that shows how to mirror ALL traffic from router 1 to the IP of the Raspberry PI , using the following commands (Executed on Router 1):
iptables -I PREROUTING -t mangle -j ROUTE --gw 192.168.1.4 --tee
iptables -I POSTROUTING -t mangle -j ROUTE --gw 192.168.1.4 --tee
Unfortunately too much traffic gets sent to the Raspi's IP 192.168.1.4, flooding it an making it unreachable (Forcing me to stop the mirroring).
My question:
How can I modify the commands so that ONLY the outgoing traffic from the weather station to Weather Underground website gets forwarded to my PI (On router 2)
Any help is greatly appreciated!
Fredster