Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: wolvesmad on October 05, 2020, 02:36:55 PM

Title: DSLStats - remote access
Post by: wolvesmad on October 05, 2020, 02:36:55 PM
I have a ZyXEL VMG1312-B10A connected via Cat6 to my Asus router.

At the moment, when I want to check the stats, I plug myself into the ZyXEL, set a static IP and use DSL stats - which I think is a great tool.

The issue I have is the ZyXEL is in the hall and it's not practical to sit in there on my laptop. Secondly i'd like some kind of email alerting or 24 hour monitoring.

What is the easiest way of doing this? I'm guessing a raspberry PI plugged into the Asus?

Secondly, how do I get the Asus to see the ZyXEL without running a second cable as that's a hassle.

Title: Re: DSLStats - remote access
Post by: Weaver on October 05, 2020, 05:19:10 PM
Depending on the capabilities of your router, it should be possible to re-route traffic from your modem’s admin interface through the router so that you can access it from anywhere on your network and this would solve the one cable thing. I managed to do this, with a bit of help, but it was a bit of a nightmare since I didn’t know what I was doing and ended up using what one might call a brute force approach to traffic redirection; I also have four VM1312-B10As connected to my router.

I can’t offer any practical help not knowing the innards of that particular router or the IP topology of your network.
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 05, 2020, 05:31:14 PM
I have attempted it before and failed but that was before I got the asus.

Zyxel is set up as a PPPOE bridged modem on 192.168.1.2 connected via etho1 to......

WAN port on Asus router, 192.168.1.1.  DHCP range is 192.168.1.100-240
Title: Re: DSLStats - remote access
Post by: skyeci on October 05, 2020, 06:12:48 PM
Plug the pi into the zyxel via the Ethernet connection and configure the lan port to be in the same range as zyxel. Then use the pi WiFi to connect to the asus. Use vnc on the pi to look at the pi from wherever in home or enable dsl stats webserver or use both options...

My pi's look at multiple networks. No problems
Title: Re: DSLStats - remote access
Post by: j0hn on October 05, 2020, 06:21:13 PM
Plug the pi into the zyxel via the Ethernet connection and configure the lan port to be in the same range as zyxel. Then use the pi WiFi to connect to the asus. Use vnc on the pi to look at the pi from wherever in home or enable dsl stats webserver or use both options...

This is how i ran my dslstats for a couple years.
I powered my RPi 3B from my Zyxels usb 2 port, no problem what so ever.
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 05, 2020, 08:02:51 PM
Could really do with the PI behind the Asus really. So plugged into that via ethernet.
Title: Re: DSLStats - remote access
Post by: Weaver on October 07, 2020, 12:19:33 AM
As I said, it is possible to get things set up so the router will redirect admin traffic to and from the modem into the main LAN. There are previous threads (somewhere) describing how I did it, but your router is different from mine and I had a non-NAT IPv4 layout with a routed global static /26 mapped to the main LAN and while modem’s admin i/f is at 192.168.n.1 where n is 1,2,3 or 4 for each modem and the router is at 192.168.n.254 on the 2-node LAN (short ethernet cable) that contains just the modem and router. I don’t have enough ports on my router for four modems so I am using a switch as a VLAN MUX/DEMUX and the router speaks VLANs one for each modem for all the ethernet traffic.
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 08, 2020, 07:46:56 PM
A mate has given me a Pi 3 and i've set it up and plugged it into the ZyXEL. It has a static address and to the Zyxel and also connected via WLAN.

It appears to be attempting to send all traffic over eth0.

How do I set the internet traffic to be routed via WLAN?
Title: Re: DSLStats - remote access
Post by: skyeci on October 08, 2020, 07:58:23 PM
I haven't made any special settings on mine. It just works.

Have you edited the dhcpcd.conf file to sort out your ip address for the physical connection. The WiFi connection should be getting an ip address and default gateway automatically from your dhcp server (router etc)
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 08, 2020, 08:31:03 PM
Physical address is set statically. I can access the log in page of the Zyxel, WiFi is connected and an address is showing but I cannot access external sites.

default         RT-AC68U-A658   0.0.0.0         UG    303    0        0 wlan0
default         192.168.1.2     0.0.0.0         UG    350    0        0 eth0
Title: Re: DSLStats - remote access
Post by: skyeci on October 08, 2020, 09:43:56 PM
I would suggest you edit the file I mentioned and input static ip address's for both adapters. You can also specify the default gateway etc.

