Testing a ngix proxy to a transmission server I found that the server was dening the connection. This is strange as the proxy server is only allowed IP address to connect to the transmission server.
I began investigating the rasperry pi and it had to correct ip address.
ifconfig shows that the device has the correct ip address and ngix is reachable from that address.
1
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Next I checked the interfaces file and it also showed the correct configuration
1
|
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
This is very strange it shows that the ethernet interface is gaining a second IP address that I have not set. Doing some web searches I find that the device has a dhcp deamon that runs automatically and adds this second IP address from my dhcp server.
To resolve the problem I choose to disable the dhcp service on the device.
1
|
|
Alternatively I could force the nginx server to only bind to the 192.168.0.201 address however this would mean changing the IP address in multiple places if I ever need to modify the server IP address.