* [LARTC] Router
@ 2002-11-22 15:08 Rimas
2002-11-22 15:19 ` David Boreham
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rimas @ 2002-11-22 15:08 UTC (permalink / raw)
To: lartc
Hi guys,
I'm asking the same question again (it's very urgent for me).
How to build a router on Linux box?
I have a Linux box (Redhat 7.3) with two network cards.
eth0 is connection to my wireless ISP and eth1 to my FWs.
I want to route eth0<-->eht1. Both NIC have real Internet IP as well like
FWs.
I need no NAT (no needs to hide my real IP, because it have to be seen from
Internet).
Do I have to use ip route or iptables or combination of it.
Thank you
Rimas
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] Router
2002-11-22 15:08 [LARTC] Router Rimas
@ 2002-11-22 15:19 ` David Boreham
2002-11-22 15:33 ` Stef Coene
2002-11-22 16:34 ` Ashok N N
2 siblings, 0 replies; 4+ messages in thread
From: David Boreham @ 2002-11-22 15:19 UTC (permalink / raw)
To: lartc
> How to build a router on Linux box?
This is a bit like asking 'How do I build a nuclear reactor, I need to
have it done by monday' :)
You will need to sit down and do quite a bit of reading.
There are howto documents, there are books on the subject,
there are mailing lists like this. You'll need to spend time with
all three types of information source.
The book "Linux Firewalls", despite the title, is a good
source of informaiton on routing with Linux.
The book "Linux Routing" is also good.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Router
2002-11-22 15:08 [LARTC] Router Rimas
2002-11-22 15:19 ` David Boreham
@ 2002-11-22 15:33 ` Stef Coene
2002-11-22 16:34 ` Ashok N N
2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-11-22 15:33 UTC (permalink / raw)
To: lartc
On Friday 22 November 2002 16:08, Rimas wrote:
> Hi guys,
>
> I'm asking the same question again (it's very urgent for me).
>
> How to build a router on Linux box?
>
> I have a Linux box (Redhat 7.3) with two network cards.
> eth0 is connection to my wireless ISP and eth1 to my FWs.
> I want to route eth0<-->eht1. Both NIC have real Internet IP as well like
> FWs.
> I need no NAT (no needs to hide my real IP, because it have to be seen from
> Internet).
> Do I have to use ip route or iptables or combination of it.
If the box is up and running with 2 nic's configured, try this :
echo 1 > /proc/sys/net/ipv4/ip_forward
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] Router
2002-11-22 15:08 [LARTC] Router Rimas
2002-11-22 15:19 ` David Boreham
2002-11-22 15:33 ` Stef Coene
@ 2002-11-22 16:34 ` Ashok N N
2 siblings, 0 replies; 4+ messages in thread
From: Ashok N N @ 2002-11-22 16:34 UTC (permalink / raw)
To: lartc
On Friday 22 November 2002 10:33 am, Stef Coene wrote:
> On Friday 22 November 2002 16:08, Rimas wrote:
> > Hi guys,
> >
> > I'm asking the same question again (it's very urgent for me).
> >
> > How to build a router on Linux box?
> >
> > I have a Linux box (Redhat 7.3) with two network cards.
> > eth0 is connection to my wireless ISP and eth1 to my FWs.
> > I want to route eth0<-->eht1. Both NIC have real Internet IP as well like
> > FWs.
> > I need no NAT (no needs to hide my real IP, because it have to be seen
from
> > Internet).
> > Do I have to use ip route or iptables or combination of it.
> If the box is up and running with 2 nic's configured, try this :
>
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> Stef
>
Just to enable routing (without any firewall stuff) the above command would be
sufficient. To make it permanent, add the following to /etc/sysctl.conf:
# Enables packet forwarding
net.ipv4.ip_forward=1
You could also add the following to enable route verification:
# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
Thanks,
Ashok
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-22 16:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 15:08 [LARTC] Router Rimas
2002-11-22 15:19 ` David Boreham
2002-11-22 15:33 ` Stef Coene
2002-11-22 16:34 ` Ashok N N
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.