Find the answer to your Linux question:
Results 1 to 3 of 3
Could someone tell me how to open a port and keep it opened? Currently I'm just doing something like "iptables -I INPUT -p tcp --dport 110 -j ACCEPT" to open ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    127

    Opening ports with iptables


    Could someone tell me how to open a port and keep it opened?

    Currently I'm just doing something like "iptables -I INPUT -p tcp --dport 110 -j ACCEPT" to open the ports I need. But when I reset this setting is lost and I have to put it in again.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    On Fedora Core 2, run this:
    Code:
    iptables-save >/etc/sysconfig/iptables

  3. #3
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    127
    Sorta like using a router. Make changes then do a copy run start.

    Thanks, for the help yet again Dolda.

  4. $spacer_open
    $spacer_close

Posting Permissions

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