LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-18-2009, 05:32 PM   #1
fishdink
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Question php includes blocked by firewall


**SOLVED - This was due to my own stupidity** If I use my current iptables firewall settings my php includes from my own site get blocked by the firewall. If I use accept all tcp and udp it still does not work. If I use a default policy of accept all, then the php includes work which is not safe.

I am running a drupal 6 site on a centos 5.3 vps with apache 2.2.0 and php 5.2.6 w/ safe mode on.

He is my current iptable configuration.

Quote:
Chain VZ_FORWARD (1 references)
target prot opt source destination

Chain VZ_INPUT (1 references)
target prot opt source destination
DROP tcp -- ppp-net.infoweb.ne.jp/8 anywhere
DROP tcp -- 59.0.0.0/8 anywhere
DROP tcp -- 60.0.0.0/8 anywhere
DROP tcp -- 61.0.0.0/8 anywhere
DROP tcp -- 66.0.0.0/8 anywhere
DROP tcp -- 118.0.0.0/8 anywhere
DROP tcp -- 202.0.0.0/8 anywhere
DROP tcp -- softbank219000000000.bbtec.net/8 anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:65022
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpts:filenet-tms:65535
ACCEPT udp -- anywhere anywhere udp dpts:filenet-tms:65535
ACCEPT tcp -- CT123456 CT123456
ACCEPT udp -- CT123456 CT123456
ACCEPT tcp -- anywhere anywhere tcp dpts:ftp-data:ftp
ACCEPT tcp -- anywhere anywhere tcp dpts:filenet-tms:65535
ACCEPT tcp -- anywhere anywhere tcp dpt:ndmp

Chain VZ_OUTPUT (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp spt:http
ACCEPT tcp -- anywhere anywhere tcp spt:65022
ACCEPT tcp -- anywhere anywhere tcp spt:smtp
ACCEPT tcp -- anywhere anywhere tcp spt:pop3
ACCEPT tcp -- anywhere anywhere tcp spt:domain
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT tcp -- anywhere anywhere
ACCEPT udp -- anywhere anywhere
ACCEPT tcp -- CT123456 CT123456
ACCEPT udp -- CT123456 CT123456
ACCEPT tcp -- anywhere anywhere tcp spts:ftp-data:ftp
ACCEPT tcp -- anywhere anywhere tcp spts:filenet-tms:65535

Last edited by fishdink; 06-18-2009 at 06:16 PM. Reason: Marked as solved
 
Old 06-18-2009, 06:04 PM   #2
fishdink
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I'm stupid, was blocking my own subnet

I thought all of 66.0.0.0/8 was china and blocked it. Well I'm the dummy because my solar vps ip address is in the 66.187.*.* range.
 
Old 06-18-2009, 06:58 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Thanks for sharing the solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS blocked by the firewall Tom Douglas Linux - Software 2 06-29-2007 05:49 AM
VPN through firewall with blocked ports Peter1980 Linux - Networking 2 06-03-2005 04:26 AM
PHP includes lawadm1 Linux - Software 1 08-21-2004 04:20 PM
Ping Blocked Across Firewall mehargags Linux - Networking 2 01-11-2004 02:15 PM
php parsing some includes. others are not. toadeny Linux - Newbie 4 09-18-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration