Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
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
/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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.