Page 1 of 1

EFA webgui (MailWatch) change to HTTPS

Posted: 12 Apr 2014 18:16
by paegg
Hi,

I've installed the EFA 3.0.0.1 VM image, updated all available packages & upgraded to EFA 3.0.0.4 & rebooted.

So far all seems okay, except when I want to activate HTTPS (& reroute port 80 to 443 as well).
I go into EFA configuration (SSH) via option 11 (Apache settings) and activate HTTPS.

After that it's adios webinterface for MailWatch, neither HTTP nor HTTPS respond anymore. (IP, hostname, etc).
Only webmin is still responsive (https://ipaddress:10000)
Whatever I then try to change back via SSH or do a reboot, MailWatch webgui stays unavailable.

I tried several times by restoring a VM snapshot, try a slightly different approach, but same result each time

Not sure if this is a bug or some config issue at my end, any suggestions would be great :)

Thanks!
Paul.

Re: EFA webgui (MailWatch) change to HTTPS

Posted: 12 Apr 2014 18:39
by shawniverson
What does the following reveal?

Code: Select all

sudo iptables -L
and the following

Code: Select all

sudo service httpd status

Re: EFA webgui (MailWatch) change to HTTPS

Posted: 12 Apr 2014 19:01
by shawniverson
Found the bugs

The iptables-save command is writing to stdout instead of the config file

Edit /etc/sysconfig/iptables

Add the following after the port 80 line:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

Code: Select all

sudo service iptables reload

Re: EFA webgui (MailWatch) change to HTTPS

Posted: 14 Apr 2014 00:24
by paegg
Hi,

That did the trick indeed, HTTPS is now accessible, thanks very much!

But now both HTTP (80) and HTTPS (443) are accepted if I'm not mistaken?
If I want to disable HTTP, can I just delete or remark the 'port 80' line out?

A cleaner solution would be to redirect HTTP to HTTPS, would the following addition to iptables be correct?

Code: Select all

-A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 443
Thanks!
Paul.

Re: EFA webgui (MailWatch) change to HTTPS

Posted: 16 Apr 2014 15:29
by Mr. Happy
I'm interested in this too...
Anybody??

Re: EFA webgui (MailWatch) change to HTTPS

Posted: 18 Apr 2014 19:53
by shawniverson
That looks good. It should work.

Wouldn't need to rewrite the URL with that prerouting directive...