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.

I am using ubuntu server lts 12.04 on vmware virtual machine. I need to enable port 9696 which is blocked or filtered. When i use the nc -v -w 1 localhost -z 9696 command it shows me the following message

nc: connect to localhost port 9696 (tcp) failed: Connection refused

So i tried this command iptables -A INPUT -p tcp --dport 9696 -j ACCEPT but it is still not working. This is what iptables -L -N shows

Chain INPUT (policy ACCEPT) target     prot opt source              
destination nova-api-INPUT  all  --  0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT) target     prot opt source              
destination nova-filter-top  all  --  0.0.0.0/0            0.0.0.0/0
nova-api-FORWARD  all  --  0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT) target     prot opt source              
destination nova-filter-top  all  --  0.0.0.0/0            0.0.0.0/0
nova-api-OUTPUT  all  --  0.0.0.0/0            0.0.0.0/0

Chain nova-api-FORWARD (1 references) target     prot opt source      
destination

Chain nova-api-INPUT (1 references) target     prot opt source        
destination ACCEPT     tcp  --  0.0.0.0/0            192.168.10.50    
tcp dpt:8775

Chain nova-api-OUTPUT (1 references) target     prot opt source       
destination

Chain nova-api-local (1 references) target     prot opt source        
destination

Chain nova-filter-top (2 references) target     prot opt source       
destination nova-api-local  all  --  0.0.0.0/0            0.0.0.0/0

Any help would be appreciated.

share|improve this question
    
Have you tried to use ubuntu (uncomplicated firewall?) example #ufw allow 9696/tcp –  user1007727 Mar 12 at 19:20

1 Answer 1

After 2 days i entered this command again iptables -A INPUT -p tcp --dport 9696 -j ACCEPT and now it works. I don't know why it wasn't accepted the first time(s!!).but the problem was solved.

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.