Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: jugglingphil on November 03, 2010, 11:43:04 AM

Title: https blocked
Post by: jugglingphil on November 03, 2010, 11:43:04 AM
Hi, long time user of SME, 1st time poster.
Recently upgraded SME server to 7.5.1. This was a fresh install on new hardware. Since moving to 7.5.1 https sites can not be accessed, while http sites can. If I go out via another gateway, https and http work ok.
I can not see what is blocking this access. An pointers and help, greatly appreciated.
 
I have installed the dmc-mitel-portopening contrib, ports 80 and 443 are open. Squid.conf also lists port 443 as safe

Thanks in advance, Phil
Title: Re: https blocked
Post by: janet on November 03, 2010, 02:39:02 PM
jugglingphil
 
Quote
I have installed the dmc-mitel-portopening contrib

That is a very old contrib for sme5. You should uninstall it immediately.

SME server has a built in port opening and forwarding panel since sme6 I think.

While you might be a long time user, you have certainly not kept track of development.

In normal default use you do not need to open or forward any ports.
Remove the rpm and see if you still have problems.
If so, please explain more precisely what access from where to where that you have problems with.
Title: Re: https blocked
Post by: CharlieBrady on November 03, 2010, 03:31:55 PM
SME server has a built in port opening and forwarding panel since sme6 I think.

Port forwarding, yes, since before sme6. Port opening is implicit in service enabling/disabling.

OP however seems to be reporting a problem with outbound access. SME server blocks no outbound accesses. I suspect that OP's problem might be default gateway configuration and/or proxy configuration on client machines.

If this command on the server shows content, then https is not being blocked outbound from the server:

lynx -dump https://www.contribs.org/
Title: Re: https blocked
Post by: jugglingphil on November 03, 2010, 03:45:08 PM
I have removed port-opening.
still can not access https sites.
I know that this isn't normal, and I doubt it's a bug as there are no other reports (as I can see) to this happening for anyone else.

From a PC on the network, with DNS and Default gateway pointing to SME server (server and gateway) can access http but not https.
http proxy is enable on SME server but not on PC.

If http proxy disabled can not access http or https, same if proxy set on PC (internet options)
PC config did not change from old SME server runnning 7.0

From SME server, lynx -dump command shows plenty of content.
Title: Re: https blocked
Post by: Igi2003 on November 03, 2010, 10:19:17 PM
I had this Problem too when my WAN Connection is enabled in the configuration db. After Update I must disable WAN, because my SME connects via ppp0.
Code: [Select]
db configuration setprop wan status disabled signal-event....post....and reboot... don“t forget
Only if your WAN Connection is setup via adsl-setup, not console...

Igi
Title: Re: https blocked
Post by: CharlieBrady on November 03, 2010, 11:50:14 PM
Only if your WAN Connection is setup via adsl-setup, not console...

Why are you using adsl-setup and not the console?
Title: Re: https blocked
Post by: Igi2003 on November 04, 2010, 12:10:45 AM
Because my connection was not established automatically when using PPPoE Setup over console. Then I tried over adsl-setup, and then the PPPoE connection comes up after bootup SME. Even when WAN Connection (wan status enabled in config db) is enabled too, I have Problems with https (SSL) Sites. My Provider drop the first connection wenn the second comes up. So the two connections kicks one the other permanently till I disable wan connection.

Igi
Title: Re: https blocked
Post by: CharlieBrady on November 04, 2010, 01:51:30 AM
Because my connection was not established automatically when using PPPoE Setup over console.

You should have reported the problem via the bug tracker, so that whatever the problem was could be diagnosed, and fix in the SME server software if required.

I would expect you will have a variety of problems if you attempt to use server-gateway mode with the WAN service disabled, and custom adsl_setup configuration.
Title: Re: https blocked
Post by: axessit on November 04, 2010, 10:49:32 AM
I have my router setup with DHCP for LAN client, only client is SME, with SME as DHCP client using MAC address as identifier on it's external NIC. I have port forward rule for 443 on my router so I can access my webmail from internet. Maybe the router is blocking or forwarding 443 to another IP as a new server will have a new ethernet MAC address and may not have the same IP as the old hardware. You can see your external IP on the SME server manager "review configuration" screen.

