Koozali.org: home of the SME Server

looseUDP

CornedBee

looseUDP
« on: November 06, 2001, 06:32:46 PM »
Hi
I have a little network (4 Win98/2k pcs) connected to the internet via an e-smith 4.1server. I want to play Starcraft on one of these computers, so I need to activate the looseUDP patch. A tutorial tells me to edit the rc.firewall file in /etc/rc.d/. But there is no such file. I need to change the line
echo "0" > /proc/sys/net/ipv4/ip_masq_udp_dloose
to
echo "1" > /proc/sys/net/ipv4/ip_masq_udp_dloose

Does anyone know where to find this line? Or maybe another way to activate the patch?
Thanks in advance
CornedBee

Luckydog

Re: looseUDP
« Reply #1 on: November 07, 2001, 12:08:59 AM »
Well there are 3 things you could do.

a)  The first is to logon as root and issue the command:

echo "1" > /proc/sys/net/ipv4/ip_masq_udp_dloose

But if you reboot or masq restarts, your command is gone.

b)  You could edit the /etc/rc.local  file and add that line to it.   But if masq restart because of anything else, the command is gone.

c)  You could 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_masq_udp_dloose
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





CornedBee wrote:
>
> Hi
> I have a little network (4 Win98/2k pcs) connected to the
> internet via an e-smith 4.1server. I want to play Starcraft
> on one of these computers, so I need to activate the looseUDP
> patch. A tutorial tells me to edit the rc.firewall file in
> /etc/rc.d/. But there is no such file. I need to change the
> line
> echo "0" > /proc/sys/net/ipv4/ip_masq_udp_dloose
> to
> echo "1" > /proc/sys/net/ipv4/ip_masq_udp_dloose
>
> Does anyone know where to find this line? Or maybe another
> way to activate the patch?
> Thanks in advance
> CornedBee

CornedBee

Re: looseUDP
« Reply #2 on: November 08, 2001, 05:39:29 PM »
Thanks, that works!