Results 1 to 18 of 18

Thread: iptables repair

  1. #1
    Join Date
    Mar 2008
    Posts
    263

    iptables repair

    Hello,

    Our server iptables damaged, how can repair server iptables?

    Help me please.
    Need More Power?!
    PersianWhois.Com

  2. #2
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,429
    Hi

    When you say repair, do you mean you have lost access to the box ?

    If thats the case you need to ask your provider to logon to the actual box and run iptables -F

    Thanks

  3. #3
    Join Date
    Feb 2007
    Posts
    325
    Hello yaarmohammadi,

    whats your seems of damaged?
    if you want remove and reinstall it use of this command :

    yum remove iptables
    and then
    yum install iptables

    yum update
    if you use of iptables -F,i think your server going to down. ;-)
    Good luck
    Soon ...

  4. #4
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,429
    Hi

    iptables -F, only flushes the current iptables Rules, it does not bring the server down. It will leave it with no firewall, but if its the only course of action to repair the server I see little choice.

    From the OP, its not clear what the problem is. So I merely speculated as to what the real issue was.

    Thanks

  5. #5
    Join Date
    Apr 2004
    Posts
    575
    More information as to how it was damaged and also what Linux distribution are you running?

  6. #6
    Join Date
    Mar 2008
    Posts
    263
    Special thanks for all post.
    I upgrade server kernel to 2.6.25 and iptables damaged after upgrade.
    Because i cant start CSF and have following error:
    Code:
    iptables: No chain/target/match by that name
    LOG  tcp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0  limit: avg 30/min burst 5 LOG flags 0 level 4 prefix `Firewall: *TCP_IN Blocked* '
    Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp  -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 211
    What is the best way for resolve this issue?
    Note: we havent any access to server if its down and datacenter make $30 invoice (per 15min) for work on my server.

    Thanks
    Need More Power?!
    PersianWhois.Com

  7. #7
    Join Date
    Feb 2007
    Posts
    325
    you are vps?
    Soon ...

  8. #8
    Join Date
    Mar 2008
    Posts
    263
    No, its linux dedicated server.
    Need More Power?!
    PersianWhois.Com

  9. #9
    Join Date
    Mar 2008
    Posts
    263
    Help me please ...
    Need More Power?!
    PersianWhois.Com

  10. #10
    Join Date
    Feb 2007
    Posts
    325

  11. #11
    Join Date
    Mar 2008
    Posts
    263
    Quote Originally Posted by robocap View Post
    Hello yaarmohammadi,

    whats your seems of damaged?
    if you want remove and reinstall it use of this command :

    yum remove iptables
    and then
    yum install iptables

    yum update
    if you use of iptables -F,i think your server going to down. ;-)
    Good luck
    Do you think server maybe down if i use yum for remove and install iptables too?
    Need More Power?!
    PersianWhois.Com

  12. #12
    Join Date
    Feb 2007
    Posts
    325
    no
    if you use of iptales -F maybe going to down,else don`t have problem
    Soon ...

  13. #13
    Join Date
    Feb 2007
    Posts
    325
    my id yahoo : robocap_user_2007
    Soon ...

  14. #14
    Join Date
    Mar 2008
    Posts
    263
    I remove and install iptables, but i have following error too:

    iptables: No chain/target/match by that name
    LOG tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 limit: avg 30/min burst 5 LOG flags 0 level 4 prefix `Firewall: *TCP_IN Blocked* '
    Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 211

    How can resolve this issue?
    Need More Power?!
    PersianWhois.Com

  15. #15
    Join Date
    Feb 2007
    Posts
    325
    service iptables restart

    copy paste log here
    Soon ...

  16. #16
    Join Date
    Mar 2008
    Posts
    263
    [email protected] [~]# service iptables restart
    Flushing firewall rules: [ OK ]
    Setting chains to policy ACCEPT: filter [ OK ]
    Unloading iptables modules: [ OK ]


    But we have above error when csf -s
    Need More Power?!
    PersianWhois.Com

  17. #17
    Join Date
    Apr 2004
    Posts
    575
    I'm not very familiar with CSF, but have you tried recompiling or reinstalling it?

  18. #18
    Join Date
    Feb 2007
    Posts
    325
    cd /etc/csf
    sh uninstall.sh
    Soon ...

Posting Permissions

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