Pejman Moghadam / Scripts

Load NAT Module-Helpers

Public domain


 #!/bin/bash
 for MOD in $(/usr/bin/find /lib/modules/$(uname -r)/kernel/net -name "*nat*"); do
   /sbin/modprobe $(/usr/bin/basename $MOD .ko)
 done

 for MOD in $(/usr/bin/find /lib/modules/$(uname -r)/kernel/net -name "*_gre.ko"); do
   /sbin/modprobe $(/usr/bin/basename $MOD .ko)
 done

BY: Pejman Moghadam
TAG: nat, iptables, modprobe
DATE: 2009-04-25 16:19:34


Pejman Moghadam / Scripts [ TXT ]