Hello,
Could you help me with my problem? I have installed pywebsocket on my apache server, it is running as apache extension (not standalone). I have problem with connecting to server from extern networks.
My server is slackware based and I tried to allow all incoming traffic with "iptables -P INPUT ACCEPT" (all outgoing traffic is allowed).
On my router, I have forwarded tcp and udp traffic on port 80 to my server.
This are browser headers (Firefox 18, FireBug)
##################################
###
### Server response and browser request from LOCAL network
###
### Response:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: HwptUR2FopEpOlVU8xZXPg1Em1U=
### Request:
GET /echo HTTP/1.1
Host: 192.168.1.1
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Sec-WebSocket-Version: 13
Origin: http://192.168.1.1
Sec-WebSocket-Key: 7LOcl8ZRfG3GmmyvZGTwXw==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
##################################
###
### Server response and browser request from EXTERN network
###
### Response:
HTTP/1.1 400 Bad Request
Date: Thu, 11 Apr 2013 20:35:50 GMT
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 mod_python/3.3.1 Python/2.7.3 PHP/5.3.22
Content-Length: 226
Content-Type: text/html; charset=iso-8859-1
X-Pad: avoid browser bug
Connection: keep-alive
### Request
GET /echo HTTP/1.1
Host: 88.212.xx.xx
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Sec-WebSocket-Version: 13
Origin: http://88.212.xx.xx
Sec-WebSocket-Key: d5YbCNDXgMSrhS+2/9BpdQ==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocketWhat could be causing the problem? Do you think this could be issue with router or firewall? Or may it be that apache is not running pywebsocket extension on request from extern networks (different host)? Please advice how to investigate this. Thank you :)