FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    horrorkld9 Guest

    Linux newbie with firewall Q? FC3

    Hey, I'm relatively comfortable with linux at this point but could use a bit of help. I am trying to configure my FC3 firewall settings thru the console and am trying to pass the command "/etc/sysconfig/iptables -A INPUT -s %IP% -p tcp --dport 22 -j ACCEPT" to open SSH, and "/etc/sysconfig/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT" to close SSH... but after these commands nothing seems to happen, SSH still isnt connecting... (%IP% is passing the ip of the connecting computer)... perhaps FC3 uses something other than iptables? or perhaps i am passing the wrong arguments... any help would be appreciated

  2. #2
    horrorkld9 Guest
    did i post in the wrong place, or isnt anyone sure what is wrong??

  3. #3
    Tashiro Guest
    Your using the right program. Maybe your should open the UDP on port 22 as well.

    Is the -s flag set properly why don't you try it like 10.0.0.155 or
    whatever ip adress your trying to connect from?

    Is the target system behind a router, and you are trying to connect from the outside (not locally) ? If so you should forward port 22 to your local ip of the target system in the router
    setup program. But I am no expert.

    Yes you did post it in the right forum.


    Tashiro

  4. #4
    horrorkld9 Guest
    well after much frustration i made it work the command i seemed to need was /sbin/iptables -I RH-Firewall-1-INPUT 8 -p tcp --dport 22 -j ACCEPT
    "-A" should still work though
    "RH-Firewall-1-INPUT" needed to replace simply INPUT
    thanks anyway though
    and sorry that i allowed my frustration lead to impatience

  5. #5
    Join Date
    Jan 2005
    Location
    Baltimore, MD
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    horrorkld9,

    /etc/sysconfig/iptables is the config file that iptable init script uses on boot. Once you get your firewall working the way you want it backup /etc/sysconfig/iptables, then run /sbin/iptables-save > /etc/sysconfig/iptables. That will put your rules in the /etc/sysconfig/iptables file. This will ensure it will get loaded on next boot. Oh BTW, if you configure the firewall by someother means, (like the setup command) the /etc/sysconfig/iptables file will be over written and any command line rules you save will be lost.

    sunckell

Similar Threads

  1. Logging internet traffic/firewall/ newbie Qs
    By Clydesdale in forum Using Fedora
    Replies: 0
    Last Post: 22nd April 2008, 05:25 AM
  2. Newbie: VOIP + firewall/wireless router - no internet connection
    By mravichandran in forum Servers & Networking
    Replies: 3
    Last Post: 24th November 2006, 04:34 PM
  3. Newbie firewall question
    By futureguy in forum Servers & Networking
    Replies: 3
    Last Post: 17th November 2005, 09:04 AM
  4. How to open firewall ports(newbie)
    By elmu in forum Security and Privacy
    Replies: 18
    Last Post: 22nd October 2005, 02:32 AM
  5. Newbie Question on firewall activation
    By larsdennert in forum Security and Privacy
    Replies: 2
    Last Post: 6th May 2005, 11:14 PM

Tags for this Thread

Posting Permissions

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