Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Stopping IPtables on Debian
Results 1 to 8 of 8

Thread: Stopping IPtables on Debian

Hybrid View

  1. #1

    Stopping IPtables on Debian

    How can I start or stop IPtables on a debian system?
    (on my FC3 system it is /etc/init.d/iptables stop/start)

  2. #2

    Re:Stopping IPtables on Debian

    hello,
    not exactly sure - but i know iptables -F flushes all current rules.

  3. #3

    Re:Stopping IPtables on Debian

    [quote author=pbharris link=board=4;threadid=10691;start=0#msg95990 date=1126923765]
    hello,
    not exactly sure - but i know iptables -F flushes all current rules.
    [/quote]
    Is flushing permanently?

    Apearantly one needs to write one's own script on Debian (I wanted a clean/crisp system so now I pay the price). But I found a nice Debian specific tutorial to help me further. For those who are interested:

    http://www.aboutdebian.com/index.htm

    I will manage (I hope), allthough now I can't get X to start, but that is another topic. If anyone have suggestions on my IPtables starting problem I'd be still happy to hear them though!

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Stopping IPtables on Debian

    [quote author=woosting link=board=4;threadid=10691;start=0#msg96005 date=1126960467]
    Is flushing permanently?[/quote]
    I don't know what you mean by permanently but if you use -F switch, it will reset all the rules that you have put in.

    Check out "iptables -h" for more help info.
    Apearantly one needs to write one's own script on Debian (I wanted a clean/crisp system so now I pay the price).
    Not really. If you use basic iptables, then, yes, you need to write your own rules. I personally use shorewall (apt-get install shorewall) to manage my iptables scripts. So I write the rules I want in shorewall config file, then just restart shorewall and shorewall take care of all the flashing, adding and deleting rule sets.

  5. #5

    Re:Stopping IPtables on Debian

    [quote author=Compunuts link=board=4;threadid=10691;start=0#msg96063 date=1127107427]
    [quote author=woosting link=board=4;threadid=10691;start=0#msg96005 date=1126960467]
    Is flushing permanently?[/quote]
    I don't know what you mean by permanently but if you use -F switch, it will reset all the rules that you have put in.

    Check out "iptables -h" for more help info.
    Apearantly one needs to write one's own script on Debian (I wanted a clean/crisp system so now I pay the price).
    Not really. If you use basic iptables, then, yes, you need to write your own rules. I personally use shorewall (apt-get install shorewall) to manage my iptables scripts. So I write the rules I want in shorewall config file, then just restart shorewall and shorewall take care of all the flashing, adding and deleting rule sets.
    [/quote]
    I ment: "does flushing through away the rules or temporarily discards them". (I think it will delete them so when I want to use them again I will have to re-write them).

    Anyway... I got the tip to use shorewall many times... So I will check that out... allthough I would really like to write the rules directly in the IPtables, but I would still neet to start/stop/restart IPtables whenever I want to. Bot for the time being, since shorewall seems to have a less steep learningcurve, I will start out with that.

    Thank you!

  6. #6
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re:Stopping IPtables on Debian

    Just as a sidenote, I see this has turned into something about not having the time to get into iptables, and wanting to get into iptables...

    Just as a reference, you might wanna take a look at a few scripts I made ages ago..
    http://redhead.dk/download/pub/stuff/iptables-script
    http://redhead.dk/download/pub/stuff/firewall-script

    Since I was learning the differences between ip-chains and ip-tables at the time they are quite well documented, and the last one provide you with a start/stop/flush/reload/etc option, so you can use it as your normal startup script.

  7. #7

  8. #8
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Stopping IPtables on Debian

    [quote author=woosting link=board=4;threadid=10691;start=0#msg96190 date=1127468564]
    I ment: "does flushing through away the rules or temporarily discards them". (I think it will delete them so when I want to use them again I will have to re-write them).[/quote]
    Yes, you will have to re-write them unless you made the script with rules and run it at start up.

    allthough I would really like to write the rules directly in the IPtables, but I would still neet to start/stop/restart IPtables whenever I want to.
    This is the thing, you do not need to start-stop-restart iptables. It's loaded as kernel module. All you need is flash your rules set and you are good to go when you put in new rules set.

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2009, 03:54 PM
  2. Stopping a Service with a .bat file?
    By cellis in forum Windows - General Topics
    Replies: 1
    Last Post: 10-24-2006, 05:49 AM
  3. Scripting problem: stopping automount
    By morphman in forum Programming
    Replies: 7
    Last Post: 06-13-2002, 01:04 PM
  4. Starting/stopping a service at a certian time
    By xin in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 05-26-2002, 01:42 AM
  5. Starting and stopping daemons
    By Digital_Froggy in forum Linux - General Topics
    Replies: 3
    Last Post: 01-05-2002, 06:36 AM

Bookmarks

Posting Permissions

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