LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2001, 12:38 AM   #1
RPJojo
LQ Newbie
 
Registered: Jun 2001
Posts: 3

Rep: Reputation: 0
Exclamation


I've installed RH Linux 7.0 in a friend's computer shop 'coz we're sick and tired of NT's acting as Internet Gateway and always crashes. What I need to know is how can I be able to use the Linux box act as internet gateway to other windoze machines? PPP is already setup and can browse in the server alone. (He's using only DUN to connect to the ISP.) I also included in rc.local the command to ip masq :

echo "1" /proc/sys/net/ipv4/ip_forward

when i check ip forwarding:
cat /proc/sys/net/ipv4/ip_forward it returns 1.

any help, please?
 
Old 06-16-2001, 04:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by RPJojo

echo "1" /proc/sys/net/ipv4/ip_forward

when i check ip forwarding:
cat /proc/sys/net/ipv4/ip_forward it returns 1.

any help, please?
Presumably you typed the echo command wrong.. should involve a '>'... seems to work tho..

You need to set up IP masquarading with ip chains. My rc.local file contains...

/sbin/ipchains -A forward -i ppp0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward

under RH71. You should also be able to permanently enable ip forwarding by setting the parameter in /etc/sysctl.conf instead of the using the echo command.

Sorted, respect due!

Chris
xxxx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux and Internet Gateway yenonn Linux - Networking 1 06-28-2005 08:11 AM
Using Linux as an internet router / gateway bashworth Linux - Networking 2 09-10-2004 06:00 PM
Linux Redhat 9 as an Internet Gateway sratz Linux - Newbie 1 05-07-2004 09:18 AM
using a linux PC as an internet gateway? e1000 Linux - Networking 8 01-10-2004 04:49 PM
Easy to use Linux internet gateway KevinJ Linux - Networking 0 06-07-2001 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration