Re: NoArp Kernel Module

Greg Boehnlein <[email protected]>
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
On Wed, 16 Jul 2003, Greg Boehnlein wrote:

> Hello,
> 	A while back someone posted a link to a NoArp kernel module that 
> provided the functionality of the hidden arp patch that could be loaded as 
> a Kernel Module against standard RedHat kernels. That link was:
> 
> http://www.masarlabs.com/noarp/
> 
> That appears to be broken.
> 
> Any ideas on where I can get this? Or should I just implement the standard 
> hidden-arp patch from Julian?

Well.. I did manage to find MasarLabs noarp module and got it built and 
installed. Seems silly that no one has created an RPM for this, so I went 
ahead and started hacking one together. ;)

Here is the Spec file, which is broken and needs to be tweaked by someone 
that understands how to build RPM packages better than I do.

--- BEGIN SPEC FILE ---
%define prefix /

Summary:        Noarp module for hidden arp functionality
Name:           noarp
Version:        1.1.5
Release:        1
Copyright:      GPL
Group:          Applications
Source:         noarp-1.1.5.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
URL:            http://www.masarlabs.com/noarp/
Packager:       Gregory Boehnlein <[email protected]>
%description
MasarLabs noarp is a Linux kernel module that filters and drops unwanted 
ARP requests.

It is useful when you are using Linux kernel 2.4.19 (or above) and need to 
add an alias to the loopback interface to 
use a load balancer.

For more details about this problem see:
http://www.linuxvirtualserver.org/docs/arp.html

%prep
%setup

%build
./configure --prefix=%{prefix} --with-moduledir=/lib/modules/noarp --sbindir=/usr/sbin --mandir=/usr/share/man/
make
%install
# make prefix= PREIX= DESTDIR=$RPM_BUILD_ROOT install
make prefix=%{prefix} PREFIX=%{prefix} DESTDIR=$RPM_BUILD_ROOT install

%files

%defattr(-,root,root)
%{prefix}/*

%changelog

* Wed Jul 16 2003 <[email protected]>
- Modified configure command to build for a "proper" redhat architecture
- noarp.o is now placed in /usr/lib/modules/noarp

* Wed Jul 16 2003 <[email protected]>
- First spec autogenerated by rpmbuilder.

--- END SPEC FILE ---

-- 
    Vice President of N2Net, a New Age Consulting Service, Inc. Company
         http://www.n2net.net Where everything clicks into place!
                             KP-216-121-ST
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.