Koozali.org: home of the SME Server

ip_always_defrag not enabled?

Hans van Veen

ip_always_defrag not enabled?
« 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

Luckydog

Re: ip_always_defrag not enabled?
« Reply #1 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

WXP

Re: ip_always_defrag not enabled?
« Reply #2 on: November 13, 2001, 11:47:07 AM »
What is that ip_always_defrag for ?

Thanx

anatole

Re: ip_always_defrag not enabled?
« Reply #3 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