I have also heard of the wrong MTU setting on your router, without getting into a debate, this should be defaulted to 1500 if you can see anywhere to adjust it. It makes SSL sessions break if set wrong, normal browsing is OK. But I wouldn't go here first.

When you say if you use another gateway all is OK, is this using the same adsl router or another?

Title: Re: https blocked
Post by: Igi2003 on November 04, 2010, 06:14:23 PM
You should have reported the problem via the bug tracker, so that whatever the problem was could be diagnosed, and fix in the SME server software if required.

I would expect you will have a variety of problems if you attempt to use server-gateway mode with the WAN service disabled, and custom adsl_setup configuration.
My SME works fine since three years with this config. Only afer Update if wan is enabled, he had Problems. And he works in Server and Gateway mode.
Title: Re: https blocked
Post by: Stefano on November 04, 2010, 06:51:17 PM
My SME works fine since three years with this config. Only afer Update if wan is enabled, he had Problems. And he works in Server and Gateway mode.

fine.. but if something doesn't work out of the box it should be reported in bugzilla..
other people could expreinece this issue
thank you
Title: Re: https blocked
Post by: jugglingphil on November 05, 2010, 10:12:43 AM
Gone a bit off topic here, I definitely don't want to disable my WAN side.

The PCs, router and ADSL line has not changed.
The old SME 7.0 server was moved to a new Local IP address, while the new 7.5.1 server given the old local IP of the 7.0 server. Both set the same on the external side. At that point I have started to experience problems with https access.
So problem is either with 7.5.1 (unlikely as on a different company I'm involved with 7.5.1 works no problem), or with the way I set it up. I'm thinking best to wipe the new 7.5.1 server and start again, however I won't be able to physically get to the server to do this until next week.
Title: Re: https blocked
Post by: Stefano on November 05, 2010, 10:48:25 AM
I'm thinking best to wipe the new 7.5.1 server and start again, however I won't be able to physically get to the server to do this until next week.

worst way to act.. you should discover and understand WHY you have such an issue, then, eventually, open a bug
Title: Re: https blocked
Post by: jugglingphil on November 05, 2010, 11:07:02 AM
Stefano, that's what I've been trying all week, unfortunately I'm not getting anywhere.
Title: Re: https blocked
Post by: Stefano on November 05, 2010, 11:18:18 AM
ok..

you say that
- from SME console you can reach https sites (you can try again with elinks https://a_test_site)
- from internal/lan clients you can't.

is your SME http proxy in transparent mode? did you try to disable (if enabled) squid?
did you try to see from SME console and iptraf and/or tcpdump if there's https traffic?
Title: Re: https blocked
Post by: janet on November 05, 2010, 11:59:35 AM
jugglingphil

Perhaps you have overlooked Charlies advice, "I suspect that OP's problem might be default gateway configuration and/or proxy configuration on client machines."
Charlie is pretty good at his analysis & hits the mark in most cases.
You demonstrated that your sme server does have https access to the net with the command
lynx -dump https://www.contribs.org/
ie "If this command on the server shows content, then https is not being blocked outbound from the server".

So the problem is from workstation to sme or at the workstation, I don't see that rebuilding sme will fix that incorrect configuration.

On sme do
ifconfig

On workstation do
ipconfig /all
and post both outputs back here  for comment/analysis.
Title: Re: https blocked
Post by: jugglingphil on November 05, 2010, 12:31:43 PM
Stefano, Mary (and Charlie) thank you for your responses.
I will follow advice and post results shortly.
Title: Re: https blocked
Post by: CharlieBrady on November 05, 2010, 01:20:08 PM
The old SME 7.0 server was moved to a new Local IP address, while the new 7.5.1 server given the old local IP of the 7.0 server. Both set the same on the external side.

Do both have DHCP enabled?

Have you checked the default gateway address on any of the client machines?
Title: Re: https blocked
Post by: Igi2003 on November 05, 2010, 09:34:13 PM
Gone a bit off topic here, I definitely don't want to disable my WAN side.
My WAN side is not disabled. My PPPoE connection is configured with "adsl-setup" and works. My SME works in Server and Gateway mode and has two NICs, one internal and one external.
Only my "WAN Service" is disabled.