Forum Discussion
Mike_Rausch_628
Nimbostratus
Mar 08, 2007Only allow users from specific Ip address to gain access
I am trying to use a corporate backup tool and they are telling me that I need to open a range of ports on my server from 600-13800 or something like that. I have created a Virtual Server that allows ...
JRahm
Admin
Mar 08, 2007Sorry, had some extra brackets in there around the class. This may be simpler, and tested fine on my 9.1.2 HF5 system just now.
when CLIENT_ACCEPTED {
if { ([matchclass [IP::client_addr] equals $::allowed_clients]) and (([TCP::local_port] < 13800) or ([TCP::local_port] > 300))} {
log local0. "Connection accepted from [IP::client_addr] destined for tcp port [TCP::local_port]"
forward
} else {
log local0. "Connection discarded from [IP::client_addr] destined for tcp port [TCP::local_port]"
discard
}
}
HTH...Jason
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects