Page 1 of 1

Modifying WiFiX | GoldenOrb for IPV4 APN

Posted: Fri Jun 28, 2019 7:03 pm
by JimHelms
WiFiX and GoldenOrb firmware by default assings and sends the APN as IPV4V6. There are occasions when an APN will requires an IPV4 address.

This tutorial will modify the script to send the APN to an IPV4 address.

There are two options provided for this modification:

1. Edit the create_connect.sh script, or

2. Swap the OEM create_connect.sh with the modified script provided below.


In order to access the root directory with the files in GoldenOrb, you will need to download and install the free WinSCP utility.

Next, download the Create_Connect _IPV4_Mod.rar file onto your desktop and extract/unzip the rar file.


Create_Connect _IPV4_Mod.rar


Open WinSCP and log into GoldenOrb using the SCP File Protocol, and the IP Address: 192.168.1.1 (assuming you have not changed it to another)

Enter your user name (root, unless it has been changed) and the password used to log into your router.


Using WinSCP.png


Use the Drop Down selector on the top right side of WinSCP to find the root directory.

Locate the create_connect.sh script which located at /usr/lib/rooter/connect/create_connect.sh


Locating the create_connect File.png


You will notice in the unzipped Create_Connect _IPV4_Mod folder, there is an OEM folder and an create_connect.sh file.

The OEM folder will be used to back up your original create_connect.sh in the event anything goes wrong, or you simply want to resort back to the OEM file. We can also edit the script as addressed at the end of this tutorial.

Use the Drop Down selection menu on WinSCP to locate the unzipped Create_Connect _IPV4_Mod folder on your Desktop. Click on the OEM file to open it.


Drag and drop (copy) the OEM create_script.sh over to the OEM folder.


Create Backup of OEM Script.png


Use the blue back button on the tab bar and locate the modified create_script.sh file. Drag and drop the modified create_script.sh file into the connect folder (unless you plan to modify the OEM script).


Replace OEM with modified script.png


Exit WinSCP, and reboot the router.


EDITING THE SCRIPT AS OPPOSED TO REPLACING IT:


Some may prefer simply editing the OEM create-connect.sh script instead of replacing it.

You will need a good editor like Notepad++ which if free and can be downloaded from HERE.

After installation of Notepad++, right click the create_connect.sh file and select Edit with Notepad++.

Once the file opens, scroll down to line 68 (numbered on the left hand side).


Line 68 with IPV4V6 Info.png


Next, change:

Code: Select all

IPVAR="IPV4V6"
to

Code: Select all

IPVAR="IP"

Line 68 with IP info.png


Exit WinSCP, and reboot the router.

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Posted: Fri Jun 28, 2019 9:57 pm
by xdavidx
Which takes precedence -- this script or if you set the APN manually through AT commands through the modem->misc screen?

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Posted: Sun Jul 14, 2019 2:18 pm
by JimHelms
xdavidx wrote: Fri Jun 28, 2019 9:57 pm Which takes precedence -- this script or if you set the APN manually through AT commands through the modem->misc screen?
The script will program (or reprogram) the APN on connection.

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Posted: Mon May 01, 2023 10:32 am
by smurfsky101
This is good info - fyi for a hostless modem the same change will need to be applied on create_hostless.sh