What's new

RT-AX88U OpenVPN Custom Configuration GUI space issue

  • 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!

Rooby

Regular Contributor
Hello

I have upgraded from RT-AC88U to RT-AX88U but now I could not copy all my OpenVPN custom configuration settings into the GUI of the RT-AX88U. There seems to be not enough space availiable in the field compared to the RT-AC88U. I cannot paste all my pushes and iroutes there. Is there a space limition or maybe a bug? In the RT-AC88U it was possible.

Thanks
 
Last edited:
Hello

I have upgraded from RT-AC88U to RT-AX88U but now I could not copy all my OpenVPN custom configuration settings into the GUI of the RT-AX88U. There seems to be not enough space availiable in the field compared to the RT-AC88U. I cannot paste all my pushes and iroutes there. Is there a space limition or maybe a bug? In the RT-AC88U it was possible.

Thanks
see this post#

Use the appropriate .postconf script instead.
 
Thanks then I will use openvpnserver1.postconf script but can someone help me how can I add several lines e.g.:

push "route 10.10.2.0 255.255.255.0"
push "route 10.10.3.0 255.255.255.0"
push "route 10.10.4.0 255.255.255.0"
push "route 10.10.5.0 255.255.255.0"
route 10.10.2.0 255.255.255.0
route 10.10.3.0 255.255.255.0
route 10.10.4.0 255.255.255.0
route 10.10.5.0 255.255.255.0
route 10.10.6.0 255.255.255.0
....

If I want to use the /usr/sbin/helper.sh helper script do I need the pc_append for each line or is there a pssobility to add several lines?
 
Thanks then I will use openvpnserver1.postconf script but can someone help me how can I add several lines e.g.:

push "route 10.10.2.0 255.255.255.0"
push "route 10.10.3.0 255.255.255.0"
push "route 10.10.4.0 255.255.255.0"
push "route 10.10.5.0 255.255.255.0"
route 10.10.2.0 255.255.255.0
route 10.10.3.0 255.255.255.0
route 10.10.4.0 255.255.255.0
route 10.10.5.0 255.255.255.0
route 10.10.6.0 255.255.255.0
....

If I want to use the /usr/sbin/helper.sh helper script do I need the pc_append for each line or is there a pssobility to add several lines?

You may find that this format is easier (assumes of course that the directives don't already appear in $CONFIG)
Code:
#!/bin/sh

CONFIG=$1

(
echo 'push "route 10.10.2.0 255.255.255.0"'
echo 'push "route 10.10.3.0 255.255.255.0"'
echo 'push "route 10.10.4.0 255.255.255.0"'
echo 'push "route 10.10.5.0 255.255.255.0"'
echo 'route 10.10.2.0 255.255.255.0'
echo 'route 10.10.3.0 255.255.255.0'
echo 'route 10.10.4.0 255.255.255.0'
echo 'route 10.10.5.0 255.255.255.0'
echo 'route 10.10.6.0 255.255.255.0' ) >> $CONFIG
vs.
Code:
pc_append 'push "route 10.10.2.0 255.255.255.0"' $CONFIG
pc_append 'push "route 10.10.3.0 255.255.255.0"' $CONFIG
etc.
 
Last edited:
A heredoc might be easier.
Code:
cat <<- EOF >> "$CONFIG"
    push "route 10.10.2.0 255.255.255.0"
    push "route 10.10.3.0 255.255.255.0"
    push "route 10.10.4.0 255.255.255.0"
    push "route 10.10.5.0 255.255.255.0"
    route 10.10.2.0 255.255.255.0
    route 10.10.3.0 255.255.255.0
    route 10.10.4.0 255.255.255.0
    route 10.10.5.0 255.255.255.0
    route 10.10.6.0 255.255.255.0
EOF
 
Hello

I have upgraded from RT-AC88U to RT-AX88U but now I could not copy all my OpenVPN custom configuration settings into the GUI of the RT-AX88U. There seems to be not enough space availiable in the field compared to the RT-AC88U. I cannot paste all my pushes and iroutes there. Is there a space limition or maybe a bug? In the RT-AC88U it was possible.

Thanks
I experienced this same issue last night it seems to have a limit of 500 and some odd characters.

upload_2020-5-16_10-46-51.png
 
You may find that this format is easier (assumes of course that the directives don't already appear in $CONFIG)
Code:
#!/bin/sh

CONFIG=$1

(
echo 'push "route 10.10.2.0 255.255.255.0"'
echo 'push "route 10.10.3.0 255.255.255.0"'
echo 'push "route 10.10.4.0 255.255.255.0"'
echo 'push "route 10.10.5.0 255.255.255.0"'
echo 'route 10.10.2.0 255.255.255.0'
echo 'route 10.10.3.0 255.255.255.0'
echo 'route 10.10.4.0 255.255.255.0'
echo 'route 10.10.5.0 255.255.255.0'
echo 'route 10.10.6.0 255.255.255.0' ) >> $CONFIG
vs.
Code:
pc_append 'push "route 10.10.2.0 255.255.255.0"' $CONFIG
pc_append 'push "route 10.10.3.0 255.255.255.0"' $CONFIG
etc.
this is the best solution.
 

Similar threads

Sign Up For SNBForums Daily Digest

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