kindredgroup / puppet-forge-server

Private Puppet forge server supports local files and both v1 and v3 API proxies
69 stars 44 forks source link

Only listens on 127.0.0.1:8080 #16

Closed PierrickLozach closed 9 years ago

PierrickLozach commented 9 years ago

It looks like by default, puppet-forge-server only listens on 127.0.0.1:8080 making it impossible to access it from outside the machine it's running on. I am running CentOS 7.

sudo netstat -anp | grep 8080

shows

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      32547/ruby          
tcp6       0      0 ::1:8080                :::*                    LISTEN      32547/ruby          

Here is a comparison with ssh listening on that machine:

sudo netstat -anp | grep sshd

shows

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1304/sshd           

Note that ssh listens on 0.0.0.0 (anonymous IP). How can I change this so puppet-forge-server can be reached from external machines?

i11 commented 9 years ago

Did you try starting the server with -b 0.0.0.0 ?

PierrickLozach commented 9 years ago

That worked. Thanks!