NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Edwin Hannan on June 06, 2017, 11:06:27 AM

Title: WhiteList of public ip address
Post by: Edwin Hannan on June 06, 2017, 11:06:27 AM
Hi All

Been searching is there is some way to only allow a list public ip address access to the NT web server?

Useful when allowing business partners access only.

Can find banned IP but not allowed Ip

Appreciate any help on this

Many thanks

Ed

Edwin Hannan
C10, NT 9
Title: Re: WhiteList of public ip address
Post by: Bruce on June 06, 2017, 11:08:40 PM
Hi Edwin,

no, there's no white-list facility built in.
Perhaps put a firewall in front of the server and allow it to filter the traffic?

cheers
Bruce

Title: Re: WhiteList of public ip address
Post by: Edwin Hannan on June 07, 2017, 02:24:45 AM
Hi Bruce

Yep, suggested that to the network admin, only allow through at the gateway :-)

Cheers

Ed

Edwin Hannan
Title: Re: WhiteList of public ip address
Post by: Edwin Hannan on June 08, 2017, 02:20:59 AM
Hi All

If it is not built in can I test for allowed IP address's as access is requested, I think so but its been a while, how would I do this?

Any tips / help greatly appreciated

Many thanks

Ed

Edwin Hannan
C10 abc, NT 9
Title: Re: WhiteList of public ip address
Post by: Bruce on June 08, 2017, 06:56:29 AM
>> can I test for allowed IP address's as access is requested,

You can, but it would really slow things down. Here's some (untested) possible code;
In WebHandler procedure,
ProcessRequest method
before the parent call

  self.RequestData = p_String
  if allowed(self.requestdata.fromip) = false
    return
  end

Cheers
Bruce