LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2001, 12:34 PM   #1
Sathe
Member
 
Registered: Sep 2001
Location: Bryan, Ohio USA (Home of the Etch-A Sketch)
Distribution: RedHat 7.1, 7.2, and 7.3
Posts: 76

Rep: Reputation: 15
Help!


ppp0<Linuxbox>eth0(192.168.1.1)-------(192.168.1.6)<pc>

This is what i am trying to set up so my PC can get out to the internet through the linux box. i have redhat 7.1 and with the 2.4 kernal i need to use net filter or NAT or something like that. i've looked at some of the other questions and tried doing what some other people have suggested:

echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -F
ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward ACCEPT
ipchains -A forward -i eth0 -j MASQ

But that didn't work, i can ping back and forth between computers just fine, is there something i am missing? or am i just doing this completely wrong, i've read a HOWTO on NAT, but it wasn't very specific, so i didn't know what to do, any help would be appreciated. Also, i've set my PC's gateway to be 192.168.1.1 and the DNS to be my ISP's DNS nuimbers, is that correct?
 
Old 10-04-2001, 01:45 PM   #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
all i do is:

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

in my /etc/rc.local file and it works perfick (rh71 2.4.2)

everything else looks fine.

oh and can you please use relevant message titles in future.. makes it much easier.
 
Old 10-04-2001, 02:30 PM   #3
Sathe
Member
 
Registered: Sep 2001
Location: Bryan, Ohio USA (Home of the Etch-A Sketch)
Distribution: RedHat 7.1, 7.2, and 7.3
Posts: 76

Original Poster
Rep: Reputation: 15
thanks Acid

will do in the future. i just didn't know how else to get someone to look at my post, i've posted like 4 other times before but have only gotten like one reply, thanks again.
 
Old 10-04-2001, 02:58 PM   #4
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
well.. this ones got two.. oh no.. three replies alredy.. maybe it does work!
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:41 PM.

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