Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: ZyXel VMG8324-B10A OpenVPN/entware  (Read 4336 times)

dff

  • Just arrived
  • *
  • Posts: 5
ZyXel VMG8324-B10A OpenVPN/entware
« on: September 10, 2016, 10:04:07 AM »

Hi guys,

I was wondering, as we are able to login to telnet, and access a bash line in the ZyXel VMG8324-B10A modem/router, and it has USB ports available for jffs, is it possible to install entware on it? My main goal is to install openvpn client/server on it.

Anybody with an advice?

Many thanks.
Logged

Chunkers

  • Reg Member
  • ***
  • Posts: 525
  • Brick Wall head-banger
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #1 on: September 12, 2016, 08:53:20 AM »

Confession : I had to google what entware was and read the package list with interest, wow theres a lot of options.  I like how you can instal your own PBX exchange, lol

Given that BusyBox is already installed on the VMG8924 (I know this because I have used it) does it that mean that it already has entware installed or can it run natively?

o7

Chunks
Logged

dff

  • Just arrived
  • *
  • Posts: 5
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #2 on: September 12, 2016, 04:32:59 PM »

Hi Chunks.

As far as I know entware is not installed on this device. I have experience with tomatousb, shibby, dd-wrt so far. All these can install entware-ng, and then install any of the packages. Usually they have an installer like
Code: [Select]
entware_install.sh or so. I haven't found anything like this on this device. However, it has already an
Code: [Select]
/opt folder, I found some files like
Code: [Select]
/etc/wrt54g* so I suppose :fingers: installing entware should be possible. I don't have time messing around with the router at the moment, but maybe this manual may be useful: https://github.com/Entware-ng/Entware-ng/wiki/Install-on-the-TomatoUSB

I was just wondering whether anybody tried this before me. Please let me know. ;)
Logged

dff

  • Just arrived
  • *
  • Posts: 5
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #3 on: September 24, 2016, 12:20:55 PM »

Just an update, I realised that  I will need for this the rc.unslung start or rc.unslung stop scripts at the USB mount and unmount steps.

I assume it should be something similar as here:

Code: [Select]
cat << EOF > /tmp/script_usbmount.tmp
if [ \$1 = "/tmp/mnt/MYPART" ]
then
ln -sf \$1 /tmp/opt
/opt/etc/init.d/rc.unslung start
fi
EOF
nvram set script_usbmount="`cat /tmp/script_usbmount.tmp`"

cat << EOF > /tmp/script_usbumount.tmp
if [ \$1 = "/tmp/mnt/MYPART" ]
then
/opt/etc/init.d/rc.unslung stop
fi
EOF
nvram set script_usbumount="`cat /tmp/script_usbumount.tmp`"

nvram commit
reboot

Source: https://github.com/Entware-ng/Entware-ng/wiki/Install-on-Asus-stock-firmware

However, I am somehow stuck because I don't know where and whether this router has an already scripts that start after mounting an USB or not. I found some bits under /sbin/wwan-add.sh etc. which seem as they are the scripts triggered when one inserts a 3G dongle. But I was unsuccessful finding where these scripts are triggered.

Another thing is the /sbin/hotplug, but this has only binary code.

And again, there are already some scripts on the router, however I haven't found a location where they are triggered and how to do it:

Code: [Select]
~ # ls -l /opt/scripts/
-rwxr-xr-x    1 supervis root            33 Aug 28  2014 bcmlog
-rwxr-xr-x    1 supervis root           218 Aug 28  2014 db
-rwxr-xr-x    1 supervis root           223 Aug 28  2014 dh
-rwxr-xr-x    1 supervis root            40 Aug 28  2014 dumpmem
-rwxr-xr-x    1 supervis root          8607 Jul 15  2015 dumpsysinfo.sh
-rwxr-xr-x    1 supervis root           217 Aug 28  2014 dw
-rwxr-xr-x    1 supervis root           153 Aug 28  2014 fb
-rwxr-xr-x    1 supervis root           157 Aug 28  2014 fh
-rwxr-xr-x    1 supervis root           153 Aug 28  2014 fw
-rwxr-xr-x    1 supervis root           134 Aug 28  2014 sb
-rwxr-xr-x    1 supervis root            46 Aug 28  2014 setmem
-rwxr-xr-x    1 supervis root           138 Aug 28  2014 sh
-rwxr-xr-x    1 supervis root           282 Aug 28  2014 spitr
-rwxr-xr-x    1 supervis root          1319 Jul 15  2015 stress-fs-flist.txt
-rwxr-xr-x    1 supervis root          8023 Jul 15  2015 stress-fs.sh
-rwxr-xr-x    1 supervis root           568 Jul 15  2015 stress-proc.sh
-rwxr-xr-x    1 supervis root           715 Jul 15  2015 stress-xdslupdown.sh
-rwxr-xr-x    1 supervis root           134 Aug 28  2014 sw

Any help?
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #4 on: September 24, 2016, 06:15:16 PM »

Hmm . . . How about performing a global recursive grep for each script name of interest to see if that helps to identify from whence the script is called?  :-\

For example --

Code: [Select]
cd /
grep -R 'dumpsysinfo.sh' *
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

dff

  • Just arrived
  • *
  • Posts: 5
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #5 on: September 24, 2016, 06:42:30 PM »

Thanks for the reply. The problem is that I don't know for which script I am looking for.

Let me explain: I know that there is a script that runs every time the devices is booted up (/etc/init.d/rcS). However, I am looking for a script that runs before every mounting of a USB drive, and also that runs after any USB device is being unmounted.

The question is that how to identify this script? And if there is no such a script, how to create one.
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #6 on: September 24, 2016, 06:58:24 PM »

If it was a normal system, rather than a SOC, I would suggest that you consider writing a relevant udev rule.

Would you be able to pull a copy of the SOC file system to a standard Unix/Linux based system and then examine the files so downloaded for clues?
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

dff

  • Just arrived
  • *
  • Posts: 5
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #7 on: September 24, 2016, 07:11:53 PM »

I had the same idea and this is the reason I am investigating whether it is possible at all.

I managed to get access to bash so I suppose it would be possible to pull the SOC from the device. For the beginning I found this resource: http://tjworld.net/wiki/Zyxel/VDSL_IAD

And there were other guys before me, who were able to download the mtdblocks: https://forum.openwrt.org/viewtopic.php?id=46498

But here my skills are hitting my limits. I would be grateful for any advice leading me to the right direction.
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #8 on: September 24, 2016, 07:22:04 PM »

Unless there is a fellow Kitizen who is able to step in and help, it might be best for you to ask in the OpenWrt forum.

I don't possess a ZyXEL VMG8324 and, from your own explanation, you really require more than just a few general hints/suggestions.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

machare

  • Member
  • **
  • Posts: 71
Re: ZyXel VMG8324-B10A OpenVPN/entware
« Reply #9 on: October 26, 2018, 05:07:41 PM »

Has anyone managed to get an Openvpn client to run on a Zyxel VMG8x24-B10A router in the past couple of years?
I have an Openwrt client running on a TP-Link ARCHER-C7 v2 quite nicely.   
Logged