Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Extra blank OpenVPN Server added

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    2 Posts 1 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil.davis
      last edited by

      2.1-BETA0 (i386)
      built on Mon Sep 24 16:42:11 EDT 2012
      FreeBSD 8.3-RELEASE-p4

      and also updated to

      2.1-BETA0 (i386)
      built on Thu Sep 27 13:07:59 EDT 2012
      FreeBSD 8.3-RELEASE-p4

      When adding an OpenVPN server, an extra blank OpenVPN server row is also added straight above the new server entry.
      On 24 Sep snapshot I can't delete it. Code is in the 27 Sep snapshot to let these get deleted from the GUI.
      config.xml is like:

      
      		 <openvpn-server><vpnid>2</vpnid>
      			<mode>p2p_shared_key</mode>
      			<protocol>UDP</protocol>
      			<dev_mode>tun</dev_mode>
      			<ipaddr></ipaddr>
      			<interface>wan</interface>
      			<local_port>4331</local_port>
      
      			 <custom_options><shared_key>keyvaluewashere</shared_key>
      			<crypto>AES-128-CBC</crypto>
      			<engine>none</engine>
      			<tunnel_network>10.50.1.0/24</tunnel_network>
      			 <tunnel_networkv6><remote_network>10.51.1.0/24</remote_network>
      			 <remote_networkv6><local_network>10.49.46.0/24</local_network>
      			 <local_networkv6><maxclients>1</maxclients>
      
      			<passtos></passtos>
      
      			<dynamic_ip></dynamic_ip>
      			<pool_enable>yes</pool_enable>
      
      			<serverbridge_interface>none</serverbridge_interface>
      			 <serverbridge_dhcp_start><serverbridge_dhcp_end><netbios_enable></netbios_enable>
      			<netbios_ntype>0</netbios_ntype></serverbridge_dhcp_end></serverbridge_dhcp_start></local_networkv6></remote_networkv6></tunnel_networkv6></custom_options></openvpn-server> 
      
      

      A couple of lines were added to vpn_openvpn_server.php on 22 Sep 2012:

      	if ($pconfig['dev_mode'] <> $a_server[$id]['dev_mode'])
      openvpn_delete('server', $a_server[$id]);// delete(rename) interface so a new TUN or TAP interface can be created.
      

      If I comment these out, the problem goes away. If I put them back, the problem comes back.
      VPN-blank.png
      VPN-blank.png_thumb

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        JimP has reverted the 22 Sep change for now. So the problem should go away in the next snapshot.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.