Q:

Cannot telnet host from ec2 instance behind a proxy

Let me try to rephrase the whole question as it was not very clear the first time.
I need to understand and workout port forwarding. I have an ec2 instance running behind a proxy server. I need to telnet from my ec2 instance to a server outside, 'in internet' through port (let's say) 1919 . In security groups I have allowed tcp traffic on port 1919 from my ec2 instance to the proxy and back and from proxy to the remote server.
To be able to telnet from my ec2 instance to remote server, i think i will have to port forward 1919 in proxy to be able to get to the remote server. I tried it with
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 9093 -j DNAT --to *ipaddofEC2*:1919
iptables -A FORWARD -p tcp -d  --dport 1919 -j ACCEPT
In my squid I have :
acl servicebus_port_9093 port 1919 and
http_access allow allowed_source_hosts allowed_messaging_sites servicebus_port_9093     and
acl allowed_messaging_sites dstdomain .servicebus.windows.net(remote host's url finishes with windows.net)
Still I have not been able to telnet from my ec2 to remote server.
Ps. ip forwarding is on in proxy and I tried to tcpdump in proxy while trying to telnet from my ec2 instance to remote server but I get nothing. (I dont know much about tcpdump)
I get timeout error.

A:

The protocol used was not tcp but a 'special' protocol that's why I was not able to tunnel the traffic through.

