Comentários (3)

1 SteveWebb comentou às Link permanente

Updated in 3 spots to add USERSRC(NOACCESS) to the examples.

2 rathnak comentou às Link permanente

Can you please help me on the below doubt. <div>&nbsp;</div> How can i allow an ID if its connecting from a particular IP or two? For example, connection should be allowed only if user ID 'mango' connects from IP 10.10.10.1 and from no other IPs. <br /> Also is there anyway i can couple multiple sets of same kind? like two or three ids and from specific IPs. <div>&nbsp;</div> I can achieve this using BlockIP but using chlauth, i am not sure about the same using chlauth. <br /> Thanks in advance.

3 Morag Hughson comentou às Link permanente

Hi Rathnakaran, <div>&nbsp;</div> You can allow client-side user ID 'mango' in from IP address 10.10.10.1 with this rule - this assumes that running the SVRCONN as 'mango' is what you want to do (and that 'mango' is not a privileged user ID). If you also have the backstop rule in place then that covers the "and from no other IPs" requirement. <br /> SET CHLAUTH(channel-name) TYPE(USERMAP) CLNTUSER('mango') ADDRESS('10.10.10.1') DESCR('Allow mango in only from this IP') USERSRC(CHANNEL) <div>&nbsp;</div> You can have as many lines like this in your CHLAUTH configuration as you have user IDs or IP address to state. Each CHLAUTH line like the above is similar to a BlockIP2 configuration file line. <div>&nbsp;</div> Cheers <br /> Morag