use this one
#!/bin/sh echo "Enabling IP forward ..." #/sbin/modprobe ip_nat_ftp echo "1" > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -P forward DENY /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ copy these to a file make it chmod 755 filename execute it and there u go.... 192.168.1.0/24 replaces ur local net work ip that is yor local trusted ip MASQ says everything coming inside from ur lan is trusted and MASQ it t outside network ... this should get u going easily... senthil ----- Original Message ----- From: "Bob Buckley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 5:37 PM Subject: RE: Internet Gateway > Is IPV4_FORWARD set to yes? > > BobB > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 6:28 AM > To: [EMAIL PROTECTED] > Subject: Re: Internet Gateway > > > Use IpForwarding funtcion in Linux > > > good luck > > > Senthil > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 03, 2003 5:04 PM > Subject: Internet Gateway > > > > Hi, > > > > I'm looking to setup an internet gateway on one of our servers. I have a > > LINUX 9 server with 2 network cards. One NIC has the IP address > 10.1.50.70 > > (subnet 255.255.0.0) and is visible to my internal network. The second > > card has an IP address of 192.168.254.250 (subnet 255.255.255.0). This > > second network card is the one the is linked to our ADSL line (IP address > > 192.168.254.254 subnet 255.255.255.0). I need to be able to setup the > > server so the internal network can connect to the internet via the second > > network card. Unfortunately I can't get this to work. I can only get it > > to work if the NIC's are on the same subnet. > > > > Can anybody offer any advice or tell me how to do it? > > > > Thanks > > > > Steve > > > > > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED] > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list