Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Hans van Veen on November 12, 2001, 10:14:33 PM

Title: ip_always_defrag not enabled?
Post by: Hans van Veen on November 12, 2001, 10:14:33 PM
In the /proc/sys/net/ipv4 directory, the content of ip_forward is set to 1 in order to activate NAT (correct me if I'm wrong). I would like to set ip_always_defrag to 1 too (echo 1 > /proc/sys/net/ipv4/ip_always_defrag), but this setting does not survive a reboot.

How do I make this a permanent setting ?

Thanks in advance,
Hans
Title: Re: ip_always_defrag not enabled?
Post by: Luckydog on November 13, 2001, 12:28:40 AM
Build a custom template fragment to make it permanent.

To do this do the following:

mkdir /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
(this is to build a home for custom template)

cd /etc/e-smith/templates/etc/rc.d/init.d/masq
(this is where the source template is)

cp 30SourceAddressVerification /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/30SourceAddressVerification
(move the original template to the custom template area)

cd /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
(move to the custom template area)

vi 30SourceAddressVerification
(edit the custom template - you can also use pico instead of vi)

Now add the line
echo 1 > /proc/sys/net/ipv4/ip_always_defrag
after the other echo commands in that fragment.

Now build the template by issuing the command:

/sbin/e-smith/expand-template /etc/rc.d/init.d/masq

Now restart masq

/etc/rc.d/init.d/masq restart
Title: Re: ip_always_defrag not enabled?
Post by: WXP on November 13, 2001, 11:47:07 AM
What is that ip_always_defrag for ?

Thanx
Title: Re: ip_always_defrag not enabled?
Post by: anatole on November 13, 2001, 03:54:53 PM
The simpliest is to edit the file named sysctl.conf in the directory /etc
you will notice that the configuration setting for that particular property is
set to  0 change this to 1 and restart your network.

1. use midnight commander and edit   .net.ipv4.ip-always_defrag = 1 in the file
    /etc/sysctl.conf
2. type at the console root prompt # "service network restart"

another way  is to type at the console root prompt #" sysctl -w .net.ipv4/ip_always_defrag="1"  wirjout restarting your network

of course you still need to edit the sysctl.conf file to make this permanent in
every boot

wala your done

anatole