Scripts needed


Subject: Scripts needed
From: i_robot (i-robot@gci.net)
Date: Tue Nov 05 2002 - 22:51:26 AKST


Ok, got a favor to ask...I need 2 scripts (I tried to do them myself, to no avail...)
I need one to do this:

modprobe usb-eth
modprobe usbnet
ifconfig usbf 192.168.0.51 netmask 255.255.255.0
route add default gw 192.168.0.50

and one that will acomplish this:

modprobe usbnet
ifconfig usb0 192.168.0.50 netmask 255.255.255.0
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.0.51 -j MASQUERADE
echo > 1 /proc/sys/net/ipv4/ip_forward

The best script I got to work was 'Hello World"

Thanks.

Adam

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Nov 05 2002 - 22:49:30 AKST