Re: reset rules ?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Martin, but an other thing how delete this type of rule :
32761:  from all to 172.18.200.6 lookup main

When I try with your script and the command  : ip rule del from all to 172.18.200.6 lookup main
the result is the same :  Error: an inet prefix is expected rather than "all"
thks

Fabio
 
Martin A. Brown a écrit:
Fabio,

I use  a short snippet of shell to do it:

# ip rule show | grep -Ev '^(0|3276(6|7)):' \
  
 |  while read PRIO RULE  ; do \
    ip rule del prio ${PRIO%:} $RULE
 done
    

I'm not aware of a more elegant way to do this.  Anybody else?

-Martin

On Tue, 19 Nov 2002, fabio wrote:

 : Dear All
 :  Do you know if its possible to reset the rule with a single command or 
 : if I must delete manually all the rule ?
 : thanks
 : 
 : Fabien
 : 
 : _______________________________________________
 : LARTC mailing list / LARTC@mailman.ds9a.nl
 : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 : 

  


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux