Koozali.org: home of the SME Server

http and https port change

Offline SeLLeRoNe

  • *
  • 8
  • +0/-0
    • Crazy Network
http and https port change
« on: September 30, 2010, 02:04:29 PM »
Hi everyone,

im new in this forum and new on using sme server.

Ive correctly configured each part of the server and openvpn, but, i need to run openvpn server on port 443.

For doing this correctly i need to change https port to another one, and, i would like to change default http port aswell.

Ive surfed online for those information and ive tryed to edit those two files

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35SSL00Listen443
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/35Listen80

Thats worked but not totally, cause when ive tryed to log back into server-manager i had a ssl error and wasnt able to use the web-gui till i restored original https port.

Anyone should point me in the right direction?

Thanks  a lot

Andrea
SeLLeRoNe - Andrea Iannucci
Crazy Network

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: http and https port change
« Reply #1 on: September 30, 2010, 02:29:55 PM »
Hi Andrea, welcome here

you should explain us the problem you are trying to solve, not your solution :-)

anyway, as I guess you are italian, please come to italian forum too

thank you

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: http and https port change
« Reply #2 on: September 30, 2010, 04:38:12 PM »
I doubt if the solution you are providing is a very good one. Defacto almost all web traffic is done over port 80 (http) and therefore all browsers default use port 80, choosing another port for your webserver makes it harder for external users to view your website. The same analogy applies to port 443 (https), which is the defacto standard port for encrypted communication for browsers.

Did you already look into running VPN on another port. Most of the times this can be easily achieved.

Indeed as Stefano already told you we are willing to help you and there is a enormous resource of knowledge available in the forums. Therefore it is much better if you state your desires, requirements and wishes so we can advise on the best approach or suggest other approaches that might also suit your requirements.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline SeLLeRoNe

  • *
  • 8
  • +0/-0
    • Crazy Network
Re: http and https port change
« Reply #3 on: September 30, 2010, 04:50:11 PM »
Hi cactu,

thanks for your reply.

I dont need web services at all, just the vpn one and the server-manager for check who is online via vpn and the user management.

Ive read some documentation but i didnt find any db command line to modify the httpd (suppose is apache) working ports

my only problem is just change the default port so i can reach the server-manager when needed and give 443 port to openvpn server

Best regards
SeLLeRoNe - Andrea Iannucci
Crazy Network

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: http and https port change
« Reply #4 on: September 30, 2010, 05:11:31 PM »
I'm talking with Andrea in italian forum

the problem is quite simple: clients behind a M$ ISA roflproxy (with only 80 an 443 ports open) should connect to a remote SME server via openvpn, hence the request.

the solution is to nat (SME is in server only mode) external tcp 443 to internal tcp 1194.. it should work.

in this way server-manager and all other web services could be reached internally without problems