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.
|
|
01-07-2002, 09:44 AM
|
#1
|
LQ Newbie
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16
Rep:
|
want to install and configure route
hi,
I want to install and configure router in mu linux box(RedHat 7.1).please suggest me the best.
|
|
|
01-07-2002, 01:01 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
please suggest me the best
|
are you looking for best router software or distro specific ?? get more detailed in what your wanting and makes it easier to answer.
|
|
|
01-08-2002, 03:04 AM
|
#3
|
LQ Newbie
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16
Original Poster
Rep:
|
routers
hi,
I know that linux redhat 7.1 is a router and can be configured.If you can give me tips on that,no problem.If I want to download a new software and install as a router ,no problem.Please let me know which is the best,I'll try both.
|
|
|
01-08-2002, 06:33 AM
|
#4
|
Member
Registered: Jan 2002
Location: Chennai India
Distribution: Red Hat
Posts: 42
Rep:
|
i'm assuming you have two ethernet cards and want to route between a LAN on eth0 and a static IP on eth1.
IIf you want a good firewall on your router get bastille from bastille-linux.org
to set up routing
1. echo "1" > /proc/sys/net/ipv4/ip_forward
2.iptables -P FORWARD DENY
3. iptables -I FORWARD -s $LAN -d 0/0 -j ACCEPT
4.iptables -A FORWARD -s 0/0 -d $LAN -j ACCEPT
4 iptables -t nat -A POSTROUTING -s $LAN -j MASQUERADE
This is a very permissive setup . Bastille will set things up automatically when
you run InteractiveBastille.
If you want to run a router per se and not a firewall you'll probably need to use
the gated or routed packages to autonatically set up routes. BTW don't forget to set your default gateway etc . Check out Rusty's unreliable guides to NAT, firewalls at netfilter.samba.org
Hope this was helpful
penseur2
|
|
|
01-10-2002, 04:39 AM
|
#5
|
LQ Newbie
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16
Original Poster
Rep:
|
router
hi,
Thanks for you reply for setting routers.I installed two network cards(NICs) and set a seperate IP address for the two cards.I gave the command line configuration as you mentioned.But it throws error.I captured this error and I am sending you.
When I give
iptables -P FORWARD DENY ,it throws
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device
or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.1a: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Please let me know what mistake is this or what should I do.
|
|
|
01-10-2002, 07:33 AM
|
#6
|
LQ Newbie
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16
Original Poster
Rep:
|
router
While I posted my pervious message,I did not see ipchain working.I stopped IPChain and re-typed your command line config.Now it says
iptable : Bad Policy name
Please suggest me what I should do.
|
|
|
01-29-2002, 12:12 PM
|
#7
|
LQ Newbie
Registered: Jan 2002
Posts: 3
Rep:
|
I got that same error message in Red Hat 7.2
|
|
|
All times are GMT -5. The time now is 09:45 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
|
|