When I goto https://wr-fw:444/cgi-bin/ovpnmain.cgi
click add - Host-to-Net selected
click add - I only get the top 1/2 of the page.
I get Choose network and noting else the add details bit is missing.
When I goto https://wr-fw:444/cgi-bin/ovpnmain.cgi
click add - Host-to-Net selected
click add - I only get the top 1/2 of the page.
I get Choose network and noting else the add details bit is missing.
In inspect I am seeing
Uncaught TypeError: document.getElementById(…) is null
https://sb.wolf-rock.com:444/cgi-bin/ovpnmain.cgi:39
I think in here /srv/web/ipfire/cgi-bin/ovpnmain.cgi
print<<END;
<script>
var disable_options = false;
document.getElementById('n2ncipher').onchange = function () {
if((this.value == "AES-256-GCM"||this.value == "AES-192-GCM"||this.value == "AES-128-GCM")) {
document.getElementById('n2nhmac').setAttribute('disabled', true);
} else {
document.getElementById('n2nhmac').removeAttribute('disabled');
}
}
</script>
END
Please see thread
https://community.ipfire.org/t/openvpn-roadwarrior-trouble-in-core-update-188/12142/
Resolved…
I added
sub getnextip {
return &Network::find_next_ip_address(shift, 4);
}
sub getlastip {
return &Network::find_next_ip_address(shift, -1);
}
to
/var/ipfire/general-functions.pl
Thanks for the quick response.
Your resolution means that you have changed your general-functions.pl to include two of the subroutines that were removed in April, together with a number of other as part of a housekeeping and standardisation process.
The fix in CU189 is not to go back to the old subroutines but to specify, in ovpnmain.cgi, the new subroutines to be used in place of them.
Your resolution will leave you with a non-standard general-functions.pl with additional subroutines not present in the released versions of IPFire.