ipFw firewall help

09/29/2011 15:58 Slyer99#1
nach der ervolgreichen installation der firewall wird im clienten nicht mehr angezeigt das der channel online ist, was muss in der ipfw.rules dafür noch eingetragen werden?
PHP Code:
 IPF="ipfw -q add"
ipfw --f flush

#loopback
$IPF 10 allow all from any to any via lo0
$IPF 20 deny all from any to 127.0.0.0
/8
$IPF 30 deny all from 127.0.0.0
/8 to any
$IPF 40 deny tcp from any to any frag

# statefull
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep
-state
$IPF 80 allow icmp from any to any

# open port ftp (20,21), ssh (22), mail (25)
# http (80), dns (53) etc
$IPF 110 allow tcp from any to any 21 in
$IPF 120 allow tcp from any to any 21 out
$IPF 130 allow tcp from any to any 22 in
$IPF 140 allow tcp from any to any 22 out
$IPF 170 allow udp from any to any 53 in
$IPF 175 allow tcp from any to any 53 in
$IPF 180 allow udp from any to any 53 out
$IPF 185 allow tcp from any to any 53 out
$IPF 190 allow tcp from any to any 3306 in
$IPF 195 allow tcp from any to any 3306 out


# metin2 ch1 ports
$IPF 200 allow tcp from any to any 11002 in
$IPF 210 allow tcp from any to any 11002 out
$IPF 200 allow udp from any to any 11002 in
$IPF 210 allow udp from any to any 11002 out
$IPF 200 allow tcp from any to any 13000 in
$IPF 210 allow tcp from any to any 13000 out
$IPF 200 allow tcp from any to any 13001 in
$IPF 210 allow tcp from any to any 13001 out
$IPF 200 allow tcp from any to any 13002 in
$IPF 210 allow tcp from any to any 13002 out
$IPF 200 allow tcp from any to any 13003 in
$IPF 210 allow tcp from any to any 13003 out
$IPF 200 allow tcp from any to any 13004 in
$IPF 210 allow tcp from any to any 13004 out
$IPF 200 allow tcp from any to any 13061 in
$IPF 210 allow tcp from any to any 13061 out
$IPF 200 allow tcp from any to any 13099 in
$IPF 210 allow tcp from any to any 13099 out 
09/29/2011 16:11 Collmanyeah#2
Du kannst doch noch spielen oder?
Oder kommse garnicht mehr rein?
09/29/2011 16:16 Slyer99#3
klar alles geht, nur ich sehe den status im clienten nimmer
09/29/2011 16:19 Collmanyeah#4
Schon die ports acuh clientside sprich in den root-dateien(soweit ich weiss)
angepasst
09/29/2011 16:26 Slyer99#5
der server leuft perfeckt und leuft auch ohne probleme, der client leuft ebenfalls perfeckt, alles geht, nur der status nicht, er geht aber wenn ich die firewall aus mache.

Fazit: ich muss was in der ipfw.rules ändern, nur was muss ich da ändern, siehe php code am anfang.
09/30/2011 09:00 [ShiizoPhreN]™#6
die zweite zeile solltest bearbeiten denn port 80 is das web vielleicht solltest mal testen ob es mit ner anderen modifikation klappt

€habs falsch verstanden keine eventuelle lösung im kopf sry xD
09/30/2011 11:27 Lordechen#7
Post mal bitte deine serverinfo.py mit dazu und welche server rev benutzt du? Kann dir helfen.
10/02/2011 11:16 [ShiizoPhreN]™#8
also du mußt bei auth und Channel 1-4 die ports im udp öffnen

Bsp.
$IPF 170 allow tcp from any to any 99999 in
$IPF 180 allow tcp from any to any 99999 out
$IPF 190 allow udp from any to any 99999 in
$IPF 200 allow udp from any to any 99999 out

ob ein out reicht weiß ich nciht hab ich nciht versucht