[HELP] How can I only allow china to access port 80 and 443 only?

darkbear

Verified User
Joined
Jan 31, 2013
Messages
60
Everyday, many china's ip is always try to hack my server and they always try to login account via dovecot1 and exim2
however I have no customers from china, and my customers and me they want China's client to view their website (http and https) only
so could you tell me how can I use CSF to allow they view webiste only and denied for all others ports?

Many thanks
 
thank, but I want to allow China's for only 80 and 443(and block for all ports else). what should I do?
thanks
 
See the part 'Blocking Access to Specific Ports by Country'

The example uses port 21 but you would use 21, 110, 25, 587, 143, ... etc to block all open ports, except 80 and 443. ( or enter a range of ports to block).
 
Back
Top