Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Can't load my website from inside the network

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

Can't load my website from inside the network

  • Quote

Post by FcukThisGame » Mon Jan 03, 2011 2:46 pm

I'm not sure if this is a DNS issue, an apache issue, or an iptables issue.

I own a domain which points to my gentoo box at home (which also functions as my router). Externally it loads fine, internally it won't load. I have to point to my internal IP address to get the page to load.

TL;DR my domain works from the outside but not the inside.

I can post whatever configs are deemed relevant. Just tell me which!

Thanks!
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
Inodoro_Pereyra
Advocate
Advocate
User avatar
Posts: 2632
Joined: Fri Nov 03, 2006 4:56 pm
Location: En la otra punta del cable
Contact:
Contact Inodoro_Pereyra
Website

  • Quote

Post by Inodoro_Pereyra » Mon Jan 03, 2011 7:30 pm

Try adding the pair IP number - domain to an internal LAN box hosts file:

Code: Select all

echo "<LAN side IP number of your web server>  <domain.tld>  <host.domain.tld>" >> /etc/hosts
For example, if i would like to host google.com in my 192.168.0.15 box:

Code: Select all

echo "192.168.0.15    google.com    www.google.com"
If it works, the you have a lack of DNS resolution for your internal network, if it don't tell us more.

Cheer!
Mi Blog.

Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL.
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Mon Jan 03, 2011 7:39 pm

<host.domain.tld>
I don't have it set up as www.domain.tld. Does apache set up the www subdomain by default?

EDIT: it seems like it does.

I'll have to check it when I get home from work. My laptop with remote access must have shut down :(
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Tue Jan 04, 2011 6:03 am

is it that you can't connect to apache at all, or that you end up with some default landing page?

If you can't connect, suspect you need to something like:

Code: Select all

iptables -I FORWARD -s 192.168.1.80 -j ACCEPT
iptables -I FORWARD -d 192.168.1.80 -j ACCEPT
where 192.168.1.80 is the IP of your web server.

Also had to:

Code: Select all

echo 1 > /proc/sys/net/ipv4/ip_forward
I have to do this on the host for my KVM guests (of which .80 is one) - for a while I just gave the damn things public IP's, finally set up 1:1 NAT the other day so my PS3 could talk to the servers ^_^
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic