All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Linux router configuration??
@ 2003-09-25 22:25 Blu
  2003-09-25 23:12 ` Damion de Soto
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Blu @ 2003-09-25 22:25 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

Good morning at all, thanks for previous help, but I have another ask. I have a few experience of Linux world's, and I need to configure a Linux PC as router, what are the steps? What do I do?
Thanks.

[-- Attachment #2: Type: text/html, Size: 567 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
@ 2003-09-25 23:12 ` Damion de Soto
  2003-09-25 23:39 ` Derek
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Damion de Soto @ 2003-09-25 23:12 UTC (permalink / raw)
  To: lartc

Blu wrote:
> Good morning at all, thanks for previous help, but I have another ask. I 
> have a few experience of Linux world's, and I need to configure a Linux 
> PC as router, what are the steps? What do I do?

That's a pretty vague question, so I'll give you a vague answer:

Get any linux distribution and do a minimum install.
Setup the network cards and interfaces.
setup the routes and/or routing daemons
(setup the firewalling)

In the popular distros, most of these steps are done for you in the install.

good luck.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear ---                           ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
  2003-09-25 23:12 ` Damion de Soto
@ 2003-09-25 23:39 ` Derek
  2003-09-26  0:04 ` Daniel Chemko
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Derek @ 2003-09-25 23:39 UTC (permalink / raw)
  To: lartc

I'll be a tad more helpful, but not much. Setting up a linux firewall/router 
is pretty specific to your network layout/configuration. You probably will be 
better off checking these links and going from there:

General Linux setup/config documentation:
http://www.tldp.org

This document is a bit dated in that it doesnt include iptables as one of the 
firewalling software options, but it still is better than nothing. 
http://www.tldp.org/HOWTO/Firewall-HOWTO.html

The HOWTO at http://www.lartc.org is good too (hehe, had to give kudos)

Hope it helps!
Derek


On Thursday 25 September 2003 04:12 pm, Damion de Soto wrote:
> Blu wrote:
> > Good morning at all, thanks for previous help, but I have another ask. I
> > have a few experience of Linux world's, and I need to configure a Linux
> > PC as router, what are the steps? What do I do?
>
> That's a pretty vague question, so I'll give you a vague answer:
>
> Get any linux distribution and do a minimum install.
> Setup the network cards and interfaces.
> setup the routes and/or routing daemons
> (setup the firewalling)
>
> In the popular distros, most of these steps are done for you in the
> install.
>
> good luck.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
  2003-09-25 23:12 ` Damion de Soto
  2003-09-25 23:39 ` Derek
@ 2003-09-26  0:04 ` Daniel Chemko
  2003-09-26  3:46 ` Ryan Johnson
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Daniel Chemko @ 2003-09-26  0:04 UTC (permalink / raw)
  To: lartc

www.netfilter.org has up to date Kernel 2.4 firewall concepts. The links
are also pretty good at describing how everything works if you can't
find what you need at the site itself.


-----Original Message-----
From: Derek [mailto:derek@traffic-power.com] 
Sent: Thursday, September 25, 2003 4:40 PM
To: Blu
Cc: LARTC@mailman.ds9a.nl
Subject: Re: [LARTC] Linux router configuration??

I'll be a tad more helpful, but not much. Setting up a linux
firewall/router 
is pretty specific to your network layout/configuration. You probably
will be 
better off checking these links and going from there:

General Linux setup/config documentation:
http://www.tldp.org

This document is a bit dated in that it doesnt include iptables as one
of the 
firewalling software options, but it still is better than nothing. 
http://www.tldp.org/HOWTO/Firewall-HOWTO.html

The HOWTO at http://www.lartc.org is good too (hehe, had to give kudos)

Hope it helps!
Derek


On Thursday 25 September 2003 04:12 pm, Damion de Soto wrote:
> Blu wrote:
> > Good morning at all, thanks for previous help, but I have another
ask. I
> > have a few experience of Linux world's, and I need to configure a
Linux
> > PC as router, what are the steps? What do I do?
>
> That's a pretty vague question, so I'll give you a vague answer:
>
> Get any linux distribution and do a minimum install.
> Setup the network cards and interfaces.
> setup the routes and/or routing daemons
> (setup the firewalling)
>
> In the popular distros, most of these steps are done for you in the
> install.
>
> good luck.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
                   ` (2 preceding siblings ...)
  2003-09-26  0:04 ` Daniel Chemko
