Modifying WiFiX | GoldenOrb for IPV4 APN

How To Tutorials related to Routers and Firmware
Forum rules
This forum is for tutorials only--not for help or assistance.
Post Reply
User avatar
JimHelms
Site Admin
Posts: 1366
Joined: Tue Dec 19, 2017 8:59 pm
Location: DFW Texas
Has thanked: 79 times
Been thanked: 199 times
Contact:

Modifying WiFiX | GoldenOrb for IPV4 APN

Post 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.
You do not have the required permissions to view the files attached to this post.
xdavidx
Posts: 303
Joined: Tue May 28, 2019 4:04 pm
Has thanked: 24 times
Been thanked: 14 times

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Post by xdavidx »

Which takes precedence -- this script or if you set the APN manually through AT commands through the modem->misc screen?
User avatar
JimHelms
Site Admin
Posts: 1366
Joined: Tue Dec 19, 2017 8:59 pm
Location: DFW Texas
Has thanked: 79 times
Been thanked: 199 times
Contact:

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Post 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.
smurfsky101
Posts: 1
Joined: Wed Aug 25, 2021 12:01 am
Has thanked: 0
Been thanked: 0

Re: Modifying WiFiX | GoldenOrb for IPV4 APN

Post by smurfsky101 »

This is good info - fyi for a hostless modem the same change will need to be applied on create_hostless.sh
Post Reply

Return to “Tutorials”