java - iptables blocking me to telnet to outside server on port 80 -
i have been trying telnet on 1 outside server on port 80.
with iptables on:
telnet xyz 80 trying xyz... connected xyz. escape character '^]'. qwer (here type characters) http/1.1 400 bad request server: apache-coyote/1.1 transfer-encoding: chunked date: tue, 03 sep 2013 16:58:31 gmt connection: close 0 connection closed foreign host.
with iptables off:
telnet xyz 80 trying xyz... connected xyz. escape character '^]'. qwer (here type characters) getting html response (it's working here, iptables off)
output of: iptables -l
chain input (policy accept) target prot opt source destination accept tcp -- anywhere abcd state new tcp dpt:http chain forward (policy accept) target prot opt source destination chain output (policy accept) target prot opt source destination
and in /etc/iptables.conf file, have done port forwarding (for security concerns redirecting 80 port incoming web traffic apache 8080 port , vice versa) as:
:prerouting accept [2:100] :postrouting accept [20:1650] :output accept [20:1650] -a prerouting -p tcp -m tcp --dport 80 -j redirect --to-ports 8080 -a output -p tcp -m tcp --dport 80 -j redirect --to-ports 8080 commit
what entry in iptables make telnet on xyz server on port 80 working, it's doing fine if keep iptables off?
i'm confused. you're trying telnet http server? or trying put telnet server on port 80? port 8080 come this?
Comments
Post a Comment