| Linode Forum https://forum.linode.com/ |
|
| Strange Problem With Curl, Port 80, and IPTables - RESOLVED https://forum.linode.com/viewtopic.php?f=19&t=10391 |
Page 1 of 1 |
| Author: | jziering [ Tue Sep 03, 2013 11:00 pm ] |
| Post subject: | Strange Problem With Curl, Port 80, and IPTables - RESOLVED |
Hello all, I'm dealing with a challenging problem on my server that's causing a lot of symptoms. I've narrowed down what I think is the root problem. Here's where I'm at: 1) My Curl is not able to access Port 80. Other ports work no problem. So I can CURL any https URL, but not http URLS. 2) The problem isn't CURL, as when I use SVN, I can use repos that are https, but not http. 3) IP Tables seems to be OK as far as configuration goes, but there does appear to be a problem when I restart it. Here's what happens when I run iptables -; https://pastebin.linode.com/8064 4) Here's what happens when I issue service iptables restart ![]() As you can imagine, this is all quite frustrating since PHP wraps CURL and pretty much everything is broken. Yum is even broken. Thank you, Josh |
|
| Author: | Ttech [ Tue Sep 03, 2013 11:11 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
What does iptables -S say? I'm leaning toward your output rules. |
|
| Author: | jziering [ Tue Sep 03, 2013 11:16 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
Quote: root@li [~]# iptables -S
-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT |
|
| Author: | dwfreed [ Tue Sep 03, 2013 11:23 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
jziering wrote: Hello all, I'm dealing with a challenging problem on my server that's causing a lot of symptoms. I've narrowed down what I think is the root problem. Here's where I'm at: 1) My Curl is not able to access Port 80. Other ports work no problem. So I can CURL any https URL, but not http URLS. 2) The problem isn't CURL, as when I use SVN, I can use repos that are https, but not http. 3) IP Tables seems to be OK as far as configuration goes, but there does appear to be a problem when I restart it. Here's what happens when I run iptables -; https://pastebin.linode.com/8064 4) Here's what happens when I issue service iptables restart ![]() As you can imagine, this is all quite frustrating since PHP wraps CURL and pretty much everything is broken. Yum is even broken. Thank you, Josh Pastebin the output of the following when curl is having this problem: iptables-save For #4, that is a problem with CentOS not understanding what the security table is. There's a patch for it, but the site hosting it is currently down, and I can't find another copy anywhere. |
|
| Author: | jziering [ Tue Sep 03, 2013 11:33 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
https://p.linode.com/8065 |
|
| Author: | Ttech [ Tue Sep 03, 2013 11:35 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
out of curiosity what are the contents of /etc/sysconfig/iptables? |
|
| Author: | jziering [ Tue Sep 03, 2013 11:39 pm ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables |
Here you are: https://p.linode.com/8066 |
|
| Author: | jziering [ Wed Sep 04, 2013 12:28 am ] |
| Post subject: | Re: Strange Problem With Curl, Port 80, and IPTables - RESOL |
Thanks Linode Support and everyone who responded. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|