Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Can I ask how you are using eth0? If I understand you correctly, ppp0 is your connection to the INternet, and your ifconfig output shows that eth0 is using IPv6 while ppp0 is using IPv4. If my understanding of how LISTEN works is right, Apache should be listening to all interfaces the way you have it set up, however, it might be worth forcing it to listing to the ppp0 IP address to see if somehow it is getting confused. So if you replace Listen 80 with Listen 189.18.214.20:80 in your httpd.conf and restart Apache (only use whatever IP address you got from your ISP) it might work.
This makes things more complicated. I was under the impression that your box is behind a modem/router and you are doing the forwarding in that router. From ifconfig it's your box that is doing the router also.
So, you have to forward ipv4 packets from ppp0 to eth0 (ipv6).
If you don't need ipv6 for some specific reason, blacklist the ipv6 module and give your box a fixed ipv4 IP.
Also run:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
to enable ip forwarding from ppp0 to eth0, flush iptables (see post #27) and test.
Or better, use this script to create a set of rules and the forwarding needed for your box.
I do not use ipv6 I get ride of it in firefox, someone can ping me, someone can talk with me on skype, someone can send a mail to me and I receive it on Thunderbird but nobody can access my pages on the apache server! @!#$@#$@#@@@!#@!#
I cleared iptables, I tried change my httpd.conf (listen IPADRESS:80) I tried to change the port (80, 8080, 7777, 6372, 8000), my router have the firewall disabled any traffic can pass through it. I really do not know what to do I'm thinking about format it and return to my slackware 12 (but I do not want to do it).
Apache needs just a "Listen 80" to listen on all interfaces on port 80. If it finds a ipv6 interface it will listen on that.
If you don't want to go back to Slack-12, do as I've already told you:
Blacklist the ipv6 module
Use netconfig (or whatever way you prefer) to assign an ipv4 address to eth0
Since you can't find the script that initializes iptables, flush'em. Or better use the quicktables script (the link in my previous post) to setup iptables, NAT and port forwarding
I blacklisted ipv6, and apened 80 on iptables and when I start apache it works (but no remotely), but my ifconfig changes and netstats returns:
bash-4.1# netstat -tanpl|grep httpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5147/httpd
and my ifconfig:
1. apache listens on all available ipv4 interfaces.
2. You haven't assign an IP address in eth0. Use netconfig, or if your box is standalone, use temporarily:
Code:
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
3. What is your iptables rules? Flush them and see if you can access apache remotely
I assignbed the ip adress to eth0, and flushed iptables not was changed.
My iptables remain the same, I flush it or add 80 port on it when I try to up the server ipv6 is blacklisted it make my internet faster too.
I'm losing alternatives.
Huh, strange?
Does apache on windows listens on port 80? Or you're using some other higher port?
If you didn't say that apache is accessible when you run it on windows, I would suspect that your ISP is blocking port 80.
Another thing to try, is to change the Listen directive to:
Code:
Listen 1080
and see if you can access it, using http://x.x.x.x:1080 (where x.x.x.x is your public IP)
Now my modem/router magicaly changes itself and blocked my ftp (it was clear and never happened nothing with it), yes on windows is 80 port and works pretty well, I reseted the modem/router and configured it right again but nothing happens. I'm crazing! I think my neighboor want to kill me because everyday I call him for test ahshsahsahsahsahsah.
Now my modem/router magicaly changes itself and blocked my ftp (it was clear and never happened nothing with it), yes on windows is 80 port and works pretty well, I reseted the modem/router and configured it right again but nothing happens.
Is it a modem, or a modem/router? Since you have a ppp0 interface on your linux box I guess it's just a modem.
Using this configuration you were able to ftp in your box from the internet?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.