DDNS Updater [ENG] 403 Forbidden

  • Ab sofort steht euch hier im Forum die neue Add-on Verwaltung zur Verfügung – eine zentrale Plattform für alles rund um Erweiterungen und Add-ons für den DSM.

    Damit haben wir einen Ort, an dem Lösungen von Nutzern mit der Community geteilt werden können. Über die Team Funktion können Projekte auch gemeinsam gepflegt werden.

    Was die Add-on Verwaltung kann und wie es funktioniert findet Ihr hier

    Hier geht es zu den Add-ons

Status
Für weitere Antworten geschlossen.

Nenaal Llaenaan

Benutzer
Registriert
13. Apr. 2013
Beiträge
2
Reaktionspunkte
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.
 
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.
 
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.
 
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
 
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