Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] web server can't see out but others can see in



On Tue, Sep 25, 2012 at 05:05:08PM -0400, Eric Chadbourne wrote:
> Hi All,
> 
> I have an odd problem.
> 
> I have an unbuntu web sever in virtualbox.  We're sitting behind a
> small business cisco router.
> 
> I did the following:
> 1.  I gave the server a static ip in virtualbox and on the router.
> 2.  Opened port 80 on the cisco device.  Any source and any ip to
> static ip.  Firewall is disabled on server.
> 3.  Enabled One-to-One NAT.  This beast is new to me but nothing
> worked until I did it.

1:1 NAT means that for every IP you have inside the Cisco router, you
need an associated public IP on the outside.  You probably don't have
that.  You probably need 1:Many NAT so you can share a single outside
IP with many inside IPs.

> My web server is visible from the world and is visible on our lan.
> Oddly my server cannot see out.  For example:
> 
> eric at webserver1:~$ ping google.com
> ping: unknown host google.com

What is in /etc/resolv.conf ?

> eric at webserver1:~$ sudo apt-get update
> Err http://us.archive.ubuntu.com precise InRelease

Can you ping your gateway router?  Try pinging the default route from
the results of the "ip -4 route" command:

# ip -4 route
...
default via a.b.c.d dev ethX

# ping -n a.b.c.d



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org