Results 1 to 5 of 5

Thread: open all ports with iptables

  1. #1
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    9

    Default open all ports with iptables

    hello i wanted to know if i make this configuration will open all ports in my bt4 beta

    #!/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin

    ################################################
    ### Configuracion abierta firewall GNU/Linux ###
    ################################################

    # eliminar todas las reglas (flush rules)
    iptables -F

    # acceptar todo por defecto (default drop)
    iptables -P INPUT ACCEPT
    iptables -P OUTPUT ACCEPT
    iptables -P FORWARD ACCEPT

    thanks

  2. #2

    Default

    Give it a try and find out. Should only take a minute to test.

  3. #3
    Just burned his ISO
    Join Date
    Feb 2009
    Posts
    9

    Default

    Quote Originally Posted by cybrsnpr View Post
    Give it a try and find out. Should only take a minute to test.
    i tried ti using telnet
    root@bt:/home/pibe# telnet 127.0.1.1 25
    Trying 127.0.1.1...
    telnet: Unable to connect to remote host: Connection refused
    root@bt:/home/pibe#
    then

    root@bt:/home/pibe# telnet 127.0.1.1 80
    Trying 127.0.1.1...
    Connected to 127.0.1.1.
    Escape character is '^]'.
    exit
    do i have something wrong? or are ports closed?

  4. #4

    Default

    Quote Originally Posted by pibe86 View Post
    i tried ti using telnet
    then do i have something wrong? or are ports closed?
    I have no idea. What does netstat tell you about what ports are open or closed?

  5. #5
    Good friend of the forums
    Join Date
    Feb 2009
    Posts
    356

    Default

    yes, there is something wrong - you don't have a service listening on that port.
    Telnet to any listening service from your machine to localhost does not care about iptables, too... so that's 2 things wrong just by now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •