IP traffic monitoring does not work once OpenVPN client is activated

Discussion in 'Tomato Firmware' started by Varso1, Mar 9, 2019.

  1. Varso1

    Varso1 New Member Member


    IP traffic monitoring works great as long as the OpenVPN Client is off. Once the client is started, it takes about 15 seconds before the new VPN IPs are assigned. During that 15 seconds laps, The router is using the ISP IPs. I can monitor the incoming and outgoing IP traffic but once the router switches to my VPN IPs, I can only monitor outgoing traffic, incoming traffic is ignored. Stopping and restarting the IP traffic monitoring service did not fix the problem.

    To me, it looks like a design flaw in the OpenVPN client or IP traffic monitoring modules. As I do not need to reboot my router often, does anyone would know of a way to force the IP traffic monitoring to use the VPN IPs. As future updates on Tomato look unlikely, I hope a knowledgeable person would be kind enough to suggest possible system commands that might fix my problem?

  2. Sean B.

    Sean B. Network Guru Member

    Are you redirecting internet traffic through the VPN?
  3. Varso1

    Varso1 New Member Member


    Yes I am. I tried with and without. Same result
  4. Sean B.

    Sean B. Network Guru Member

    As far as I can see in the code, there is no provisions for changing the monitored interface. It's designed around what goes out/what comes in through the WAN interface ( vlan 2 ). The fact you're even catching outbound traffic I believe is a quirk, and only happens because the outbound traffic initially "looks" like it will be going out the WAN, but is then redirected through the VPN. This is not a bug, it is by design and to change it would be a feature request.
  5. Varso1

    Varso1 New Member Member

    Thanks for your reply. It makes sense.

    The reason I need this feature is that I live in the country and I have the cable up to my house but not my neighbour so he connects to my house via WI-FI and we share our Internet connection. As I have no way of knowing what he is doing online, I installed the VPN and I need a way to know how much data he uses if we go above our monthly allowance. Just measuring Wi-Fi data would catch about 98% of his consumption. He is connecting with 1 windows 7 PC and 1 Android device. So far we average about 85% of our monthly plan and he is responsible for about 75% of it. It is useful hard data when we will need to change our data plan. I live in Canada which has one of the highest Internet rates in the industrial world.:(

    Could you think of an alternative way to accomplish my requirement?
  6. Sean B.

    Sean B. Network Guru Member

    Configure a flash drive or USB HDD as an optware/entware partition ( a search will turn up multiple how-to's ), then you can use the package manager to install programs that run on your router from repositories. A quick scan through the package list shows several that would likely do what you're looking for, here's an example:

    root@Storage:/tmp/home/root# ipkg info vnstat
    Package: vnstat
    Version: 1.10-4
    Depends: uclibc-opt
    Status: unknown ok not-installed
    Section: net
    Architecture: arm
    Maintainer: NSLU2 Linux <nslu2-linux@yahoogroups.com>
    MD5Sum: 19608572feae4a93feb88b842a9ead03
    Size: 72293
    Filename: vnstat_1.10-4_arm.ipk
    Source: http://humdi.net/vnstat/vnstat-1.10.tar.gz
    Description: Network traffic monitor with log
    And not being hard coded into the firmware, you can have it monitor whatever interface you want.
  7. Varso1

    Varso1 New Member Member

    Thank you for your suggestion. I am not certain I will succeed but I know it will be fun and one thing for sure, I will be a lot more knowledgeable after.

    Already googling!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice