Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't connect to internal webserver over external IP

Hello everybody,
perhaps I havn't read the manual carefully enough, but I just can't find a solution.
The Problem is as follows:
When I try to connect to my external static IP-Adress from the internal network, it isn't found.
My settings are as follows:

Internetconnection:
S-DSL connection with 144 kbyte
static IP-Adress 212.x.y.70
router-IP 212.x.y.69
broadcast 212.x.y.71
subnet 255.255.255.252

local network 192.168.100.0 255.255.255.0

ASL configuration:

eth0:
ip-adress:192.168.100.1
subnetmask: 255.255.255.0
NIC type: Davicom Semiconductor, Inc. Ethernet 100/10 MBit 
MAC address: 00:80:AD:79:59:C1 
IRQ / IO-port: 9 / 6000-60ff 
PCI device info: Bus 0 / Device 17 / Function 0 
NO PROXY ARP

eth1:
ip 212.x.y.70
subnet 255.255.255.252
NIC type: Realtek Semiconductor Co., Ltd. RTL-8029(AS) 
MAC address: 00:A0 2:14:C8:BB 
IRQ / IO-port: 10 / 6100-611f 
PCI device info: Bus 0 / Device 18 / Function 0 
NO ARP PROXY

No smtp-proxy
No http-proxy
DNS-Proxy:
external nameserver which my ISP gave me
interfaces to listen on: eth0
allowed networks: local network
No Socks-Proxy

Packet Filter:
localnetwork -> any -> any
localnetwork -> any -> localnetwork
any          -> http-> webserver
any          -> https -> webserver

Masquerading:
local network -> eth1

DNAT:
external IP http -> webserver http
external IP https -> webserver https

I can connect to the internal webserver from outside, but when I try to connect it from the internal network over its external IP, it isn't found. When I look for it over its internal IP, everything works fine.

What I wonder the most is, that I can ping the external IP from the internal network, but don't get any resolve of the other services on this IP.

What have I done wrong???


This thread was automatically locked due to age.
Parents
  • hello markus,

    if I understand you right, this will never work, because you NAT. and: WHY want you to connect from internal to internal trough your external IP?? 
    Now that I wrote This I am shure that this cannot work because of NAT!!

    greetings eldorado
  • Hello eldorado,
    now as you say it - it's normal not to get on my external IP when I nat it.
    The reason for my question was one notmentioned: I tried to connect to a similar IP, an onlineshop of a computerstore who got a similar IP because of the same ISP: 212.x.y.147, where x and y are the same as in our IP.
    I couldn't connect them, so I thought it was a malconfiguration of my ASL.
    I just talked to my ISP and he told me that he has the same problems with the IP of the computerstore. When I try to connect to a different 212.x.y-Adress, everything works fine. When I try to connect over a call-by-call-connection, it works ,too. It seems as if the computer malconfigured its rules.

    Seems to be solved

    Thanx
  • hi markus

    this is a subnet problem of your ISP I think.

    212.x.y.147 is a BCast address of Net 212.x.y.144 and not a Hostaddress. The Host must be 212.x.y.146.

    hope I'm right.

    greetings
    eldorado
Reply Children
  • hello eldorado,
    if it's a broadcast adress, how can it be to reach the site over a call-by-call-connection?

    Anyhow, I mailed your suggestion to my ISP.

    Thanx

    [ 18 January 2002: Message edited by: Markus Nagel ]

  • hello Marcel

    o.k, then I would need the Subnetmask of this computerstore and also the x.y of the IP address to calculate...

    sorry if I'm wrong..

    eldorado
  • Ok... You can not do what you are talking about. Here is a few ways that it can be and is done. 

    1. Epensive firewall solutions. have a feature that will do dns flipping. when a client request a dns lookup and it gets pasted throught the firewall it flips the returned query to the private address.

    2. Internal DNS server. Bring up a dns server just for you internal boxes and referance the privite address

    3. easiest option... host files

    Hope these help

    Jared