NetTalk Central

Author Topic: WhiteList of public ip address  (Read 4141 times)

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
WhiteList of public ip address
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: WhiteList of public ip address
« Reply #1 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


Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: WhiteList of public ip address
« Reply #2 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

Edwin Hannan

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Email
Re: WhiteList of public ip address
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: WhiteList of public ip address
« Reply #4 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