Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
http:// works from LAN but not WAN only https://
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Sat Apr 16, 2005 3:04 pm    Post subject: http:// works from LAN but not WAN only https:// Reply with quote

Hi all
I have a problem with access to my webserver, from the LAN i can do http://nordis.homelinux.net and I get to the webserver pages but from the outside only https:// works.
I run shorewall on the same server and I have set Allow Web AND ACCEPT http,https all -> fw but why don't http:// work from the outside?
_________________
emerge the world
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 3:11 pm    Post subject: Reply with quote

What happens if you shut down iptables. Just to make sure it is a problem with the firewall.
Did you type your IP in DNS record in your sitelutions account correctly ??
Back to top
View user's profile Send private message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Sat Apr 16, 2005 3:16 pm    Post subject: Reply with quote

I have the address reg'd at dyndns and updates with a perl script
I haven't looked in to if it works when I shutdown shorewall, I'll try that
_________________
emerge the world
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 3:22 pm    Post subject: Reply with quote

DNS query doesn't find nordis.homelinux.net.
Did you create this subdomain very recently ??? Perhaps you should just wait for a couple of hours ...
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 3:24 pm    Post subject: Reply with quote

Aha, dyndns ... I forgot ... same thing.
Back to top
View user's profile Send private message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Sat Apr 16, 2005 4:04 pm    Post subject: Reply with quote

my real IP is 83.216.100.99
_________________
emerge the world
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 5:56 pm    Post subject: Reply with quote

I can see that now nordis.homelinux.net resolves to your IP, but I still can't acces your webpage. Can you post your iptables rules.
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 6:01 pm    Post subject: Reply with quote

Ammm ... and the result of
Code:
#netstat -natup

on you server
Back to top
View user's profile Send private message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Sat Apr 16, 2005 6:58 pm    Post subject: Reply with quote

Code:
# netstat -natup
tcp        0      0 :::80                   :::*                    LISTEN      24187/apache2
tcp        0      0 :::443                 :::*                    LISTEN      24187/apache2


Code:
# iptables -L
Chain AllowWeb (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https

Chain net2fw (1 references)
target     prot opt source               destination
AllowWeb   all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http

_________________
emerge the world
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 7:29 pm    Post subject: Reply with quote

If there there is no previous rule blocking port 80 there should be no problem with iptables, which is obvious. Are there really no previous rules referring to port 80 before chains AllowWeb and net2fw ??

Is there a hardware router with a firewall enabled between outside world and your server ???
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 7:46 pm    Post subject: Reply with quote

What does the

# grep -e Listen -e BindAddress /etc/apache2/conf/apache2.conf

say?
Back to top
View user's profile Send private message
mekong
Tux's lil' helper
Tux's lil' helper


Joined: 23 Apr 2004
Posts: 93
Location: Rdam - NL - EU

PostPosted: Sat Apr 16, 2005 8:45 pm    Post subject: Reply with quote

His netstat output shows apache process with same PID listen on both ports 80 443, so I think nothing wrong with his apache config. I think it's his ISP blocking port 80 to outside. Some ISP don't allow servers.
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 9:02 pm    Post subject: Reply with quote

Mekong, I think you are right.
This must be very frustrating ...
Perhaps there is a workaround through dyndns setting - Webhop / Redirect URL. I am not sure if you can redirect it to another port than 80 ... but it is worth trying.
Back to top
View user's profile Send private message
Bojan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Oct 2004
Posts: 145
Location: € Matrix

PostPosted: Sat Apr 16, 2005 9:20 pm    Post subject: Reply with quote

:D :D :D
http://support.sitelutions.com/?_a=knowledgebase&_j=questiondetails&_i=43
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum