Re: Scripts needed


Subject: Re: Scripts needed
bryan@ak.net
Date: Tue Nov 05 2002 - 23:01:36 AKST


On Tue, Nov 05, 2002 at 10:51:26PM -0900, i_robot <i-robot@gci.net> wrote:
> 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"

I think I can help. Take those lists of commands, and put this:
#!/bin/sh
at the top of each one. Okay? Next step: celebrate -- you're done!

--
Bryan Medsker
bryan@ak.net

--------- 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 - 23:02:49 AKST