Open Port443 on Linux Ubuntu 12.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












i have a Linux Ubuntu 12.04.3 LTS with Elastic Search installed. the Elastic Search is configured to accept the local requests via HTTP. i have a php website on the same server. it was on port 80 but it is required to use HTTPS on port 443.



i am having problem configuring the firewall/iptables to make port 443 available.



tried:



sudo ufw allow https


but it still shows inactive on the status:
sudo ufw status verbose



#Status: inactive


also tried to add port 443 to the iptables, but made no difference afterwards:



iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT


netstat does show 443 is listening to apache.



netstat -ntlp | grep LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 30542/apache2


when i test the site, it shows "The connection has timed out" err, also tried curl cmd on the server, same result. and nothing appeared on the access or error logs.



help to provide the website urls but privately.



any helps, comments, tips will be much appreciated!










share|improve this question























  • here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
    – user2146944
    Sep 13 at 4:51














up vote
1
down vote

favorite












i have a Linux Ubuntu 12.04.3 LTS with Elastic Search installed. the Elastic Search is configured to accept the local requests via HTTP. i have a php website on the same server. it was on port 80 but it is required to use HTTPS on port 443.



i am having problem configuring the firewall/iptables to make port 443 available.



tried:



sudo ufw allow https


but it still shows inactive on the status:
sudo ufw status verbose



#Status: inactive


also tried to add port 443 to the iptables, but made no difference afterwards:



iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT


netstat does show 443 is listening to apache.



netstat -ntlp | grep LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 30542/apache2


when i test the site, it shows "The connection has timed out" err, also tried curl cmd on the server, same result. and nothing appeared on the access or error logs.



help to provide the website urls but privately.



any helps, comments, tips will be much appreciated!










share|improve this question























  • here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
    – user2146944
    Sep 13 at 4:51












up vote
1
down vote

favorite









up vote
1
down vote

favorite











i have a Linux Ubuntu 12.04.3 LTS with Elastic Search installed. the Elastic Search is configured to accept the local requests via HTTP. i have a php website on the same server. it was on port 80 but it is required to use HTTPS on port 443.



i am having problem configuring the firewall/iptables to make port 443 available.



tried:



sudo ufw allow https


but it still shows inactive on the status:
sudo ufw status verbose



#Status: inactive


also tried to add port 443 to the iptables, but made no difference afterwards:



iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT


netstat does show 443 is listening to apache.



netstat -ntlp | grep LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 30542/apache2


when i test the site, it shows "The connection has timed out" err, also tried curl cmd on the server, same result. and nothing appeared on the access or error logs.



help to provide the website urls but privately.



any helps, comments, tips will be much appreciated!










share|improve this question















i have a Linux Ubuntu 12.04.3 LTS with Elastic Search installed. the Elastic Search is configured to accept the local requests via HTTP. i have a php website on the same server. it was on port 80 but it is required to use HTTPS on port 443.



i am having problem configuring the firewall/iptables to make port 443 available.



tried:



sudo ufw allow https


but it still shows inactive on the status:
sudo ufw status verbose



#Status: inactive


also tried to add port 443 to the iptables, but made no difference afterwards:



iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT


netstat does show 443 is listening to apache.



netstat -ntlp | grep LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 30542/apache2


when i test the site, it shows "The connection has timed out" err, also tried curl cmd on the server, same result. and nothing appeared on the access or error logs.



help to provide the website urls but privately.



any helps, comments, tips will be much appreciated!







ubuntu iptables firewall ssl https






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 13 at 5:18









RalfFriedl

4,1251625




4,1251625










asked Sep 13 at 4:50









user2146944

61




61











  • here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
    – user2146944
    Sep 13 at 4:51
















  • here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
    – user2146944
    Sep 13 at 4:51















here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
– user2146944
Sep 13 at 4:51




here is the actually Error on fiddler: 502, it is interesting to see the protocol was still HTTP. # Result Protocol Host URL Body Caching Content-Type Process Comments Custom 23 502 HTTP Tunnel to ~~~~.com:443 512 no-cache, must-revalidate text/html; charset=UTF-8 iexplore:6736
– user2146944
Sep 13 at 4:51










1 Answer
1






active

oldest

votes

















up vote
0
down vote













