17
6
How to open TCP port in Ubuntu 10.10 ?
17
6
How to open TCP port in Ubuntu 10.10 ?
16
sudo iptables -A INPUT -p tcp --dport (port number) -j ACCEPT
No,no. I need to open port in system, for application like torrent client or apache server. – None – 2010-10-13T07:47:41.253
@Romka no no, thats not how you ask a question, more info needed, this answer is correct – SSH This – 2013-01-23T22:37:08.473
5
Shooting in the darkness:
sudo ufw allow 80
Now there is a rule in your ubuntu firewall allowing external access to your 80 port. If you want more specific rule see man ufw
. If you are on non-routable IP address you have to forward port in your router. If you provide more context to your question, then I can adjust this answer.
2This doesn't work under Ubuntu 12.10... nmap localhost -p80
still displays CLOSED
– weberc2 – 2013-01-11T23:31:52.150
sudo ufw enable
would be required first on a default Ubuntu install, since ufw is disabled by default. – Chris Moschini – 2014-04-08T04:07:16.410
3
Your question needs a lot more detail:
That said, if you have the "typical" home setup (one or more computers hooked up to a combined switch/router with Internet uplink via DSL or cable): Typically the switch/router/modem combo has a built-in firewall. You'll probably need to open a port there. Usually these devices have a web interface for configuration, look into your manuals.
1
I suggest Netcat: The very basic way to do that (via Netcat) is:
nc -l <port_number>
Example:
nc -l 12569
Belongs either on http://superuser.com or http://askubuntu.com.
– BoltClock – 2010-10-13T07:45:27.2431For what do you want to open the port? To host a service? to use for outgoing traffic? What do you want to achieve? – S.Hoekstra – 2010-10-13T08:07:09.733