[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: masquerading



adjust it to your needs:

#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

On Fri, Dec 10, 1999 at 09:39:59PM +0100, igi technik wrote: 
> I'm newbie in Linux world so don't bite me...
> I need masqerade my internal eth network ( another one comp with W95) and made everything what I found in IP masqerading HOWTO (kernel 2.0.36 recompiled, ipfwadm configured) -- it dos'nt work... linux box is connected and working (this machine) and when pinging from internal machine (192.168.0.2) to eth1 card on linux box (192.168.0.1) or external host -- nothing :-( but on linux I see incomming packets from 192.168.0.2 
> 
> what about routing table? added route add -net 192.168...etc
> where can i find some howto about this?
> 
> igi
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 

-- 
Marcin Kurc
Indiana Institute of Technology
System Administrator
http://me.indtech.edu 		http://www.indtech.edu


Reply to: