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...