Hosting an external site with ISA- Keep Ext IP#s in IIS logs?

Discussion in 'Windows Small Business Server' started by Tim Klan, Mar 1, 2004.

  1. Tim Klan

    Tim Klan Guest

    Hello all!! We have been hosting our own website on SBS
    for quite some time without the ability to log external
    IPs in our IIS logs or our custom "logon attempt" log
    files for people who try to or do log on to a certain page
    on our site.

    We are using SBS with ISA, and in IIS we have set our site
    to "listen on all unassigned" for IP#. I have a page
    that writes a log file containing the username, date/time,
    and their IP address whenever someone logs in. The vast
    majority of the time, it is logging EVERYONE as
    192.168.0.1 (the local IP of the ISA server). Strangely
    enough, if I look back in my logs far enough I see that
    for a few days here and there it was logging the external
    IPs.

    It is not just my own custom logs that are seeing everyone
    as 192.168.0.1--even my IIS activity logs show every
    single page view, file download, etc as 192.168.0.1.
    True, the ISA logs keep track of everyone's originating
    IP, but none of the site statistic/logging programs such
    as smarterstats read anything except for IIS logs.

    I know this is not really a bug, since once ISA allows a
    connection it is considered a local user, but does anyone
    know how I could preseve the users' REAL ip # in my logs?
    It would be nice to just checkmark something in ISA saying
    preseve original IP.

    One of the things I want to do is show the users their own
    IP in the corner of our website, saying "your IP has been
    logged as xxx.xxx.xxx.xxx for your security". However,
    right now it would say 192.168.0.1 for everyone. I don't
    really want to give up ISA, nor do I want to put a second
    server up on a DMZ sitting outside of the ISA box. Our
    site gets low traffic, not worth a 2nd machine at all.

    Thanks in advance for any help or suggestions you can
    provide.
     
    Tim Klan, Mar 1, 2004
    #1
    1. Advertisements

  2. Tim Klan

    Mike R Guest

    Hi Tim,
    I had the same question, just hadn't asked it yet. i do know how to return
    the users address and even databse it. I would however like to know how to
    force the ISA logs to show ip address activity.
    So.. for you...you can use this script stuffed betweeen any html (or other)
    tags on the pages in which you want it shown:

    Logged IP = <%=Request.ServerVariables("REMOTE_ADDR")%>

    I hope someone answers the other question.
     
    Mike R, Mar 1, 2004
    #2
    1. Advertisements

  3. Tim Klan

    timklan Guest

    Mostly I just want it to be in our log files that are
    created every time someone attempts to or successfully
    logs onto a certain area of our site. I guess if I DON'T
    display the ip to the users, it won't give them the idea
    that they are being logged, so they won' try to get
    creative and do 0.0.0.0 etc. Right now everyone gets
    logged as 192.168.0.1 which makes the log files
    practically worthless for us.

    Plus programs that read the iis logs like smarterstats
    can't tell you # of unique visitors, most popular ips,
    etc.

    -Tim
     
    timklan, Mar 2, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.