heheh^__^ im here again. . i still cant connect to my server..
anyone know how to portforward the CentOS"? thnx. .
HAPPY NEWYEAR GUYS^__^ God Bless you all!!!![]()
heheh^__^ im here again. . i still cant connect to my server..
anyone know how to portforward the CentOS"? thnx. .
HAPPY NEWYEAR GUYS^__^ God Bless you all!!!![]()
hi,create a sh and run it from root directory
# FLUSH RULES
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
# ALLOW LOCALHOST
iptables -A INPUT -t filter -s 127.0.0.1 -j ACCEPT
# FLUSH RULES
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
# ALLOW LOCALHOST
iptables -A INPUT -t filter -s 127.0.0.1 -j ACCEPT
# SERVICES
# SSH
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#http
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
# LOGIN
iptables -A INPUT -p tcp --dport 2106 -j ACCEPT
# INTERNAL
iptables -A INPUT -p tcp --dport 9014 -j ACCEPT
# GAME
iptables -A INPUT -p tcp --dport 7777 -j ACCEPT
# MYSQL
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
#ts
iptables -A INPUT -p udp --dport 8767 -j ACCEPT
#ts-ad
iptables -A INPUT -p tcp --dport 14534 -j ACCEPT
#ts-2
iptables -A INPUT -p udp --dport 8768 -j ACCEPT
#ts-3
iptables -A INPUT -p udp --dport 8769 -j ACCEPT
#ts-q
iptables -A INPUT -p tcp --dport 51234 -j ACCEPT
#cod4
iptables -A INPUT -p udp --dport 20800 -j ACCEPT
#cod4-4
iptables -A INPUT -p udp --dport 20810 -j ACCEPT
#cod4-4-4
iptables -A INPUT -p udp --dport 28960 -j ACCEPT
#cod4-1
iptables -A INPUT -p udp --dport 28961 -j ACCEPT
#cod4-2
iptables -A INPUT -p udp --dport 28962 -j ACCEPT
#cod4-3
iptables -A INPUT -p udp --dport 28963 -j ACCEPT
# BLOCK THE DEVIL
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,RST FIN,RST -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,ACK FIN -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags ACK,URG URG -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags PSH,ACK PSH -j DROP
# ALLOW NEW CONNECTIONS (JUST IN CASE)
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
# DROP USELESS UDP/ TCP
iptables -A INPUT -p udp -j DROP
iptables -A INPUT -p tcp --syn -j DROP
# BLOCK ICMP (PING/ TRACEROUTE ETC)
iptables -A INPUT -p icmp -j DROP
# LIST RULES
iptables -L -v
Lost-Spirit you rly lost your spirit
Stereaid thanks for helping him ;) yes he has spirit
wow^__^ thanks ^__^ that really helped im really noob at linux^__^ thanks to all^__^
what u mean lost-spirit? i cant really understand ur post^__^well happy newyear all!
Ok i have new prob? how do i run that on root of centOS? what command to write? hehhe noob me
^__^ cuz i tried /root/filename.sh not work, also filename.sh not! root/filename.sh no work^___^
Last edited by majidemo; 02-01-09 at 05:54 AM.
Create a text file called iptables.sh and paste all of the code in. Now run the .sh file from a terminal.
yup i did sir? but how to run? whats the code? hehe . . like? root/iptables.sh? but it says not a file/directory^__^ plz enlighten me^__^ thnx sir chumpy^__^
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
thnx sir ^__^ cypher but i already know that site^__^
anyways here my result? now what?? hehe^__^
new SS, plz tell me if thats right^_^ haha
![]()
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
done doing that too sir^__^