@ 2003-09-26  3:46 ` Ryan Johnson
  2003-09-26  6:29 ` Ronny Aasen
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ryan Johnson @ 2003-09-26  3:46 UTC (permalink / raw)
  To: lartc

I am going to assume you want the most basic router, just two interfaces.

1.) Make sure both network cards have been detected.
ifconfig eth0
ifconfig eth1
2.) Set up each interface on its own network, make sure the interface has been activated, you can use ifconfig for this.
3.) issue the command
echo 1 > /proc/sys/net/ipv4/ip_forward
to enable ip fowarding, w/o this the kernel will not send packets between interfaces
4.) set the clients behind the router to point to the internal ip of your router

Any changes made to the system will have to be initialized during the boot process.

Of course if you have ip addresses that you would like to nat/masq behind the router, you will have to use iptables.

You really should be more specific on your needs.

Good luck.


> Good morning at all, thanks for previous help, but I have another ask. I have a few experience of Linux world's, and I need to configure a Linux PC as router, what are the steps? What do I do?
> Thanks.

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
                   ` (3 preceding siblings ...)
  2003-09-26  3:46 ` Ryan Johnson
@ 2003-09-26  6:29 ` Ronny Aasen
  2003-09-26  7:44 ` Raghuveer
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ronny Aasen @ 2003-09-26  6:29 UTC (permalink / raw)
  To: lartc

On Fri, 2003-09-26 at 00:25, Blu wrote:
> Good morning at all, thanks for previous help, but I have another ask.
> I have a few experience of Linux world's, and I need to configure a
> Linux PC as router, what are the steps? What do I do?
> Thanks.


what you could do is. 
go to http://leaf.sf.net

this is a router/firewall on a floppy disk system, that also can boot
from hd, flash, cd, or whatever.

it's dead easy to setup. reboots very quickly. and only uses media on
boot so you wont wear out you'r floppy, hd, cd whatever on constant
spinning.


best regards
-- 
Ronny Aasen <list@datapart-as.no>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
                   ` (4 preceding siblings ...)
  2003-09-26  6:29 ` Ronny Aasen
@ 2003-09-26  7:44 ` Raghuveer
  2003-09-29  1:36 ` Steve Wright
  2003-10-01  8:54 ` Raghuveer
  7 siblings, 0 replies; 9+ messages in thread
From: Raghuveer @ 2003-09-26  7:44 UTC (permalink / raw)
  To: lartc

Ryan Johnson wrote:

>I am going to assume you want the most basic router, just two interfaces.
>
>1.) Make sure both network cards have been detected.
>ifconfig eth0
>ifconfig eth1
>
Can I have both the network cards in the same n/w...? Becoz If I try to 
use both NIC's with the same n/w, running <$ route -n> we can see either 
eth1 or eth0 repeated twice. Pls let me know where is the problem..?

Regards
-Raghu

>2.) Set up each interface on its own network, make sure the interface has been activated, you can use ifconfig for this.
>3.) issue the command
>echo 1 > /proc/sys/net/ipv4/ip_forward
>to enable ip fowarding, w/o this the kernel will not send packets between interfaces
>4.) set the clients behind the router to point to the internal ip of your router
>
>Any changes made to the system will have to be initialized during the boot process.
>
>Of course if you have ip addresses that you would like to nat/masq behind the router, you will have to use iptables.
>
>You really should be more specific on your needs.
>
>Good luck.
>
>
>  
>
>>Good morning at all, thanks for previous help, but I have another ask. I have a few experience of Linux world's, and I need to configure a Linux PC as router, what are the steps? What do I do?
>>Thanks.
>>    
>>
>
>_______________________________________________
>LARTC mailing list / LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>  
>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
                   ` (5 preceding siblings ...)
  2003-09-26  7:44 ` Raghuveer
@ 2003-09-29  1:36 ` Steve Wright
  2003-10-01  8:54 ` Raghuveer
  7 siblings, 0 replies; 9+ messages in thread
From: Steve Wright @ 2003-09-29  1:36 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

On Fri, 2003-09-26 at 19:32, Raghuveer wrote:


> Can I have both the network cards in the same n/w...? Becoz If I try to 
> use both NIC's with the same n/w, running <$ route -n> we can see either 
> eth1 or eth0 repeated twice. Pls let me know where is the problem..?



you don't need to do this.  just add both IP addresses to the same NIC,
viz ;

ip address add 192.168.0.254/24 dev eth0
ip address add 10.128.254.254/16 dev eth0

and proceed as usual.  The subnet routes are added automatically.



/steve


[-- Attachment #2: Type: text/html, Size: 946 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] Linux router configuration??
  2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
                   ` (6 preceding siblings ...)
  2003-09-29  1:36 ` Steve Wright
@ 2003-10-01  8:54 ` Raghuveer
  7 siblings, 0 replies; 9+ messages in thread
