Pagina 1 di 1
Errore nel port forwarding
Inviato: sab apr 06, 2019 9:31 pm
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
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
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
grazie a chi mi aiuterà
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 10:08 am
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.
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 12:12 pm
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.
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 2:04 pm
da maurotramonti
Dove sta il file miniupnpc.conf?
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 2:15 pm
da maurotramonti
Ancora non funziona stessi errori di prima
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 2:38 pm
da CUB3
maurotramonti ha scritto: ↑dom apr 07, 2019 2:04 pm
Dove sta il file miniupnp
c.conf?
Scusa, intendevo miniupnpd.conf.
Puoi provare ad abilitare manualmente il port forwarding sul modem.
Re: Errore nel port forwarding
Inviato: dom apr 07, 2019 4:06 pm
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

Re: Errore nel port forwarding
Inviato: lun apr 08, 2019 7:07 am
da Al3x
che provider usi?
considera che il range 10.0.0.0 - 10.255.255.255 è privato quindi non raggiungibile da rete pubblica
Re: Errore nel port forwarding
Inviato: lun apr 08, 2019 7:11 am
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
Re: Errore nel port forwarding
Inviato: lun apr 08, 2019 7:38 am
da Al3x
confermo, senza IP pubblico non potrai mai raggiungere la tua rete locale da internet
Re: Errore nel port forwarding
Inviato: lun apr 15, 2019 7:39 pm
da maurotramonti
Alla fine mi sono fatto dare IP pubblico e ho configurato Noip e fu funziona tutto