LinuxQuestions.org
Help answer threads with 0 replies.
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 01-07-2002, 09:44 AM   #1
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Rep: Reputation: 0
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.
 
Old 01-07-2002, 01:01 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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.
 
Old 01-08-2002, 03:04 AM   #3
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 01-08-2002, 06:33 AM   #4
penseur2
Member
 
Registered: Jan 2002
Location: Chennai India
Distribution: Red Hat
Posts: 42

Rep: Reputation: 15
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
 
Old 01-10-2002, 04:39 AM   #5
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 01-10-2002, 07:33 AM   #6
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 01-29-2002, 12:12 PM   #7
tg518
LQ Newbie
 
Registered: Jan 2002
Posts: 3

Rep: Reputation: 0
I got that same error message in Red Hat 7.2
 
  


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
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
need to configure a ppp dependant route jbeiter Linux - Networking 0 09-21-2004 02:24 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 04:52 PM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 04:17 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 01:14 PM

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

All times are GMT -5. The time now is 09:45 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