LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   no one can see my webpage! (https://www.linuxquestions.org/questions/linux-networking-3/no-one-can-see-my-webpage-166559/)

killjoyce 04-05-2004 05:22 PM

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

bluedude2288 04-05-2004 05:26 PM

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.

killjoyce 04-05-2004 05:52 PM

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.

ugge 04-05-2004 06:01 PM

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.

chrisfirestar 04-06-2004 01:58 AM

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...

killjoyce 04-06-2004 12:21 PM

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.

bentman78 04-06-2004 03:44 PM

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?

killjoyce 04-06-2004 03:53 PM

I did the default, upgraded over RH 6.2 ( I think)


All times are GMT -5. The time now is 07:49 PM.