* domenica 07 ottobre 2001, alle 18:15, Roberto A . F . scrive: > > "marnaudo@xxxxxxxxx" wrote: > > Just do it! > Post here your venzafw.raf script please and cut&past the two rows in > /etc/ppp/ip-up for down and up. > #!/bin/bash iplocale="$(ifconfig | grep P-t-P | cut -d \: -f2 | cut -d \ -f1)" iptables -F iptables -I INPUT -p tcp -s 0.0.0.0 -d $iplocale -i ippp0 --syn -j DROP iptables -P INPUT ACCEPT iptables -I INPUT -p tcp -s 0.0.0.0 -d $iplocale -i ippp0 --syn -j LOG #route add default gw $iplocale ippp0 ... # call venza firewall /etc/ppp/venzafw.raf ;; ip-down) ... # put down venza firewall iptables -F route del default ;; *) ;; esac ;; ... Bye, Max -- E impari che puoi davvero sopportare, che sei davvero forte, e che vali davvero. --- --- HomePage: http://spazioweb.inwind.it/arnaudo LinuxGroup: http://lugge.ziobudda.net <========---------- Prima di scrivere in m-list per favore leggi il regolamento http://lugge.ziobudda.net/benvenuto.html