LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2004, 05:22 PM   #1
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
no one can see my webpage!


I've got a small server running RH9, and want it to be able to serve some PHP pages I've set up on it.

I can surf the net, and other machines on my network can get to my machine, but no one outside of the network can see my pages.

I've been told this has something to do with firewalls, Iptables and/or IPchains. But how do I fix this? Do I need to reset something? The Howto's I've read make no sense to me.

Could someone please give some easy to understand newbie instructions?
Thanks!

killjoyce@yahoo.com
 
Old 04-05-2004, 05:26 PM   #2
bluedude2288
Member
 
Registered: Nov 2003
Location: Akron, Ohio
Distribution: -->Debian<--, RH, Android, Ubuntu
Posts: 62

Rep: Reputation: 15
How do you connect to the internet, router? If you have a router you need to open up port 80 and foreward it to the ip of your server on the network, if you connect directly to the internet with the Linux machine, I can't help, I don't know how to use iptables.
 
Old 04-05-2004, 05:52 PM   #3
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
When I do nmap of my IP address it shows that port 80 HTTP is open. As well as HTTPS on port 443.

I am on a school network, so I really don't know how its connected other than to one of the hubs that are wired into all the classrooms.

(I am not sure if that is helpful to anyone.)


Thanks again.
 
Old 04-05-2004, 06:01 PM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Then it probably is your firewall on the linux that stops you.
The command iptables -L will show the settings. Post them here and we can get you up and running.
 
Old 04-06-2004, 01:58 AM   #5
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
By outside the network do you mean outside the school?

if you are plugged into the school network then only those who are in your school network will be able to see it unless the gateway/router that the school is using has setup the routing to go to your PC. I would find this unlikely in a school environment.

If other people on your network can not see it then it would be your firewall.

try running this script
Code:
#!/sbin/sh

################################
#         Definitions          #
################################

IPTABLES="/sbin/iptables"
NETWORK=eth1
IP="192.168.1.9"
# set IP to your local IP

################################
#          House Work          #
################################

# Clear out any existing firewall rules, and any chains that might have
# been created.
$IPTABLES -F
$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -F FORWARD
$IPTABLES -F -t mangle
$IPTABLES -F -t nat
$IPTABLES -t nat -X
$IPTABLES -t mangle -X
$IPTABLES -X

################################
#        Default Rules         #
################################

$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT

################################
#             Rules             #
################################

$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A INPUT -i $NETWORK -d $IP -j ACCEPT
i think this should work fine...
 
Old 04-06-2004, 12:21 PM   #6
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
this is the output from iptables

This is what I get when I run iptables -L

/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_tables.o: init_module:
Device
or resource busy
Hint: insmod errors can be caused by incorrect module parameters,
including inva
lid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_tables.o: insmod
/lib/modules
/2.4.20-8/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_tables.o: insmod
ip_tables fa
iled
iptables v1.2.7a: can't initialize iptables table `filter': iptables who?
(do yo
u need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
 
Old 04-06-2004, 03:44 PM   #7
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
the error is pretty self explanatory, how did you set up redhat9? Did you do a default install? Did you download and complie iptables later or try to upgrade it or something?
 
Old 04-06-2004, 03:53 PM   #8
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
I did the default, upgraded over RH 6.2 ( I think)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Webpage How-To Linux~Powered Programming 5 03-19-2007 06:20 PM
Webpage troycus Linux - Software 4 06-16-2005 01:26 PM
webpage sanjibgupta Linux - Newbie 3 10-11-2004 04:09 AM
How can I browse webpage clearly? bin_shell Linux - Software 1 03-03-2004 05:10 AM
Help with webpage lockejr Linux - General 16 03-28-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration