Project

General

Profile

Actions

Bug #6435

closed

Unable to edit PPTP using interfaces_ppps_edit.php

Added by Thomas Blaschke almost 8 years ago. Updated over 7 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
06/01/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3.x
Affected Architecture:

Description

Hey,

since 2.3 it is no longer possible to edit a PPTP wan configuration using /interfaces_ppps_edit.php .
Any valid configuration input produces the error

The following input errors were detected:
- The field Local IP address is required.
- The field Subnet is required.
- The field Remote IP address is required.

It seems the the POST is a) generated incorrectly or b) parsed incorrectly. The POST contains multiple 'localiplabel', 'subnet', and 'gateway' fields with a number as suffix. The /interfaces_ppps_edit.php is not checking the POST for suffixes and therefore is not able to parse the fields correctly.

Here a exemplary POST from a valid configuration.

type:pptp
interfaces[]:em0
descr:
country:AF
username:z56414-ip1
passwordfld:********
passwordfld_confirm:********
localiplabel0:0.0.0.0
subnet0:31
gateway0:192.168.1.40
localiplabel1:
subnet1:31
gateway1:
localiplabel2:
subnet2:31
gateway2:
localiplabel3:
subnet3:31
gateway3:
localiplabel4:
subnet4:31
gateway4:
localiplabel5:
subnet5:31
gateway5:
localiplabel6:
subnet6:31
gateway6:
apn:
apnum:
simpin:
pin-wait:
initstr:
connect-timeout:
provider:
pppoe-reset-type:
pppoe_resethour:
pppoe_resetminute:
pppoe_resetdate:
idletimeout:
vjcomp:yes
bandwidthem0:
mtuem0:
mruem0:
mrruem0:
bandwidthem1:
mtuem1:
mruem1:
mrruem1:
bandwidthral0:
mtural0:
mrural0:
mrrural0:
bandwidthovpnc1:
mtuovpnc1:
mruovpnc1:
mrruovpnc1:
bandwidthem1_vlan5:
mtuem1_vlan5:
mruem1_vlan5:
mrruem1_vlan5:
bandwidthem1_vlan10:
mtuem1_vlan10:
mruem1_vlan10:
mrruem1_vlan10:
bandwidthem1_vlan2:
mtuem1_vlan2:
mruem1_vlan2:
mrruem1_vlan2:
ptpid:2
id:2
save:Save

Actions

Also available in: Atom PDF