Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My SoulSeek client Nicotine+ checks my open ports during initial configuration and promts that the one port number it needs is closed, cutting me off frmo about 50% of the users. Is there anyway I can open that particular port for the application to use?

RUnning ubuntu desktop 13.04. I have not manually installed any firewalls, but not sure if its included in the default installation.

share|improve this question
    
Are you running Ubuntu Desktop or Server? Are running any Firewall? –  Mitch May 10 '13 at 5:36
    
Desktop (Trusty) and no additional firewall installed –  charlie Jul 15 at 5:21

2 Answers 2

Run this on the commandline; it should solve issue: sudo iptables -A INPUT -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j ACCEPT

To do a specific port:

sudo iptables -A INPUT -p <tcp OR udp> <--dport OR --sport> <port> -j ACCEPT

INPUT is the chain for incoming traffic. -p is protocol (either tcp or udp --dport or --sport specify allowing for destination or source port. -j is "jump" and its where you ACCEPT, REJECT, or DROP the packet(s)

Details on iptables can be found by reading the man page. Since you're a beginner you'll probably find this useful: http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO.html

share|improve this answer
1  
@J Moore: Thanks, but where do I put in the port number? Also would help if you could put in a one liner about what these arguments are for? –  charlie May 10 '13 at 6:34
1  
I tried the methods above, and though I think they should work, the client port-checking page: tools.slsknet.org/porttest.php?port=2234 always shows that the port is CLOSED. Any ideas? –  charlie May 22 '13 at 4:34

You need to install at least one firewall, because it's not installed in default installation on ubuntu.

for 32 bits
- Firestarter
for 64 bits
- Firestarter

  • Install and open the firestarter, add the inbound policy with this ip:   0.0.0.0/0   (to allow all ip addresses)
  • Add the ports that you need to open.
  • Then click on apply the changes button.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.