Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip_forward and conf/*/forwarding

Reply
Thread Tools Display Modes

ip_forward and conf/*/forwarding

 
 
Rafal Dabrowa
Guest
Posts: n/a

 
      07-15-2007, 08:38 AM
I have two net interfaces on my computer: eth0 and ppp0.
So I can control forwarding between interfaces through special
files on proc file system:

/proc/sys/net/ipv4/ip_forward
/proc/sys/net/ipv4/conf/all/forwarding
/proc/sys/net/ipv4/conf/default/forwarding
/proc/sys/net/ipv4/conf/eth0/forwarding
/proc/sys/net/ipv4/conf/ppp0/forwarding

How IP packet forwarding is changed when I put 0/1 to particular
interfaces? If I put 0 to conf/eth0/forwarding file, then forwarding
*from* eth0 is disabled or forwarding *to* eth0 is disabled, or in both
directions ? If I put 1 to conf/default/forwarding, then forwarding
through eth0 will be enabled despite conf/eth0/forwarding contains 0,
or maybe conversely: if I put 0 to conf/default/forwarding then
forwarding through eth0 will be disabled despite conf/eth0/forwarding
contains 1? Similar question about connection of conf/all/forwarding
and ip_forward values with conf/eth0/forwarding and influence of them
altogether on packet forwarding on eth0.


--
Rafal
 
Reply With Quote
 
 
 
 
elsiddik
Guest
Posts: n/a

 
      07-16-2007, 09:45 AM
On Jul 15, 6:38 pm, Rafal Dabrowa <rdsbr...@poczts.onet.pl> wrote:
> I have two net interfaces on my computer: eth0 and ppp0.
> So I can control forwarding between interfaces through special
> files on proc file system:
>
> /proc/sys/net/ipv4/ip_forward
> /proc/sys/net/ipv4/conf/all/forwarding
> /proc/sys/net/ipv4/conf/default/forwarding
> /proc/sys/net/ipv4/conf/eth0/forwarding
> /proc/sys/net/ipv4/conf/ppp0/forwarding
>
> How IP packet forwarding is changed when I put 0/1 to particular
> interfaces? If I put 0 to conf/eth0/forwarding file, then forwarding
> *from* eth0 is disabled or forwarding *to* eth0 is disabled, or in both
> directions ? If I put 1 to conf/default/forwarding, then forwarding
> through eth0 will be enabled despite conf/eth0/forwarding contains 0,
> or maybe conversely: if I put 0 to conf/default/forwarding then
> forwarding through eth0 will be disabled despite conf/eth0/forwarding
> contains 1? Similar question about connection of conf/all/forwarding
> and ip_forward values with conf/eth0/forwarding and influence of them
> altogether on packet forwarding on eth0.
>
> --
> Rafal


your question was How ----
you should read more tutorials here is some info taken from a book
Understanding Linux Network Internals By Christian Benvenuti .

http://books.google.com/books?id=yy7...dzpS9DbldqFvG0



good luck

zaher el siddik
http://elsiddik.blogspot.com/

 
Reply With Quote
 
Rafal Dabrowa
Guest
Posts: n/a

 
      07-16-2007, 01:24 PM
elsiddik wrote:
> your question was How ----
> you should read more tutorials here is some info taken from a book
> Understanding Linux Network Internals By Christian Benvenuti .
>
> http://books.google.com/books?id=yy7...dzpS9DbldqFvG0


Thanks.

--
Rafal
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ip_forward is not working in small network Franz Linux Networking 2 04-15-2006 10:13 AM
dhcpd.conf, resolv.conf and the search directive Andy Richardson Linux Networking 4 07-13-2005 08:23 AM
simple question about ip_forward and NAT routing. meneg Linux Networking 3 03-31-2005 08:55 AM
Redhat 9 and IP_Forward stewart menday Linux Networking 2 12-17-2003 07:55 PM
smb.conf being ignored? Gururajan Ramachandran Linux Networking 2 07-29-2003 08:29 PM



1 2 3 4 5 6 7 8 9 10 11