Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-04-2001, 12:34 PM
|
#1
|
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:
|
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?
|
|
|
10-04-2001, 01:45 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-04-2001, 02:30 PM
|
#3
|
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:
|
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.
|
|
|
10-04-2001, 02:58 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well.. this ones got two.. oh no.. three replies alredy.. maybe it does work!
|
|
|
All times are GMT -5. The time now is 01:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|