From: Raghuveer @ 2003-10-01  8:54 UTC (permalink / raw)
  To: lartc

Ryan Johnson wrote:

>Could you send me the output of route -n?
>
>Your two network cards should not be in the same network, if they are, it is not a rotuer. The whole purpose of a router is a gateway for clients on a network to get to another network that they (clients) do not know how to reach.
>
>Ryan
>  
>
Anyway thanks Ryan, I just wanted to confirm from you, whether we can 
have two NIC's in a m/c connected to a same network.
Output of route -n is :-
 
Destination     Gateway         Genmask             Flags     Metric  
Ref    Use Iface
192.168.1.0     0.0.0.0             255.255.255.0     U           
0           0        0     eth1
192.168.1.0     0.0.0.0             255.255.255.0     U           0      
     0        0     eth1
127.0.0.0         0.0.0.0             255.0.0.0             U           
0           0        0     lo
0.0.0.0             192.168.1.2     0.0.0.0                 UG        
0           0        0     eth0

what I was expecting was:-

Destination     Gateway         Genmask             Flags     Metric  
Ref    Use Iface
192.168.1.0     0.0.0.0             255.255.255.0     U           
0           0        0     eth0
192.168.1.0     0.0.0.0             255.255.255.0     U           0      
     0        0     eth1
127.0.0.0         0.0.0.0             255.0.0.0             U           
0           0        0     lo
0.0.0.0             192.168.1.2     0.0.0.0                 UG        
0           0        0     eth0

Regards
-Raghu

>  
>
>>Ryan Johnson wrote:
>>
>>    
>>
>>>I am going to assume you want the most basic router, just two interfaces.
>>>
>>>1.) Make sure both network cards have been detected.
>>>ifconfig eth0
>>>ifconfig eth1
>>>
>>>      
>>>
>>Can I have both the network cards in the same n/w...? Becoz If I try to 
>>use both NIC's with the same n/w, running <$ route -n> we can see either 
>>eth1 or eth0 repeated twice. Pls let me know where is the problem..?
>>
>>Regards
>>-Raghu
>>
>>    
>>
>>>2.) Set up each interface on its own network, make sure the interface has been activated, you can use ifconfig for this.
>>>3.) issue the command
>>>echo 1 > /proc/sys/net/ipv4/ip_forward
>>>to enable ip fowarding, w/o this the kernel will not send packets between interfaces
>>>4.) set the clients behind the router to point to the internal ip of your router
>>>
>>>Any changes made to the system will have to be initialized during the boot process.
>>>
>>>Of course if you have ip addresses that you would like to nat/masq behind the router, you will have to use iptables.
>>>
>>>You really should be more specific on your needs.
>>>
>>>Good luck.
>>>
>>>
>>> 
>>>
>>>      
>>>
>>>>Good morning at all, thanks for previous help, but I have another ask. I have a few experience of Linux world's, and I need to configure a Linux PC as router, what are the steps? What do I do?
>>>>Thanks.
>>>>   
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>LARTC mailing list / LARTC@mailman.ds9a.nl
>>>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>>
>>> 
>>>
>>>      
>>>
>>_______________________________________________
>>LARTC mailing list / LARTC@mailman.ds9a.nl
>>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>    
>>
>
>
>  
>


-- 
****** This email is confidential and is intended for the original recipient(s)
only. If you have erroneously received this mail, please delete it immediately
and notify the sender. Unauthorized copying, disclosure or distribution of the
material in this mail is prohibited. Views expressed in this mail are those of
the individual sender and do not bind Gsec1 Limited. or its subsidiary, unless
the sender has done so expressly with due authority of Gsec1.******
 


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-10-01  8:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-25 22:25 [LARTC] Linux router configuration?? Blu
2003-09-25 23:12 ` Damion de Soto
2003-09-25 23:39 ` Derek
2003-09-26  0:04 ` Daniel Chemko
2003-09-26  3:46 ` Ryan Johnson
2003-09-26  6:29 ` Ronny Aasen
2003-09-26  7:44 ` Raghuveer
2003-09-29  1:36 ` Steve Wright
2003-10-01  8:54 ` Raghuveer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.