Jump to content

Recommended Posts

PF is configured, however, my website linked to CloudFlare is always blocked, even adding it to the exclusions, already excluding normal IPs, such as my own, the exclusion works normally, does anyone have any idea what I could be doing wrong or how I can How do I grant access to CloudFlare so that the website can function later?

PF blocks all connections, except from the player table

pf.conf

# Change the value to reflect your public interface. You can see this with ifconfig.
ext_if="em0"

# Ports used for services
service_ports="{ 22, 80 }"

# Ports used by Metin2
game_ports="{ 15001 }"

# IP addresses that should override the firewall rules, such as your web server.
table <trusted_hosts> persist file "/var/db/trusted_hosts"
table <cloudflare> persist file "/var/db/cloudflare_ips"
table <player_ips> persist file "/var/db/player_ips"

set block-policy drop
set optimization aggressive
set skip on lo

scrub on $ext_if reassemble tcp no-df random-id

antispoof quick for { lo0 $ext_if }

block in log

# Rate limits, trial and error

pass in quick on $ext_if proto tcp to any port $service_ports

pass in quick on $ext_if proto {tcp,udp} from <player_ips> to any port $game_ports keep state
pass in quick on $ext_if proto {tcp,udp} from <trusted_hosts>
pass in quick on $ext_if proto {tcp,udp} from <cloudflare>

pass in inet proto icmp all icmp-type echoreq

pass out all keep state
pass out on $ext_if all modulate state

cloudflare_ips

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/13
104.24.0.0/14
172.64.0.0/13
131.0.72.0/22

 

Link to comment
https://metin2.dev/topic/31356-help-pf-freebsd-block-cloudflare/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.