Jump to content

Recommended Posts

Where do I IP site so they do not block it?

 

pf.conf

### INTERFACES ###
if = "{ em0 }"

#Intra
table <intranet> { 127.0.0.1 }
pass in quick from <intranet> to any keep state

#Network
table <network> persist
block quick from <network>
pass in on $if proto tcp from any to any \
keep state (max-src-conn 100, max-src-conn-rate 20/1, \
overload <network> flush global)

firewall.rules

#Firewall Rules Metin2Zone
#Para configurar bien tu Firewall + PF debes cambiar los puertos que protege el Firewall en este archivo por los puertos que uses en tu servidor, si es que tu servidor tiene los puertos cambiados, sino este archivo de configuración funciona perfectamente.

IPF="ipfw -q add"
ipfw -q -f flush

##Custom-Rules
#P2P Ports
$IPF 4 allow all from me to any 1000
$IPF 5 allow all from 127.0.0.0/8 to any 14000
$IPF 6 deny all from any to me 14000
$IPF 7 allow all from me to any 14001
$IPF 8 allow all from 127.0.0.0/8 to any 14001
$IPF 9 deny all from any to me 14001
$IPF 10 allow all from me to any 14099
$IPF 11 allow all from 127.0.0.0/8 to any 14099
$IPF 12 deny all from any to me 14099
$IPF 13 allow all from me to any 12000
$IPF 14 allow all from 127.0.0.0/8 to any 12000
$IPF 15 deny all from any to me 12000
#Game Ports
$IPF 16 allow all form any to me 11002
$IPF 17 allow all from any to me 13000
$IPF 18 allow all from any to me 13001
$IPF 19 allow all from any to me 13002
$IPF 20 allow all from any to me 13099
$IPF 21 allow all form any to me 11100
$IPF 22 allow all from any to me 13100
$IPF 23 allow all from any to me 13101
$IPF 24 allow all from any to me 13102
$IPF 25 allow all from any to me 13199
#Dienste
$IPF 26 allow all from any to me 3306
$IPF 27 allow all from any to me 22
$IPF 28 allow all from any to me 21

##Standart Regeln
$IPF 10000 allow all from any to any via lo0
$IPF 20000 deny all from any to 127.0.0.0/8
$IPF 30000 deny all from 127.0.0.0/8 to any
$IPF 40000 allow all from any to any  

tutorial : http://metin2zone.net/index.php?/topic/1044-protección-final-firewall-pf-packet-filter/

Link to comment
https://metin2.dev/topic/7820-urgenthelp-firewalll-blocked-site/
Share on other sites

Where do I IP site so they do not block it?

 

pf.conf

### INTERFACES ###
if = "{ em0 }"

#Intra
table <intranet> { 127.0.0.1 }
pass in quick from <intranet> to any keep state

#Network
table <network> persist
block quick from <network>
pass in on $if proto tcp from any to any \
keep state (max-src-conn 100, max-src-conn-rate 20/1, \
overload <network> flush global)

firewall.rules

#Firewall Rules Metin2Zone
#Para configurar bien tu Firewall + PF debes cambiar los puertos que protege el Firewall en este archivo por los puertos que uses en tu servidor, si es que tu servidor tiene los puertos cambiados, sino este archivo de configuración funciona perfectamente.

IPF="ipfw -q add"
ipfw -q -f flush

##Custom-Rules
#P2P Ports
$IPF 4 allow all from me to any 1000
$IPF 5 allow all from 127.0.0.0/8 to any 14000
$IPF 6 deny all from any to me 14000
$IPF 7 allow all from me to any 14001
$IPF 8 allow all from 127.0.0.0/8 to any 14001
$IPF 9 deny all from any to me 14001
$IPF 10 allow all from me to any 14099
$IPF 11 allow all from 127.0.0.0/8 to any 14099
$IPF 12 deny all from any to me 14099
$IPF 13 allow all from me to any 12000
$IPF 14 allow all from 127.0.0.0/8 to any 12000
$IPF 15 deny all from any to me 12000
#Game Ports
$IPF 16 allow all form any to me 11002
$IPF 17 allow all from any to me 13000
$IPF 18 allow all from any to me 13001
$IPF 19 allow all from any to me 13002
$IPF 20 allow all from any to me 13099
$IPF 21 allow all form any to me 11100
$IPF 22 allow all from any to me 13100
$IPF 23 allow all from any to me 13101
$IPF 24 allow all from any to me 13102
$IPF 25 allow all from any to me 13199
#Dienste
$IPF 26 allow all from any to me 3306
$IPF 27 allow all from any to me 22
$IPF 28 allow all from any to me 21

##Standart Regeln
$IPF 10000 allow all from any to any via lo0
$IPF 20000 deny all from any to 127.0.0.0/8
$IPF 30000 deny all from 127.0.0.0/8 to any
$IPF 40000 allow all from any to any  

tutorial : http://metin2zone.net/index.php?/topic/1044-protección-final-firewall-pf-packet-filter/

website on other hosting? no with server? if not then add here 

table <intranet> { 127.0.0.1, ip_website }

ip_website = your ip website

and in console:

/etc/rc.d/pf restart

  • Love 1

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.