routing

Doncho N. Gunchev mr700 at globalnet.bg
Fri Feb 27 11:31:56 UTC 2004


On Friday 27 February 2004 09:09, Roger Grosswiler wrote:
> for just having basic routing functions, check in /proc/sys/net/ipv4
> whether your ip_forward is set to 1. if no, do echo 1 > ip_forward and
> your fedora box should immediately handle as a router.
> 
The "RedHat (tm)" way of doing this is putting it in /etc/sysctl.conf AFAIK.
--- cut ---
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
--- cut ---

if you need some more control over the routing, please read
/usr/share/doc/initscripts-x.xx/* to see how to change/add files
in your /etc/sysconfig/network-scripts

I personally like to have:
--- /etc/sysconfig/network-scripts/route-lo ---
unreachable 10.0.0.0/8
unreachable 172.16.0.0/12
unreachable 192.168.0.0/16
--- end ---
to make sure I will not route unknown private nets to the whole internet.
The private subnets I use are shorter routes, so they take precedence.

-- 
Regards,
  Doncho N. Gunchev    Registered Linux User #291323 at counter.li.org
  GPG-Key-ID: 1024D/DA454F79
  Key fingerprint = 684F 688B C508 C609 0371  5E0F A089 CB15 DA45 4F79





More information about the users mailing list