how many instances of "t" are there in:
q: iptables & allowed port refusing connection can you see what i'm doing wrong?  on ubuntu server 9.1, i'm attempting to allow traffic on port 1143 for a non-privileged imap host.
connection is refused when testing with 
telnet example.com 1143 
but connection is allowed testing with
telnet example.com 80
from my pc to remote internet hosted server.  both rules appear identical and are located near each other with no rules rejecting connections intervening in the rules file.  i can't figure it out. 
iptables -l returns this:
chain input (policy accept)
target     prot opt source               destination         
accept     all  --  anywhere             anywhere            
reject     all  --  anywhere             127.0.0.0/8         reject-with icmp-port-unreachable 
accept     all  --  anywhere             anywhere            state related,established 
accept     tcp  --  anywhere             anywhere            tcp dpt:www 
accept     tcp  --  anywhere             anywhere            tcp dpt:https 
accept     tcp  --  anywhere             anywhere            tcp dpt:http-alt 
accept     tcp  --  anywhere             anywhere            tcp dpt:7070 
accept     tcp  --  anywhere             anywhere            tcp dpt:1143 
accept     tcp  --  anywhere             anywhere            state new tcp dpt:ssh 
accept     icmp --  anywhere             anywhere            icmp echo-request 
log        all  --  anywhere             anywhere            limit: avg 5/min burst 5 log level  debug prefix `iptables denied: ' 
reject     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 

chain forward (policy accept)
target     prot opt source               destination         
reject     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 

chain output (policy accept)
target     prot opt source               destination         
accept     all  --  anywhere             anywhere            

and my rules file contains this:
# generated by iptables-save v1.4.4 on wed may 26 19:08:34 2010
*nat
:prerouting accept [3556:217296]
:postrouting accept [6909:414847]
:output accept [6909:414847]
-a prerouting -p tcp -m tcp --dport 80 -j redirect --to-ports 8080 
-a prerouting -p tcp -m tcp --dport 80 -j redirect --to-ports 8080 
commit
# completed on wed may 26 19:08:34 2010
# generated by iptables-save v1.4.4 on wed may 26 19:08:34 2010
*filter
:input accept [1:52]
:forward accept [0:0]
:output accept [1:212]
-a input -i lo -j accept 
-a input -d 127.0.0.0/8 ! -i lo -j reject --reject-with icmp-port-unreachable 
-a input -m state --state related,established -j accept 
-a input -p tcp -m tcp --dport 80 -j accept 
-a input -p tcp -m tcp --dport 443 -j accept 
-a input -p tcp -m tcp --dport 8080 -j accept 
-a input -p tcp -m tcp --dport 7070 -j accept 
-a input -p tcp -m tcp --dport 1143 -j accept 
-a input -p tcp -m state --state new -m tcp --dport 22 -j accept 
-a input -p icmp -m icmp --icmp-type 8 -j accept 
-a input -m limit --limit 5/min -j log --log-prefix "iptables denied: " --log-level 7 
-a input -j reject --reject-with icmp-port-unreachable 
-a forward -j reject --reject-with icmp-port-unreachable 
-a output -j accept 
commit
# completed on wed may 26 19:08:34 2010


a: telnet to test a firewall only works if something is listening on that port.  the netstat command ignacio posted does this: netstat -ntlp | grep ':1143'
so you need to start the service, or, you can use something like netcat to make a listening port: nc -l 1143 as a temporary test.

user
There are 265 "t"s in the text you provided.
assistant