To properly allow or prevent clients with certain IP addresses from connecting to your 4D Server IP addresses, the entries should be added in the correct order in the Allow-Deny table. 4D Server 2004 has an added security for access control with its allow-deny configuration table (under Preferences->Client-Server->Publishing setting). Only addresses that actually match a rule will be allowed to connect. You can allow/prevent some clients with certain addresses from connecting to your 4D Server. A proper order for the entries should be followed. For instance, if you want to deny certain addresses but allow the rest, you need to enter the IP addresses you want to deny on the top first and add an entry at the very bottom that will allow the rest. Below is an example wherein you block IP address 22.214.171.124 and block IP addresses starting with 192.168 and then allow the rest:
- Deny 126.96.36.199
- Deny 192.168.* (deny all addresses beginning with 192.168)
- Allow * (but allow all other addresses)
The same rule applies if you want to allow certain IP addresses but want to deny the rest. You first need to add the allowed IP addresses on the top and add a Deny * (deny all) entry at the very bottom. The clients that are denied will get a -10002 error.