Find the answer to your Linux question:
Results 1 to 10 of 10
hi ppls..i am new to the iptables for the linux firewall now i have a problem. when i try to type: service iptables start, its says that service is not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2003
    Posts
    15

    Iptables Firewall


    hi ppls..i am new to the iptables for the linux firewall
    now i have a problem. when i try to type: service iptables start, its says that service is not a bash command. i am using linux red hat 7.3
    What is the problem??? Also, i m not connected to eth0 or any connection. Is it true that i must connect to the internet in order to configure the firewall??
    thanks

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    When you try to run the service command, are you doing so as r00t? Also you don't have to have any interfaces up (ethX, pppX) to run iptables.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Nov 2003
    Posts
    40
    I have a problem too, with the standard firewall of Mandrake 9.2(Power Pack), I configured the firewall, but I don't think that it works, maybe the problem is that I didn't configured my internet connection with the Mandrake Control Center, and I configured it with kppp. Is there any command that I can see if the firewall is working properly?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    To see what rules you have set up with iptables, do this as root:

    Code:
    iptables -L INPUT
    iptables -L OUTPUT
    iptables -L FORWARD
    That will list the rules for the three default chains.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  6. #5
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113

    Re: Iptables Firewall

    Quote Originally Posted by usanet21
    hi ppls..i am new to the iptables for the linux firewall
    now i have a problem. when i try to type: service iptables start, its says that service is not a bash command. i am using linux red hat 7.3
    What is the problem??? Also, i m not connected to eth0 or any connection. Is it true that i must connect to the internet in order to configure the firewall??
    thanks
    Can you (as root) type this:

    echo $PATH
    and
    whereis service

    Oh, and are you su'ing with "su" or "su -"?

  7. #6
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742

    Re: Iptables Firewall

    Quote Originally Posted by Kriss
    Oh, and are you su'ing with "su" or "su -"?
    Is there a difference

  8. #7
    Linux Enthusiast Opnosforatou's Avatar
    Join Date
    Dec 2003
    Location
    Vleuten, The Netherlands
    Posts
    552
    su : changes to root without initilizing the environment settings, and continues the environment settings of the user you su'ed from.

    su - : Changes to root with the proper root environment settings and starts also in the /root dir. - This should be the best thing to use...

  9. #8
    Just Joined!
    Join Date
    Dec 2003
    Posts
    15
    hey u r right Opnosforatou, changing to the su - can enable me to use the service command.
    Now my question is do i have to connect to the internet in order to configure the firewall?????

    also, i desperately need help. Can some one teach me how to uninstall programs in linux??

  10. #9
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    Quote Originally Posted by usanet21
    hey u r right Opnosforatou, changing to the su - can enable me to use the service command.
    The service command resides in /sbin, this dir isn't in the path of regular users, so when doing "su" (not initing root enviroment (implies the path)), you have to type "/sbin/service (arguments)", since the path still is the same as the user you su'd from.

  11. #10
    Linux Enthusiast Opnosforatou's Avatar
    Join Date
    Dec 2003
    Location
    Vleuten, The Netherlands
    Posts
    552
    Now my question is do i have to connect to the internet in order to configure the firewall?????
    The anwser is no.
    You don't need a live internet connection to configure your firewall.

    It's preferable to connect to the internet after starting your FW.

    also, i desperately need help. Can some one teach me how to uninstall programs in linux??
    If you install applications by using Binary RPMS then you need to use RPM to 'uninstall' it to.

    If you installed a source tarball this is done by hand and keyboard.
    (A common action when using the slackware distro.)

    To uninstall a package, first query the RPM database if it is installed:
    use:
    Code:
     rpm -qa | grep <application name; example&#58; kde >
    This will give, using the kde example, a long list with every installed kde RPM Package.

    Now we wish to uninstall the kdetoys.
    To do this we would type :
    rpm -e kdetoys
    RPM will check all dependancies and if everything is oke, it will uninstall all files.

    Here is a RPM howto : http://www.rpm.org/RPM-HOWTO/

    Hope this helps...


    Iptables howto: http://www.linuxguruz.com/iptables/h...les-HOWTO.html
    and don't forget Google

Posting Permissions

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