example of mine which is using the internal ethernet adapter and a usb ethernet adapter so I have 2 physical ethernet adapters as I prefer that. You will need to change the ip's to suit your configuration of your network.

command to edit is
sudo nano /etc/dhcpcd.conf

this bit is about half way down the file

# Example static IP configuration:
interface eth1  (this is my router based network)
static ip_address=192.168.1.3/24
static routers=192.168.1.2



interface eth0  (this is my modem connection)
static ip_address=192.168.0.5/24

you will need to name one of them whatever the wifi adapter is called on the pi - possibly "Wlan0"
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 07:23:57 AM
Is it worth moving the Zyxel over to 192.168.0. like yours is?
Title: Re: DSLStats - remote access
Post by: Chunkers on October 09, 2020, 07:49:45 AM
I have two zyxel modems on the wan side of my pfsense router.  The only way I could get them to be accessible on my LAN as modems was to set each modem up on a completely separate network range e.g. 10.X.X.X and 172.X.X.X

Once I did that and configured separate interfaces for each in pfsense then I was able to access them on my LAN, its messy though, not sure whether you would be able to do the same with your Asus

Good luck

Chunks
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 09:34:46 AM
As the Zyxel is 192.168.1.2 and the Asus 192.168.1.1 is it just routing everything on 192.168.1.x down the one NIC as it's in that range?

Tempted to drop the Zyxel down to 192.168.0.1 later and see if that makes a difference.

I can't easily run a second wire to the Asus from the Zyxel, which is annoying as that would be the quickest step forward.

Title: Re: DSLStats - remote access
Post by: skyeci on October 09, 2020, 01:36:25 PM
Why don't you put the modem in a 192.168
0.x range. I do this and its not a problem.

Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 03:01:33 PM
Why don't you put the modem in a 192.168
0.x range. I do this and its not a problem.

Will give it a go when I get home and see how it goes.

What do people use to access their PI's? VNC?
Title: Re: DSLStats - remote access
Post by: skyeci on October 09, 2020, 03:02:59 PM
I do. You need to enable it on the pi
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 06:12:48 PM
Zyxel is now 192.168.0.1
 Static address on Pi

Eth0 Address 192.168.0.2
Routers 192.168.0.1
DNS 192.168.0.1


WLAN
192.168.1.222
Routers 192.168.1.1
DNS 8.8.8.8

Both showing as connected. Can't access the net, only the landing screen of the Zyxel.

So frustrating.

What next then? Switch to the one cable method and make the Zyxel accessible from the Asus?
Title: Re: DSLStats - remote access
Post by: skyeci on October 09, 2020, 06:42:57 PM
Take off the Routers 192.168.0.1
DNS 192.168.0.1 -thats not required.
Have you typed the entries as I listed in my example?

In fact I would remove the ethernet section and cable  and get the WiFi fully working first on your lan so that you can browse the net etc so you know it works . Once that is working then introduce the ethernet cable and ethernet config in the file..

It really does work, no need to mess with asus for this



Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 06:53:18 PM
Ok I'll try that so all I need to type in is the IP for each adapter?

I've actually just got it working by configuring the Asus for the 1 cable stats method.

On DSL stats on the Pi I'm getting access violations on everything I click. Have I installed the wrong version?
Title: Re: DSLStats - remote access
Post by: skyeci on October 09, 2020, 07:36:44 PM
Possibly or faulty sd card. I have seen this once before on mine. Check the version you installed first if not sure you could just rebuild it with a fresh version of the pi installer if you have a sd card reader.
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 08:43:47 PM
Well I've re-installed it and it's working great now.

One slight issue now, the email alerts.

Configured my Windows Live SMTP details but in the event log 'failed to connect to SMTP server'. Got a feeling it's related to libssl-dev. Looks like the PI is on Buster, yet when I try and install this https://packages.debian.org/buster/libssl1.1 I get 'a package could not be found allows the action to complete'.

Probably something really basic, but i'm a complete and utter novice on Raspian.
Title: Re: DSLStats - remote access
Post by: wolvesmad on October 09, 2020, 10:45:08 PM
Managed to get LibSSL installed and alerts are working.

Thanks for your help all.