Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Couple of Q's #8

Closed
Keithsc opened this issue Aug 25, 2014 · 5 comments
Closed

A Couple of Q's #8

Keithsc opened this issue Aug 25, 2014 · 5 comments

Comments

@Keithsc
Copy link

Keithsc commented Aug 25, 2014

Hi, This is a great plugin so thank you :>) We have a both our intranet and internet logging in to the same piwik installation, so untill we installed your plugin we couldn't differenciate traffic from either network. We can now :>)

I had to comment out the 'noMatch' / 'unknown' in IntranetGeoIP.data.php as with it enabled we did't collect Internet stats.

The main IP Subnet we use is 10.240.0.0/12 and I want to use that as a catchall but I want to also want to differentiate subnets so e.g. our building is 10.248.3.0 which is a subnet of 10.240.0.0/12.
How would I go about defining this in the IntranetGeoIP.data.php file ?

We have a spreedsheet of the IP's used but there are gaps that we need to fill so we deffinatly want to get a Intranet catch all for specific ranges.

Also would it be possible to use a different colour for Internet / Intranet traffic on the Piwik Maps ?

Thanks again for the plugin.
Keith

@ThaDafinser
Copy link
Owner

Thank you.

The one for all is currently not possible.
But could be easily implemented...just remove the break in the foreach so multiple matches are possible and define your ip range with the field.
(Order is important then, if the field is used teice?

Different colours on the map is difficult since its a own plugin.

@ThaDafinser
Copy link
Owner

@Keithsc
Try to remove this line:
https://github.com/ThaDafinser/IntranetGeoIP/blob/master/IntranetGeoIP.php#L114

Then add following in your config:

return [
    [
        'visitorInfo' => [
            //use a visitor field u like...
            'location_provider' => 'intranet'
        ],
        'networks' => [
            '10.240.0.0/12'
        ]
    ]
];

Tell me if it works.

@ThaDafinser
Copy link
Owner

@Keithsc does it work or not?

@Keithsc
Copy link
Author

Keithsc commented Aug 29, 2014

Hi Martin, Sorry for not replying sooner. Been busy the last few days out of my office so havent had a change to try the changes. I hope to get some help from a college later today to look at how the plugin works etc and to try your changes.

Our server network / environment is a bit unusual so thats not helping us get started but once we get this working properly it should be really interesting as we plan to map the N3http://en.wikipedia.org/wiki/N3_%28NHS%29 network.

Keith

On 29/08/14 08:38, Martin Keckeis wrote:

@Keithschttps://github.com/Keithsc does it work or not?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-53846041.


This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere


@ThaDafinser
Copy link
Owner

No feedback anymore...closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants