Forum Discussion

mister_65355's avatar
mister_65355
Icon for Nimbostratus rankNimbostratus
Jul 11, 2007

limited access to some Server

Hi All,

 

I'd like to limit Clients via IP Address for tussing the Virtuel Server,

 

for exemple: only 3 server to acced to VS.

 

 

how can I do??
  • to limit access only from 3 @ IP

     

     

    Rule configuration

     

     

    when CLIENT_ACCEPTED {

     

    if { [IP::addr [IP::client_addr] equals 10.10.1.1] } {

     

    pool my_pool

     

    }

     

    }

     

     

    when CLIENT_ACCEPTED {

     

    if { [IP::addr [IP::client_addr] equals 10.10.1.11] } {

     

    pool my_pool

     

    }

     

    }

     

     

    when CLIENT_ACCEPTED {

     

    if { [IP::addr [IP::client_addr] equals 10.10.1.12] } {

     

    pool my_pool

     

    }

     

    }

     

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    This rule will forward connections from those 3 addresses to the specified pool, and RST after the handshake for all other clients:
    when CLIENT_ACCEPTED {
      switch [IP::client_addr] {
        10.10.1.1 - 
        10.10.1.11 - 
        10.10.1.12 { pool my_pool }
        default { reject }
      }
    }

    /deb