RT-AX88U OpenVPN Custom Configuration GUI space issue

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

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:

Martineau

Part of the Furniture
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.
 

Rooby

Regular Contributor
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?
 

Martineau

Part of the Furniture
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:

Dabombber

Senior Member
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
 

SomeWhereOverTheRainBow

Very Senior Member
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
 

SomeWhereOverTheRainBow

Very Senior Member
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

Latest threads

Sign Up For SNBForums Daily Digest

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