Someone know how to 4ward port of centOS?

Results 1 to 11 of 11
  1. #1
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Someone know how to 4ward port of centOS?

    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!!!


  2. #2
    xHTML/CSS/JS/Ruby LostSpirit is offline
    MemberRank
    Feb 2008 Join Date
    $ gem search -rLocation
    482Posts

    Re: Someone know how to 4ward port of centOS?

    Quote Originally Posted by majidemo View Post
    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!!!

    not clearly understood.

    you either release or lock the doors?

  3. #3
    Novice siteraid is offline
    MemberRank
    Nov 2006 Join Date
    2Posts

    Re: Someone know how to 4ward port of centOS?

    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

  4. #4

    Re: Someone know how to 4ward port of centOS?

    Lost-Spirit you rly lost your spirit
    Stereaid thanks for helping him ;) yes he has spirit

  5. #5
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Someone know how to 4ward port of centOS?

    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.

  6. #6
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Someone know how to 4ward port of centOS?

    Create a text file called iptables.sh and paste all of the code in. Now run the .sh file from a terminal.

  7. #7
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Someone know how to 4ward port of centOS?

    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^__^

  8. #8
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Someone know how to 4ward port of centOS?

    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.

  9. #9
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Someone know how to 4ward port of centOS?

    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


  10. #10
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Someone know how to 4ward port of centOS?

    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.

  11. #11
    Account Upgraded | Title Enabled! majidemo is offline
    MemberRank
    Sep 2008 Join Date
    localhostLocation
    659Posts

    Re: Someone know how to 4ward port of centOS?

    done doing that too sir^__^



Advertisement