I'm in the middle of some work on my fork right now, but will take a look later.
Probably not relevant, but TEE is present on my Ubuntu box but that is running iptables v1.6.1.Wanted to make sure I didn't miss something....Why ASUS didn't update iptables along with the new kernel, I don't know (the 2.6.36 kernel is using 1.4.14).
Probably not relevant, but TEE is present on my Ubuntu box but that is running iptables v1.6.1.
root@f:~# modprobe xt_TEE
root@f:~# iptables -V
iptables v1.6.1
What is?That's odd:
Oops, I read router instead of Ubuntu.What is?
Thanks John.@GHammer
Try the test5 build at the same location.
https://1drv.ms/f/s!Ainhp1nBLzMJghJlb7j1wnqac97q
I built TEE into the kernel, so no need to load any modules. Also, please verify that iptables-save is working correctly
iptables-save -t mangle
admin@RT-AC86U-6828:/tmp/home/root# iptables-save -t mangle
# Generated by iptables-save v1.4.15 on Fri Nov 9 23:02:42 2018
*mangle
:PREROUTING ACCEPT [5614:807111]
:INPUT ACCEPT [3813:623631]
:FORWARD ACCEPT [1797:182888]
:OUTPUT ACCEPT [9019:1270012]
:POSTROUTING ACCEPT [10818:1453384]
-A PREROUTING -s 10.10.100.121/32 -j TEE --gateway 10.10.100.100
COMMIT
# Completed on Fri Nov 9 23:02:42 2018
iptables -t mangle -A PREROUTING -s 10.10.10
0.121 -j TEE --gateway 10.10.100.100
23:12:22.263031 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 3407+ A? rtupdate.wunderground.com. (43)
23:12:23.262934 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 20770+ A? rtupdate.wunderground.com. (43)
23:12:24.263022 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 41674+ A? api.ambientweather.net. (40)
23:12:25.263295 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 52540+ A? rtupdate.wunderground.com. (43)
23:12:25.263301 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 27642+ A? api.ambientweather.net. (40)
23:12:25.263420 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 63174+ A? api.weathercloud.net. (38)
23:12:26.262807 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 17361+ A? api.weathercloud.net. (38)
23:12:27.262797 IP 10.10.100.121.4096 > google-public-dns-a.google.com.domain: 29945+ A? api.ambientweather.net. (40)
23:12:27.381554 IP 10.10.100.121.4096 > one.one.one.one.domain: 11279+ A? rtupdate.wunderground.com. (43)
iptables -t mangle -A PREROUTING -s 10.10.100.121 -j TEE --gateway 10.10.100.100
iptables -t mangle -A POSTROUTING -d 10.10.100.121 -j TEE --gateway 10.10.100.100
That is indeed the goal. Ideally changing the port as well but currently just to work.Late to the party, but what is the objective here? To monitor all packets sent by the device while still allowing them to reach their intended destination?
I'm probably missing something, but why not -j LOG the packets, and then use a script to scrape them from syslog to somewhere else?That is indeed the goal. Ideally changing the port as well but currently just to work.
The packets are used by a program that listens not read.I'm probably missing something, but why not -j LOG the packets, and then use a script to scrape them from syslog to somewhere else?
The objective is not just to monitor the traffic but the capture all the data. LOG can't do that.I'm probably missing something, but why not -j LOG the packets, and then use a script to scrape them from syslog to somewhere else?
gotchaThe objective is not just to monitor the traffic but the capture all the data. LOG can't do that.
iptables -t mangle -A PREROUTING -s 10.10.100.6 -j TEE --gateway 10.10.100.100
iptables -t mangle -A POSTROUTING -d 10.10.100.6 -j TEE --gateway 10.10.100.100
iptables -t mangle -A PREROUTING -s 10.10.10 0.6 -j TEE --gateway 10.10.100.100
iptables: No chain/target/match by that name.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!