Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 20:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Firewall]Ipfw rules, hilfe gesucht!

Discussion on [Firewall]Ipfw rules, hilfe gesucht! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
.Kay331's Avatar
 
elite*gold: 5
Join Date: Nov 2009
Posts: 1,863
Received Thanks: 2,778
[Firewall]Ipfw rules, hilfe gesucht!

Hallo com.

Also ich habe da mal eine Frage zur Ipfw Firewall, ich habe nun alles gemacht aber die ipfw.rules faild etwas.

Immer wenn die Firewall gestartet ist, ist ftp und ssh down, man kann also nicht mehr connecten.

Und wenn ich die Firewall starte kommt:



Ipfw.rules:

PHP Code:
IPF="ipfw -q"
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 101 allow tcp from any to any 22 in
$IPF 100 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

# metin2 ch1+ch2 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 
Könnte mir da jemand helfen, kenne mich da gar nicht mit aus

Danke im Voraus

Mit freundlichen Grüßen
.Kay331 is offline  
Old 09/04/2011, 00:49   #2
 
elite*gold: 198
Join Date: Mar 2011
Posts: 835
Received Thanks: 263
helft ihm mich wprds auch interessieren
ƬheGame is offline  
Thanks
1 User
Old 09/04/2011, 01:01   #3
 
.Apfel's Avatar
 
elite*gold: 2
Join Date: Jun 2009
Posts: 645
Received Thanks: 151
Bereits probiert?
PHP Code:
$IPF 110 allow any from any to any 21 in
$IPF 120 allow any from any to any 21 out
$IPF 101 allow any from any to any 22 in
$IPF 100 allow any from any to any 22 out 
.Apfel is offline  
Thanks
1 User
Old 09/04/2011, 01:16   #4
 
.Kay331's Avatar
 
elite*gold: 5
Join Date: Nov 2009
Posts: 1,863
Received Thanks: 2,778
Quote:
Originally Posted by .Apfel View Post
Bereits probiert?
PHP Code:
$IPF 110 allow any from any to any 21 in
$IPF 120 allow any from any to any 21 out
$IPF 101 allow any from any to any 22 in
$IPF 100 allow any from any to any 22 out 
Grade mal getestet, klappt auch nicht.. ich glaube das liegt woander dran weil er ja fehler sagt..
.Kay331 is offline  
Old 09/04/2011, 01:26   #5
 
.Apfel's Avatar
 
elite*gold: 2
Join Date: Jun 2009
Posts: 645
Received Thanks: 151
Ich hab übrigens am Anfang:
IPF="ipfw -q add"

//ganze Rules:
.Apfel is offline  
Thanks
1 User
Old 09/04/2011, 13:58   #6
 
.Kay331's Avatar
 
elite*gold: 5
Join Date: Nov 2009
Posts: 1,863
Received Thanks: 2,778
Quote:
Originally Posted by .Apfel View Post
Ich hab übrigens am Anfang:
IPF="ipfw -q add"

//ganze Rules:

Ok ich versuch deine rules mal nachher, wenn es denn nicht geht, fummel ich mal am Kernel rum, ist ja eh nur einn Testserver erstmal ;D
.Kay331 is offline  
Old 09/04/2011, 14:01   #7

 
Ocelot2606's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 4,086
Received Thanks: 3,786
Ich habs so und funktioniert auch

Code:
#!/bin/sh
fwcmd="/sbin/ipfw -q"
# Ports freigeben (array)
server_apps="22, 3306, 13363, 13002, 13003, 13004, 13005, 13006, 13007, 13008, 13009, 13061, 13001, 16002, 16003, 16004, 16005, 16006, 16007, 16008, 16009, 16001, 16061"
# Ports blocken (array)
block="12001, 14002, 14003, 14004, 14005, 14006, 14007, 14008, 14009, 14061, 14001, 17002, 17003, 17004, 17005, 17006, 17007, 17008, 17009, 17001, 17061, 14727"
 
${fwcmd} -f flush
 
#----------------------------------------------
#LOOPBACK INTERFACE
#----------------------------------------------

# Alles auf dem Loopback Interface erlauben
${fwcmd} add 00100 allow ip from any to any via lo0
 
${fwcmd} add 00500 check-state
 
#----------------------------------------------
#TCP
#----------------------------------------------
 
# Traffic nach außen erlauben
${fwcmd} add 01000 allow all from me to any setup keep-state
# ${server_apps} array
${fwcmd} add 01100 allow all from any to me ${server_apps} setup keep-state
${fwcmd} add 01101 allow udp from any to me ${server_apps}
#----------------------------------------------
#Ausgehender Traffic
#----------------------------------------------

${fwcmd} add 02000 allow all from me to any keep-state
 
#----------------------------------------------
#Ports blocken
#----------------------------------------------
 

${fwcmd} add 64000 deny all from any to any ${block} in

