Computing.Net > Forums > Linux > Linux as a router

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Linux as a router

Reply to Message Icon

Original Message
Name: Ali
Date: April 23, 2002 at 05:12:03 Pacific
Subject: Linux as a router
Comment:

Hi,
I would like to set Linux as a router.
I installed the Red hat 7.2 verssion iNow according to the book Red hat linux 7.2 Bible it says to enter this:
ipchains -P forward Deny and then ipchains -A forward -i ppp0 -s 192.168.0.0/255.255.255.0 -j MASQ
the problem is when i enter the first sentence it says protocol not availble so i found in this forum that i have to enter modprobe ipchains and it worked and when i enter the second sentence it doesnThanks


Report Offensive Message For Removal


Response Number 1
Name: Ali
Date: April 23, 2002 at 05:19:40 Pacific
Reply: (edit)

Sorry something is missing.
I would like to set Linux as a router.
I installed the Red hat 7.2 verssion iNow according to the book Red hat linux 7.2 Bible it says to enter this:
ipchains -P forward Deny and then ipchains -A
forward -i ppp0 -s 192.168.0.0/255.255.255.0 -j
MASQ
the problem is when i enter the first sentence it
says protocol not availble so i found in this
forum that i have to enter modprobe ipchains and
it worked and when i enter the second sentence it
doesnin my computer on my lan so routing is not
working how to fix this .
Thanks


Report Offensive Follow Up For Removal

Response Number 2
Name: Danny Larouche
Date: April 23, 2002 at 06:18:17 Pacific
Reply: (edit)

Make sure the /proc/sys/net/ipv4/ip_forward value is "1" not "0"

Then type the following:
(upper/lower are very important)

ipchains -P forward DENY


Report Offensive Follow Up For Removal

Response Number 3
Name: Ali
Date: April 23, 2002 at 17:54:28 Pacific
Reply: (edit)

Hi,
It is working perfectly now ,i was setting the wrong card network.
Thank you very much Danny


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software