Errore nel port forwarding

Non importa se ti serve una mano per partire o se vuoi un consiglio avanzato: gli utenti "del Pinguino" hanno una risposta per ogni necessità.
Regole del forum
Rispondi
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Errore nel port forwarding

Messaggio da maurotramonti »

Buonasera e spero di essere nella sezione giusta.
Ho configurato un server LAMP (Linux, Apache, MySQL, PHP) sul Raspberry Pi 3 model B e ho installato wordpress. Tutto funziona ma io seguo una guida per fare il port forwarding e installo miniupnpc.
la guida dice

Codice: Seleziona tutto

sudo upnpc -s
e esce questo

Codice: Seleziona tutto


upnpc : miniupnpc library test client. (c) 2005-2014 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.254:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

 desc: http://192.168.1.254:49152/qEF1SLIgcM/wps_device.xml
 st: upnp:rootdevice

 desc: http://192.168.1.254:5000/rootDesc.xml
 st: upnp:rootdevice

 desc: http://192.168.1.254:41952/no_nonce_string/
 st: upnp:rootdevice

Found valid IGD : http://192.168.1.254:5000/
Local LAN ip address : 192.168.1.220
Connection Type : IP_Routed
Status : Connected, uptime=1041026s, LastConnectionError : ERROR_NONE
  Time started : Mon Mar 25 18:17:16 2019
MaxBitRateDown : 0 bps   MaxBitRateUp 0 bps
ExternalIPAddress = 10.153.173.14
Bytes:   Sent: 1370099222	Recv: 1848266725
Packets: Sent: 13818702	Recv: 32241634


poi la guida dice

Codice: Seleziona tutto

sudo upnpc -a 192.168.1.220 80 80 TCP

dove 192.168.1.220 è l'IP statico del raspberry e 80 è la porta da inoltrare.

qui iniziano i problemi

Codice: Seleziona tutto

upnpc : miniupnpc library test client. (c) 2005-2014 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.1.254:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

 desc: http://192.168.1.254:49152/qEF1SLIgcM/wps_device.xml
 st: upnp:rootdevice

 desc: http://192.168.1.254:5000/rootDesc.xml
 st: upnp:rootdevice

 desc: http://192.168.1.254:41952/no_nonce_string/
 st: upnp:rootdevice

Found valid IGD : http://192.168.1.254:5000/
Local LAN ip address : 192.168.1.220
ExternalIPAddress = 10.153.173.14
AddPortMapping(80, 80, 192.168.1.220) failed with code 718 (ConflictInMappingEntry)
GetSpecificPortMappingEntry() failed with code 714 (NoSuchEntryInArray)



non so più cosa fare è da tutto il giorno che riprovo :muro

grazie a chi mi aiuterà
System
System
Bot ufficiale TurboLab.it
Bot
Messaggi:
Iscritto il: sab dic 31, 2016 6:19 pm
Contatta: Contatta

Re: Errore nel port forwarding

Messaggio da System » sab apr 06, 2019 9:31 pm


Avatar utente
CUB3
Moderatore
Moderatore
Messaggi: 3931
Iscritto il: lun gen 26, 2015 10:13 am

Re: Errore nel port forwarding

Messaggio da CUB3 »

Se non ho capito male, stai provando ad inoltrare il traffico da una macchina (con indirizzo IP 192.168.1.254) al raspberry, giusto?

Se così, controlla il file miniupnpc.conf; cerca la voce secure_mode e settala su no, altrimenti viene impedito il port forwarding su un IP diverso da quello locale.
"Let me tell you a secret: when you hear that the machine is “smart”, what it actually means is that it’s exploitable." Mikko Hypponen
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

L'indirizzo che finisce con 254 è il gateway (indirizzo del modem) mentre l'IP del Raspberry è 192.168.1.220. Appena posso provo il tuo consiglio, grazie mille per la risposta.
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

Dove sta il file miniupnpc.conf?
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

Ancora non funziona stessi errori di prima
Avatar utente
CUB3
Moderatore
Moderatore
Messaggi: 3931
Iscritto il: lun gen 26, 2015 10:13 am

Re: Errore nel port forwarding

Messaggio da CUB3 »

maurotramonti ha scritto: dom apr 07, 2019 2:04 pm Dove sta il file miniupnpc.conf?
Scusa, intendevo miniupnpd.conf.

Puoi provare ad abilitare manualmente il port forwarding sul modem.
"Let me tell you a secret: when you hear that the machine is “smart”, what it actually means is that it’s exploitable." Mikko Hypponen
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

Scusa ignora il messaggio di prima allora l'indirizzo IP esterno è 10.153.173.14 e da LAN riesco ad accederci. Ho configurato manualmente il port mapping. Dalla rete esterna non riesco :muro :muro
Avatar utente
Al3x
Amministratore
Amministratore
Messaggi: 4535
Iscritto il: mer mag 01, 2013 12:59 pm
Località: http://127.0.0.1

Re: Errore nel port forwarding

Messaggio da Al3x »

che provider usi?
considera che il range 10.0.0.0 - 10.255.255.255 è privato quindi non raggiungibile da rete pubblica
I :amore Sasha
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

Fastweb, ho letto in giro che sia obbligatorio richiedere IP pubblico per aprire le porte e che gli IP pubblici iniziano con 2 mentre quelli Fastweb iniziano con 10
Avatar utente
Al3x
Amministratore
Amministratore
Messaggi: 4535
Iscritto il: mer mag 01, 2013 12:59 pm
Località: http://127.0.0.1

Re: Errore nel port forwarding

Messaggio da Al3x »

confermo, senza IP pubblico non potrai mai raggiungere la tua rete locale da internet
I :amore Sasha
Avatar utente
maurotramonti
VIP
VIP
Messaggi: 378
Iscritto il: mar mag 01, 2018 3:28 pm
Località: Alessandria

Re: Errore nel port forwarding

Messaggio da maurotramonti »

Alla fine mi sono fatto dare IP pubblico e ho configurato Noip e fu funziona tutto
System
System
Bot ufficiale TurboLab.it
Bot
Messaggi:
Iscritto il: sab dic 31, 2016 6:19 pm
Contatta: Contatta

Re: Re: Errore nel port forwarding

Messaggio da System » lun apr 15, 2019 7:39 pm


Rispondi
  • Argomenti simili
    Risposte
    Visite
    Ultimo messaggio