Cloudflare Allowed List into Litespeed

track1

Well-Known Member
#1
What would be the correct way (format) to include the list of allowed IP, including IPv6?

IPs are:

IPv4
199.27.128.0/21
173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/12

IPv6
2400:cb00::/32
2606:4700::/32
2803:f800::/32
2405:b500::/32
2405:8100::/32
 

track1

Well-Known Member
#2
testing with:

199.27.128.0/21T, 173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T, 188.114.96.0/20T, 197.234.240.0/22T, 198.41.128.0/17T, 162.158.0.0/15T, 104.16.0.0/12T, 2400:cb00::/32T, 2606:4700::/32T, 2803:f800::/32T, 2405:b500::/32T, 2405:8100::/32T
 

NiteWave

Administrator
#4
they should be ok.

if only these IPs ( plus your IP) is allowed, remove "ALL" in
lsws web admin -> Server -> Security -> Allowed List

then check access log, see if there are other IPs in the log (there should not)
 

track1

Well-Known Member
#5
But access logs should show visitor IPs because use Client IP in Header is set to Trusted Only.
I think the best way to do that is close port 80/443 in server firewall, allowing only trusted ips. I did a test and seems to work.
 
Top