Find the answer to your Linux question:
Results 1 to 3 of 3
Gentlemen, what is the proper syntax for allowing certain ports to open on a redhat firewall / im using iptables. ports 5678 and 5679 The reason I need this is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Posts
    31

    iptables / syntax for opening ports


    Gentlemen, what is the proper syntax for allowing certain ports to open on a redhat firewall / im using iptables.

    ports 5678 and 5679

    The reason I need this is to allow my windows CE device to attach to my linux box and sync with ximian evolution.

    I have successfully done it and have synced all my contacts and appointments but i needed to shutdown my firewall to do this. By allowing only the above two ports I think this will work with the firewall on...

    as always thanks in advances!


    El Guapo

  2. #2
    Just Joined!
    Join Date
    Nov 2003
    Posts
    2
    iptables -I INPUT 2 -s 0/0 -i xxx -p tcp --dport 5678 -j ACCEPT
    iptables -I INPUT 2 -s 0/0 -i xxx -p tcp --dport 5679 -j ACCEPT

    you will need to change the -i xxx the the incoming interface that you wish to open so if it was eth1 then youd put -i eth1 etc.

    the -s 0/0 means any source address if you had a static ip and wanted to open the ports for that ip on then you could use 192.168.0.1/32 of course youd need to change the ip address for the one you use

    hope this helps

  3. #3
    Just Joined!
    Join Date
    Sep 2003
    Posts
    31

    Gracias

    Thanks I will try this asap and let you know

Posting Permissions

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