[lug] dumb q....echo 1?

j davis davis_compz at hotmail.com
Thu Apr 4 11:24:18 MST 2002


thanks...funny, but very helpfull
jd


>From: <hirsch at zapmedia.com>
>Reply-To: lug at lug.boulder.co.us
>To: lug at lug.boulder.co.us
>Subject: [lug] dumb q....echo 1?
>Date: Thu, 4 Apr 2002 09:45:51 -0500
>
>j davis writes:
>  >
>  > hi,
>  >
>  > so im rebulding my firwall with the help of the best iptables how
>  > to i have ever read
>  > http://www.boingworld.com/workshops/linux/iptables-tutorial (thats 
>quite a
>  > few now). Anyway in a example script
>  > this is used
>  >
>  > echo "1" > /proc/sys/net/ipv4/ip_forward
>  >
>  > so i think the text "ip_forward" is being written to 
>/proc/sys/net/ipv4..
>  > what is the "1" for? Also proc is the ram right? could some one explain
>  > why i have to do this and what is really happening when i do this.
>
>I think you have misunderstood that line. The command: echo "1"
>will just print the numeral 1 on your terminal, so
>       echo "1" > /proc/sys/net/ipv4/ip_forward
>will send the numeral to the file /proc/sys/net/ipv4/ip_forward.
>
>The /proc directory and its children are a direct line to the kernel,
>and 1 is true.  So you are telling the kernel that it should activate
>the ip_farward feature of it ipv4 (Internet Protocol 4, or the
>standard internet netwroking stuff) part of the networking system.
>
>In other words, "start doing IP forwarding".
>
>Hope that clarifies it a bit,
>
>--Michael
>_______________________________________________
>Web Page:  http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the LUG mailing list