<html>
<body>
Does anyone have softflowd running successfully on an open-source dd-wrt
firmware router? I am 99% done with getting it working, but I'm
running into a problem "seeing" all the network traffic I wish
to monitor. It is probably an IPTables or routing /filtering issue
or how I've configured the IPs of my interfaces, but I can't seem to wrap
my head around the exact problem. If I can figure this out, it is
really going to be a nice way to send NetFlow data to a collector from a
cheapo $50 router.<br><br>
I was able to install the Optware package for softflowd on the router
(DD-WRT v24 RC-7 (03/13/08) std). I also installed tcpdump to make
sure it wasn't an issue with softflowd (it isn't.) The problem is
I'm only seeing broadcasts on the interface I'm monitoring (no
traffic). (When setup on a full Linux box, I never had to do
anything to the interface to monitor all the traffice.) For some
reason on the dd-wrt, there is some kind of filtering happening that is
preventing softflowd and tcpdump from seeing all the traffic.<br><br>
dd-wrt configuration:<br><br>
[WAN] --- Port 0 --------- Vlan1 ------- Eth0<br>
[Port1] --- Port 1 -------- Vlan0 -------- Eth0<br>
[Port2-4] - Port2-4 ------ Vlan0 * Default Vlan for non-tagged
traffic<br><br>
So I have tried to use all the Ports for monitoring and many
configurations of Vlans, but no luck. I have also tried putting the
interfaces in permisc mode with ifconfig, but no luck. It seems the
router is filtering all traffic. The firewall and gatway settings
are off, the thing should be able to see all the traffic.<br><br>
ifconfig:<br>
br0s are for the Wireless (eth1. WLAN), that doesn't come into play for
this config. Below I have added a second vlan, but no
luck.<br><br>
br0 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AE<br>
inet
addr:192.168.0.11 Bcast:192.168.3.255 Mask:255.255.252.0<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:64919
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:29719
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0<br>
RX bytes:4611647
(4.3 MiB) TX bytes:12926366 (12.3 MiB)<br><br>
br0:0 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AE<br>
inet
addr:169.254.255.1 Bcast:169.254.255.255
Mask:255.255.0.0<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br><br>
eth0 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AE<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:70842
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:99384
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:1000<br>
RX bytes:6515481
(6.2 MiB) TX bytes:18729587 (17.8 MiB)<br>
Interrupt:4<br><br>
eth1 Link encap:Ethernet HWaddr
00:1A:70:FE:49:B0<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:0
errors:0 dropped:0 overruns:0 frame:1051593<br>
TX packets:56157
errors:2011 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:1000<br>
RX bytes:0 (0.0
B) TX bytes:4376609 (4.1 MiB)<br>
Interrupt:2 Base
address:0x5000<br><br>
lo Link encap:Local
Loopback<br>
inet
addr:127.0.0.1 Mask:255.0.0.0<br>
UP LOOPBACK
RUNNING MULTICAST MTU:16436 Metric:1<br>
RX packets:5896
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:5896
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0<br>
RX bytes:566715
(553.4 KiB) TX bytes:566715 (553.4 KiB)<br><br>
vlan0 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AE<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:60373
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:29694
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0<br>
RX bytes:4454776
(4.2 MiB) TX bytes:7696374 (7.3 MiB)<br><br>
vlan1 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AF<br>
inet
addr:192.168.4.19 Bcast:192.168.4.23
Mask:255.255.255.248<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:392
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:9269
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0<br>
RX bytes:24430
(23.8 KiB) TX bytes:428006 (417.9 KiB)<br><br>
vlan2 Link encap:Ethernet HWaddr
00:1A:70:FE:49:AE<br>
UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:10087
errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:60451
errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0
txqueuelen:0<br>
RX bytes:765828
(747.8 KiB) TX bytes:9838153 (9.3 MiB)<br><br>
<br><br>
default IPTables:<br><br>
Chain INPUT (policy ACCEPT)<br>
target prot opt
source
destination<br><br>
Chain FORWARD (policy ACCEPT)<br>
target prot opt
source
destination<br>
ACCEPT 0 --
anywhere
anywhere<br>
logdrop 0 --
anywhere
anywhere
state INVALID<br>
TCPMSS tcp --
anywhere
anywhere
tcp flags:SYN,RST/SYN tcpmss match 1461:65535 TCPMSS set 1460<br>
lan2wan 0 --
anywhere
anywhere<br>
ACCEPT 0 --
anywhere
anywhere
state RELATED,ESTABLISHED<br>
ACCEPT udp --
anywhere
base-address.mcast.net/4 udp<br>
TRIGGER 0 --
anywhere
anywhere
TRIGGER type:in match:0 relate:0<br>
trigger_out 0 --
anywhere
anywhere<br>
ACCEPT 0 --
anywhere
anywhere
state NEW<br><br>
Chain logaccept (0 references)<br>
target prot opt
source
destination<br>
ACCEPT 0 --
anywhere
anywhere<br><br>
Chain logdrop (1 references)<br>
target prot opt
source
destination<br>
DROP 0 --
anywhere
anywhere<br><br>
Chain logreject (0 references)<br>
target prot opt
source
destination<br>
REJECT tcp --
anywhere
anywhere
tcp reject-with tcp-reset<br><br>
Thanks for any info. or comments.<br><br>
<br>
<x-sigsep><p></x-sigsep>
<font color="#000080">Joe Courtney<br>
</font>
<p><span style="font-family:'Arial';font-size:8pt;">**********************************************************</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">This email and any files transmitted with it are</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">proprietary, confidential and intended solely for</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">the use of the individual or entity to whom they</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">are addressed. If you have received this email</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">in error please notify the system manager.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">**********************************************************</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"> </span></p></body>
</html>