All pastes #559189 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-11 17:44 UTC
rendered paste body
root@marciano:/etc/rc.d# egrep -v '^#|^$' $(updatedb ; locate rc.local)
if [ -x /etc/rc.d/rc.vmware ]; then
  . /etc/rc.d/rc.vmware
fi
modprobe ndiswrapper
modprobe ipt_MASQUERADE
modprobe iptable_nat
ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ifconfig wlan0 172.16.92.102 netmask 255.255.0.0
iptables -t nat -A POSTROUTING -o wlan0 -j
echo 1 > /proc/sys/net/ipv4/ip_forward
route add default gw 172.16.0.1
if ! [ -e /dev/kqemu ]; then
  mknod /dev/kqemu c 250 0
  chmod 666 /dev/kqemu
fi
root@marciano:/etc/rc.d#