Open Port443 on Linux Ubuntu 12.04

Clash 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!
ubuntu iptables firewall ssl https
add a comment |Â
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!
ubuntu iptables firewall ssl https
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
add a comment |Â
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!
ubuntu iptables firewall ssl https
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
ubuntu iptables firewall ssl https
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
add a comment |Â
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
add a comment |Â
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.
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 runningsudo netstat -tulpen | grep LISTENand 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
add a comment |Â
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.
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 runningsudo netstat -tulpen | grep LISTENand 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
add a comment |Â
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.
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 runningsudo netstat -tulpen | grep LISTENand 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
add a comment |Â
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.
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.
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 runningsudo netstat -tulpen | grep LISTENand 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
add a comment |Â
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 runningsudo netstat -tulpen | grep LISTENand 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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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