1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

disable duplicate-cn on my openvpn config with postconf scripts

Discussion in 'VPN' started by kanetaker, Nov 21, 2018.

  1. kanetaker

    kanetaker Occasional Visitor

    Joined:
    Jan 20, 2016
    Messages:
    16
    Hi, i have a dude for a postconf script, and i would like that someone could help me to resolve this, i need to remove the option by defect im my config.ovpn duplicate-cn for put ip static to my openvpn clients, i created a postconf scripts to remove this option but doesn't work:

    #!/bin/sh
    CONFIG=$1
    source /usr/sbin/helper.sh
    pc_delete "path=/etc/openvpn/config.ovpn/duplicate-cn" $CONFIG

    Can someone help me?
     
  2. john9527

    john9527 Part of the Furniture

    Joined:
    Mar 28, 2014
    Messages:
    5,947
    Location:
    United States
    Too much....just need this

    #!/bin/sh
    CONFIG=$1
    source /usr/sbin/helper.sh
    pc_delete "duplicate-cn" $CONFIG
     
    kanetaker likes this.
  3. kanetaker

    kanetaker Occasional Visitor

    Joined:
    Jan 20, 2016
    Messages:
    16
    thanks, now Works fine