# Alles andere verbieten
${fwcmd} add 65000 reset ip from any to any
Ocelot2606 is offline  
Thanks
3 Users
Old 09/04/2011, 14:07   #8
 
elite*gold: 0
Join Date: Sep 2010
Posts: 454
Received Thanks: 212
Achtet darauf dass das script nicht "windows line ended" ist ...
Zwawo is offline  
Thanks
1 User
Old 09/04/2011, 15:22   #9
 
.Kay331's Avatar
 
elite*gold: 5
Join Date: Nov 2009
Posts: 1,863
Received Thanks: 2,778
Ohh man habe eben nochmal beide rules getestet , ohne erfolg..
.Kay331 is offline  
Old 09/04/2011, 15:25   #10
 
elite*gold: 0
Join Date: Sep 2010
Posts: 454
Received Thanks: 212
Schon mal mit dem ee auf das script geschaut?
Zwawo is offline  
Thanks
1 User
Old 09/04/2011, 15:32   #11
 
elite*gold: 65
Join Date: Apr 2010
Posts: 286
Received Thanks: 57
Womit bearbeitest du deine Rules?
Solltest du das über Filezilla und dann mit nem Windowseditor machen nutz einen von Freebsd da windows am Ende unschöne Sachen ranhängt.
Fr33ak is offline  
Thanks
1 User
Old 09/04/2011, 22:27   #12
 
.Kay331's Avatar
 
elite*gold: 5
Join Date: Nov 2009
Posts: 1,863
Received Thanks: 2,778
Yeah ey hat geklappt, danke euch habe schon eben gesehen wo ich die bearbeiten wollte im putty überall son **** wie ^M stehen und sowas

Und für was sind jetzt nochmal diese zahlen immer:


$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
.Kay331 is offline  
Old 09/04/2011, 22:30   #13
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,916
Received Thanks: 538
das problem isr

Quote:
$IPF 110 allow tcp from any to any 21 in
$IPF 120 allow tcp from any to any 21 out
$IPF 101 allow tcp from any to any 22 in
$IPF 100 allow tcp from any to any 22 out
es muss
Quote:
$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
'oShet is offline  
Reply


Similar Threads Similar Threads
[how to] ipfw firewall
05/07/2012 - Metin2 PServer Guides & Strategies - 33 Replies
Hallo ich wollte euch hier ma zeigen wie man eine ipfw Firewall installiert auf FreeBSD da es viele ungesicherte FreeBSD roots gibt es sollten niemals mehr Port als nötig gefönet sein ich erkläre euch wie ihr eine ipfw firewall auf FreeBSD installiert ich übernehme keine Verantwortung für irgend welche fehlt Einstellung oder sonstiges wenn ihr die Sachen einfach kopiert selbst schuld was brauche ich? 1 FreeBSD root 1 metin2 Server 1 ein wenig Grips und die Ports die der metin2 Server...
IPFW FIREWALL
06/30/2011 - Metin2 Private Server - 7 Replies
Hallo ich hab eine frage und zwar ist das nun installier bloß block alle IP`s wie kann ich nun über die Serielle schnittstelle das ändern das er nur manche IP´s block kan mir da jemand weiter helfen Ich bin nicht nach dem TUT von epvp gegangen hab da so mein eigenes ding nur Eigentlich sollte alles richtig sein trotzdem Blockt es mir alle IP´s
IPFW Firewall + Squid
04/17/2011 - Metin2 Private Server - 2 Replies
Hi Leutz, hab ma ne Frage...hab IPFW Firewall auf Freebsd drauf alles so eingestelt das nur eine IP drauf kommt und wollte jetzt Proxy für alle freigeben. Läuft ja auf Port 3128 und wird irgendwie durch Port 80 weitergeleitet oder? Wie kann die passende Rule dafür aussehen? Vielen dank im vorraus
weiß jemand wie ich ipfw firewall & PAE
12/17/2010 - Metin2 Private Server - 10 Replies
Moin weiß jemand wie ich ipfw firewall & PAE nutzen kann? Weil normal funtkioniert es ja nicht da sich der Kernel ändert oder soetwas.. Und da einige rumprahlen das sie es geschaft haben möchte ich ganz einfach wissen wie ich mir beides aufen root installieren kann? und ob jemand bereit ist mir dabei zuhilfen ich hoffe ihr seid nicht so egoistisch wie manch anderer hier. Danke! mfg holzi
Sperre mich bei ipfw Firewall immer selbst aus xD
12/13/2010 - Metin2 Private Server - 3 Replies
Nachdem ich selber nichtmehr weiter weiß und ich Probleme mit der Ipfw Firewall habe, namens: Ich blocke mich selber, erbitte ich mal euch um Hilfe.. Joa das Firewall Script: options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=15 rc.conf: hostname="*zensiert*l" ifconfig_re0="*zensiert*"



All times are GMT +2. The time now is 20:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.