LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2016, 08:25 PM   #1
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Rep: Reputation: 0
Unhappy Unable to open port 8140 on ubuntu


Dear All,

I am trying to open port 8140 on ubuntu 15.04 and having no luck.

My client is CentOS 8140 and I have open the port from their by going to firewalls and adding 8140 as tcp port. When I try to do a telnet test from centos to ubuntu it says connection refused from Ubuntu

root@puppet:~# sudo iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 8140 -j ACCEPT
root@puppet:~# ufw status
Status: inactive
root@puppet:~# ps -aef|grep 8140|grep -v grep


root@puppet:~# iptables -L -n -v
Chain INPUT (policy ACCEPT 326 packets, 19843 bytes)
pkts bytes target prot opt in out source destination
3 180 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8140

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 292 packets, 17637 bytes)
pkts bytes target prot opt in out source destination
root@puppet:~#

root@puppet:~# nmap puppet

Starting Nmap 6.47 ( http://nmap.org ) at 2016-05-16 11:24 AEST
Nmap scan report for puppet (127.0.1.1)
Host is up (0.0000030s latency).
Other addresses for puppet (not scanned): 192.168.1.7
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
53/tcp open domain

Nmap done: 1 IP address (1 host up) scanned in 1.67 seconds
root@puppet:~#

What to do to solve this problem. I am totally confused and don't know which command to run and how to make this work...
 
Old 05-15-2016, 08:52 PM   #2
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
Here we go, I added the further

sudo vi /etc/default/ufw
Ensured that IPV6=yes
ufw enable
added specific incoming request from agent1 ip but still from client to pupptserver it says connection refused.............
 
Old 05-15-2016, 11:19 PM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Any service listening on port 8140?

And if you need it to be available on the internet you also need to do a port forwarding on your router.
 
Old 05-16-2016, 12:09 AM   #4
sysmicuser
Member
 
Registered: Mar 2010
Posts: 458

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JJJCR View Post
Any service listening on port 8140?

And if you need it to be available on the internet you also need to do a port forwarding on your router.
Quote:
jim@puppet:~$ ps -aef|grep 8140|grep -v grep
jim@puppet:~$
Nothing is listening on 8140

Not sure what you mean by available on internet. I have a laptop and laptop has 3 VM's. this particular port 8140 on one vm should be made accessible on other two VM's. I believe might be some service is not running which should listen on that port ??
 
Old 05-16-2016, 01:24 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Question

Quote:
Originally Posted by sysmicuser View Post
Nothing is listening on 8140

Not sure what you mean by available on internet. I have a laptop and laptop has 3 VM's. this particular port 8140 on one vm should be made accessible on other two VM's. I believe might be some service is not running which should listen on that port ??
How did you get the idea to open 8140? Why 8140? What is the application that uses 8140? Is it a web application?

So 8140 will not be open to the Internet? You just want it to be available of other 3 VMs?
 
Old 05-16-2016, 01:15 PM   #6
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
Looks like someone has already addressed this:
http://serverfault.com/questions/153...rk-in-centos-5
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS 7 - unable to open port for dns mangya Linux - Newbie 2 01-27-2016 12:59 PM
Unable to open a port anwar5006 Linux - Newbie 10 10-25-2012 09:22 AM
Unable to open port in router or firewall jake.smeden@gmail.com Linux - Networking 2 01-26-2010 05:37 PM
Unable to open USB port : Permission denied After 7.10 upgrade Fixed_it Ubuntu 1 12-26-2007 11:15 AM
unable to open port 25 for some reason? why? f1uke Linux - Newbie 0 04-13-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration