Linux Netfilter discussions
 help / color / mirror / Atom feed
* Turning on IP Forwarding
@ 2003-03-24 13:02 James Marcinek
  2003-03-24 13:37 ` Jesper Lund
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Marcinek @ 2003-03-24 13:02 UTC (permalink / raw)
  To: netfilter

I always foget this.

Can anyone tell me which file I need to modify to turn
on IP Forwarding? I know where to do it while the
system is on; however, since it's a multi-homed system
and my router, I would like to have it setup
correctly...

Thanks,

James

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


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

* Re: Turning on IP Forwarding
  2003-03-24 13:02 Turning on IP Forwarding James Marcinek
@ 2003-03-24 13:37 ` Jesper Lund
  2003-03-24 14:48   ` James Marcinek
  2003-03-24 14:51   ` Scott MacKay
  2003-03-24 14:08 ` Rob Sterenborg
  2003-03-24 14:54 ` sathvanth
  2 siblings, 2 replies; 7+ messages in thread
From: Jesper Lund @ 2003-03-24 13:37 UTC (permalink / raw)
  To: james_marcinek; +Cc: netfilter

> I always foget this.
>
> Can anyone tell me which file I need to modify to turn
> on IP Forwarding? I know where to do it while the
> system is on; however, since it's a multi-homed system
> and my router, I would like to have it setup
> correctly...

echo 1 > /proc/sys/net/ipv4/ip_forward

Place that line in eg. /etc/rc.local

//Jesper




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

* RE: Turning on IP Forwarding
  2003-03-24 13:02 Turning on IP Forwarding James Marcinek
  2003-03-24 13:37 ` Jesper Lund
@ 2003-03-24 14:08 ` Rob Sterenborg
  2003-03-24 14:19   ` Kim Jensen
  2003-03-24 14:54 ` sathvanth
  2 siblings, 1 reply; 7+ messages in thread
From: Rob Sterenborg @ 2003-03-24 14:08 UTC (permalink / raw)
  To: netfilter

> Can anyone tell me which file I need to modify to turn
> on IP Forwarding? I know where to do it while the
> system is on; however, since it's a multi-homed system
> and my router, I would like to have it setup
> correctly...

Do you mean like, on a RedHat machine : 
/etc/sysctl.conf ->
net.ipv4.ip_forward = 1

Or :
echo 1 > /proc/sys/net/ipv4/ip_forward
Which you can put in /etc/rc.d/rc.local or whatever startup file.


Rob



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

* Re: Turning on IP Forwarding
  2003-03-24 14:08 ` Rob Sterenborg
@ 2003-03-24 14:19   ` Kim Jensen
  0 siblings, 0 replies; 7+ messages in thread
From: Kim Jensen @ 2003-03-24 14:19 UTC (permalink / raw)
  To: netfilter

On Monday 24 March 2003 15:08, Rob Sterenborg wrote:
> Do you mean like, on a RedHat machine :
> /etc/sysctl.conf ->
> net.ipv4.ip_forward = 1
>
> Or :
> echo 1 > /proc/sys/net/ipv4/ip_forward
> Which you can put in /etc/rc.d/rc.local or whatever startup file.
>
Both will work, it is up to you to decide where you wish to have this placed!

I prefer having it as part of my firewall script to start and stop forwarding 
together with my firewall.

/Kim



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

* Re: Turning on IP Forwarding
  2003-03-24 13:37 ` Jesper Lund
@ 2003-03-24 14:48   ` James Marcinek
  2003-03-24 14:51   ` Scott MacKay
  1 sibling, 0 replies; 7+ messages in thread
From: James Marcinek @ 2003-03-24 14:48 UTC (permalink / raw)
  To: Jesper Lund; +Cc: netfilter

Everybody is sending the same answer (that I was aware
of). I was looking for the value that is set during
bootup, not modifying that value. The value is
contained in /etc/sysctl.conf (on RH linux) This is
where the value is read from. The /proc file system is
a virtual file system... The solution that I keep
getting. 

Thanks,

James

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


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

* Re: Turning on IP Forwarding
  2003-03-24 13:37 ` Jesper Lund
  2003-03-24 14:48   ` James Marcinek
@ 2003-03-24 14:51   ` Scott MacKay
  1 sibling, 0 replies; 7+ messages in thread
From: Scott MacKay @ 2003-03-24 14:51 UTC (permalink / raw)
  To: netfilter

Or update /etc/sysctl.conf with the line:

net.ipv4.ip_forward = 1

-Scott

--- Jesper Lund <jesper@ballbreaker.dk> wrote:
> > I always foget this.
> >
> > Can anyone tell me which file I need to modify to
> turn
> > on IP Forwarding? I know where to do it while the
> > system is on; however, since it's a multi-homed
> system
> > and my router, I would like to have it setup
> > correctly...
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> Place that line in eg. /etc/rc.local
> 
> //Jesper
> 
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


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

* Re: Turning on IP Forwarding
  2003-03-24 13:02 Turning on IP Forwarding James Marcinek
  2003-03-24 13:37 ` Jesper Lund
  2003-03-24 14:08 ` Rob Sterenborg
@ 2003-03-24 14:54 ` sathvanth
  2 siblings, 0 replies; 7+ messages in thread
From: sathvanth @ 2003-03-24 14:54 UTC (permalink / raw)
  To: James Marcinek; +Cc: netfilter

hi,
 u have to do it in two places.
 one /proc/sys/net/ipv4/ip_forward ..echo 1 to this file

the next is /etc/sysctl.conf..set net.ipv4.conf.default.ip_forward=1

hope this helps.

Regds,
sathvanth
On Mon, 2003-03-24 at 18:32, James Marcinek wrote:
> I always foget this.
> 
> Can anyone tell me which file I need to modify to turn
> on IP Forwarding? I know where to do it while the
> system is on; however, since it's a multi-homed system
> and my router, I would like to have it setup
> correctly...
> 
> Thanks,
> 
> James
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com




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

end of thread, other threads:[~2003-03-24 14:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-24 13:02 Turning on IP Forwarding James Marcinek
2003-03-24 13:37 ` Jesper Lund
2003-03-24 14:48   ` James Marcinek
2003-03-24 14:51   ` Scott MacKay
2003-03-24 14:08 ` Rob Sterenborg
2003-03-24 14:19   ` Kim Jensen
2003-03-24 14:54 ` sathvanth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox