DDNS Updater [ENG] 403 Forbidden

Status
Für weitere Antworten geschlossen.

Nenaal Llaenaan

Benutzer
Mitglied seit
13. Apr 2013
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hi all,

I can no more configure DDNS updater, all I get is ths message : 403 Forbidden. DDNS Updater version is 1.24-001. My Synology is a DS-212J and DSM version is 4.1-2636.
I tried to uninstall and install it back, but with no effect.

Is there anybody here who could help me ?

Thanks in advance.
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
hi,

in v1.21, the permission settings were integrated. If you use another user instead of "admin", you need to go to "Control Panel - Set application permissions" and set the permission for the desired user.
 

Nenaal Llaenaan

Benutzer
Mitglied seit
13. Apr 2013
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hello,

thank you for your answer. Unfortunately, I'm using the 'admin' login. But I think I've found something. To access to DSM, I use a domain name and https. Because of network restrictions at my job place, I use Apache reverse proxy and can access to DSM using the port 443. In this configuration, I get the 403 error.
On my internal network, if I use the IP address of my diskstation and the port 5001 (https), all is working fine.
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
ok,

with the included code in ddnsupdater you don't get the real client ip, if you are using a reverse proxy. Login via telnet or ssh as root and try the following:

  • open /usr/syno/synoman/webman/3rdparty/ddnsupdater/ddnsupdater.php with a suitable editor (e.g. mcedit,nano,pico,vi)
  • near the top of the script there is a line
    PHP:
    putenv('REMOTE_ADDR='.$_SERVER['REMOTE_ADDR']);
  • replace the complete line with the following code:
    PHP:
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
         $clientIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
    } elseif (isset($_SERVER['HTTP_X_REAL_IP'])){
         $clientIP = $_SERVER['HTTP_X_REAL_IP'];
    } else {
         $clientIP = $_SERVER['REMOTE_ADDR'];
    }
    putenv('REMOTE_ADDR='.$clientIP);
  • save ddnsupdater.php and try
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
was the above post helpful?
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat