I checked my install and I noticed that subsonic was listening on other ports
I ran netstat -lpn
I found java (so presumably subsonic) on ports 4040, 9412 & 52753
4040 - web port
9412 - According to subsonic_sh.log is the RMI service (
http://www.javacoffeebreak.com/articles/javarmi/javarmi.html)
52753 - I've no idea what port this is I couldn't get a responce using nc.
Maybe we should speak to Sindre about those ports are used for as I didn't know about this before and I would be quite interested in what they are used for.
If we're being paranoid then we can prevent any access to these ports with the following iptables command (note this is only for port 9412).
- Code: Select all
iptables -t filter -A INPUT -p tcp --dport 9412 -j REJECT
To remove this rule run the following command
- Code: Select all
iptables -t filter -D INPUT -p tcp --dport 9412 -j REJECT
To see what rules are in place in the filter table run the following command
- Code: Select all
iptables -t filter -L
lsof & netstat will still show that those programs are listening but if you or someone on your network tries to connect to it they will get a connection refused message.
I've tried blocking ports 9412 and 52753 using the above iptables rules and subsonic still "seems" to be working so your problem probably lies elsewhere.
Hope this helps.