If you're on a Debian based Linux system, as you are(Ubuntu), I'd suggest using ufw.



Status inactive means you have not activated the firewall even though you might (or might not) have configured the rules. Try using:



ufw enable



Followed by,



ufw allow https



Now, you could check the status by using



ufw status



Edit: You need to add ufw to the startup too to enable ufw rules to take effect every time you reboot your machine.






share|improve this answer




















  • hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
    – user2146944
    Sep 13 at 5:26










  • @user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
    – 7_R3X
    Sep 13 at 5:28










  • yes 443 is listening to apache. check the result of the cmd on my original question.
    – user2146944
    Sep 13 at 5:45










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468695%2fopen-port443-on-linux-ubuntu-12-04%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













If you're on a Debian based Linux system, as you are(Ubuntu), I'd suggest using ufw.



Status inactive means you have not activated the firewall even though you might (or might not) have configured the rules. Try using:



ufw enable



Followed by,



ufw allow https



Now, you could check the status by using



ufw status



Edit: You need to add ufw to the startup too to enable ufw rules to take effect every time you reboot your machine.






share|improve this answer




















  • hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
    – user2146944
    Sep 13 at 5:26










  • @user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
    – 7_R3X
    Sep 13 at 5:28










  • yes 443 is listening to apache. check the result of the cmd on my original question.
    – user2146944
    Sep 13 at 5:45














up vote
0
down vote













If you're on a Debian based Linux system, as you are(Ubuntu), I'd suggest using ufw.



Status inactive means you have not activated the firewall even though you might (or might not) have configured the rules. Try using:



ufw enable



Followed by,



ufw allow https



Now, you could check the status by using



ufw status



Edit: You need to add ufw to the startup too to enable ufw rules to take effect every time you reboot your machine.






share|improve this answer




















  • hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
    – user2146944
    Sep 13 at 5:26










  • @user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
    – 7_R3X
    Sep 13 at 5:28










  • yes 443 is listening to apache. check the result of the cmd on my original question.
    – user2146944
    Sep 13 at 5:45












up vote
0
down vote










up vote
0
down vote









If you're on a Debian based Linux system, as you are(Ubuntu), I'd suggest using ufw.



Status inactive means you have not activated the firewall even though you might (or might not) have configured the rules. Try using:



ufw enable



Followed by,



ufw allow https



Now, you could check the status by using



ufw status



Edit: You need to add ufw to the startup too to enable ufw rules to take effect every time you reboot your machine.






share|improve this answer












If you're on a Debian based Linux system, as you are(Ubuntu), I'd suggest using ufw.



Status inactive means you have not activated the firewall even though you might (or might not) have configured the rules. Try using:



ufw enable



Followed by,



ufw allow https



Now, you could check the status by using



ufw status



Edit: You need to add ufw to the startup too to enable ufw rules to take effect every time you reboot your machine.







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 13 at 5:18









7_R3X

605620




605620











  • hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
    – user2146944
    Sep 13 at 5:26










  • @user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
    – 7_R3X
    Sep 13 at 5:28










  • yes 443 is listening to apache. check the result of the cmd on my original question.
    – user2146944
    Sep 13 at 5:45
















  • hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
    – user2146944
    Sep 13 at 5:26










  • @user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
    – 7_R3X
    Sep 13 at 5:28










  • yes 443 is listening to apache. check the result of the cmd on my original question.
    – user2146944
    Sep 13 at 5:45















hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
– user2146944
Sep 13 at 5:26




hi 7_R3X, thanks for your comment, i have run the cmd as stated on my original question. ufw status shows: To Action From -- ------ ---- 443 ALLOW IN Anywhere 443 ALLOW IN Anywhere (v6) but it doesn't fix the issue.
– user2146944
Sep 13 at 5:26












@user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
– 7_R3X
Sep 13 at 5:28




@user2146944 : Try running sudo netstat -tulpen | grep LISTEN and see if 443 is open or not.
– 7_R3X
Sep 13 at 5:28












yes 443 is listening to apache. check the result of the cmd on my original question.
– user2146944
Sep 13 at 5:45




yes 443 is listening to apache. check the result of the cmd on my original question.
– user2146944
Sep 13 at 5:45

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468695%2fopen-port443-on-linux-ubuntu-12-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)