Michael Lauer wrote: > D. R. Newman wrote: >> Have you managed to get the 'phone gatewayed through your computer to >> the build site? (When usb0 comes up on my PC, eth0 stops working, and I >> cannot get Mandriva to set up network translation between the Internet >> and static local IP addresses, it assumes they use DHCP. It does not use >> the same scripts as Redhat.)
> I'm using Mandriva with the following script here: > [EMAIL PROTECTED]:/etc/sysconfig/network-scripts/ifup.d$ cat autoforward > #!/bin/sh > if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then > . /etc/sysconfig/network-scripts/ifcfg-$1 > if [ "$1" == "usb0" ]; then > echo enabling NAT on $1 > iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 > echo 1 > /proc/sys/net/ipv4/ip_forward > iptables -P FORWARD ACCEPT > fi > fi Here is the corresponding configuration for Mandriva: [EMAIL PROTECTED]:/etc/sysconfig/network-scripts$ cat ifcfg-usb0 DEVICE=usb0 BOOTPROTO=static IPADDR=192.168.0.200 NETMASK=255.255.255.0 ONBOOT=no METRIC=20 MII_NOT_SUPPORTED=no USERCTL=yes RESOLV_MODS=no IPV6INIT=no IPV6TO4INIT=no Regards, :M: -- Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de

