What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

remove nobind

markval

New Around Here
Hi guys,

I am trying to remove nobind and use lport rport instead while using Client openVPN connection.

I am removing the nobind from config.ovpn but it seems to always come back.
If I put lport and rport in the custom config they wont be accepted since nobind is there already.

Any ideas?

Thank you!
 
Last edited:
Looks like the GUI function always writes the nobind.

Anyways to find where this is executed and replace the original config script?
 
You would need to recompile the firmware to change this. Otherwise, you will have to provide your own config file, and manually launch your client instead of having the firmware handle it automatically.
 
Hi RMerlin,

Thank you for your answer.

Where should I put the config file and how can I launch manually the client?

Thank you!
 
Hi RMerlin,

Thank you for your answer.

Where should I put the config file and how can I launch manually the client?

Thank you!

You will need to manually configure everything on the openvpn side of things. Unfortunately I have never really worked with OpenVPN under Linux, so I can't guide you on the details.

At least a good starting point would be to make a backup of a config file generated by the webui. Save it either on a USB disk or in the jffs partition, then point your openvpn client to that config. Also make a copy of the cert/keys generated by the firmware when it launches the client, so you can reuse them.

I might consider making the nobind option configurable in the future since it prevents users from going with particular setups that require user-specified ports.
 
I am recompiling the firmware at the moment for RT-AC56U with changes.

Im on Ubuntu64bit which mean I had to install the 32bit of libelf using:

Code:
sudo apt-get install libelf1:i386

Also the PATH in the tutorial also target mips and not arm.
Would be great to add the difference fir future reference.

Regarding the nobind.
Instead of giving an option for it I would rather give a checkbox to completely ignore all the default options + gui options and give complete control to the Custom Configuration

Thank you
 
I am recompiling the firmware at the moment for RT-AC56U with changes.

Im on Ubuntu64bit which mean I had to install the 32bit of libelf using:

Code:
sudo apt-get install libelf1:i386

Also the PATH in the tutorial also target mips and not arm.
Would be great to add the difference fir future reference.

Regarding the nobind.
Instead of giving an option for it I would rather give a checkbox to completely ignore all the default options + gui options and give complete control to the Custom Configuration

I haven't documented the ARM build directions yet because Asus hasn't finalized the merge, so I didn't want to provide instructions for the way I was doing it, and have to rewrite everything again once they do the final merge of both branches.

Having a checkbox to totally ignore it isn't necessary. A custom config could be implemented the same way it currently is for other custom config files, where it automatically gets used if it does exist.
 
Just to say that all went well and I added a few security features on top for our setup with ease. The tun is up and running.

Thank you
 
Just a small up to check whether there currently is any solution other than recompile the fw to set an lport on the client (which keep going in conflict with the pre-build nobind option I can't spot where to remove it from).

Thanks
Peppe
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top