15

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.

2
  • Are you running Ubuntu Desktop or Server? Are running any Firewall?
    – Mitch
    Commented May 10, 2013 at 5:36
  • Desktop (Trusty) and no additional firewall installed
    – charlie
    Commented Jul 15, 2014 at 5:21

2 Answers 2

7

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

2
  • 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
    Commented May 10, 2013 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
    Commented May 22, 2013 at 4:34
0

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.
1
  • I don't think this is addressing the matter at all. Also clearly the op has little idea of how to execute what you just put forward.
    – sinekonata
    Commented Apr 28, 2016 at 8:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .