It was clearly an firewall issue.
Flushing the iptables
helped in resolving the issue:
sudo iptables -F
But be careful, you may want to set up proper firewall rules for your VPN server.
Question
I'm connecting to a VPN (Linux machine) through ssh and invoke the following command there:
sibi::bash-> python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
Then, I visit it in it's URL: http://x.x.x.x:8000 and the browser complains me that it is not able to connect.
How to debug this issue ?
( Apache's test page works fine in http://x.x.x.x )
Updated: IP Rules (iptables -L -n)
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Solution
It was clearly an firewall issue.
Flushing the iptables
helped in resolving the issue:
sudo iptables -F
But be careful, you may want to set up proper firewall rules for your VPN server.