IPMasqadm Setup

Posted on 2001-09-12
Last Modified: 2008-03-10
Hello experts:

Im trying to setup ipmasqadm on my linux box for port forwarding, but I am running into difficulties.  My kernel has been compliled correctly, but after I ftp ipmasqadm to my box and try to 'make' it, I run into problems:  Here is the error that I get:

[root@firewall ipmasqadm-0.4.2]# make
make: *** [check_kernel_headers_directory] Error 1

Im running RedHat 6.0 2.2.15

Any help would be appreciated.
Question by:escheider
  • 3
  • 2

Expert Comment

ID: 6481669

Ipfwadm has been replaced by ipchains which in itself has now been bettered by iptables. So, you might consider trying ipchains at least. The ipchains that shipped with rh6.0 can be obtained from here -->

For you specific question, it just sounds as if you are trying to compile a program without having the linux kernel headers file (C language .h files) installed on your machine. For a vanilla RH6, these are here -->

Just download somewhere and install with :

rpm -Uvh kernel-headers-2.2.5-15.i386.rpm

I've a suspicion Redhat used to put the kernel-headers soemwhere non-standard in which case you'd have to find out where and make a symlink to satisfy ipmasqadm.



Author Comment

ID: 6482791
Here is the output I get when I type your command:

[root@firewall xxxx]# rpm -Uvh kernel-headers-2.2.5-15.i386.rpm
error: package kernel-headers-2.2.5-15 is already installed
[root@firewall xxxx]#

Any other thoughts?

Expert Comment

ID: 6483667
As ifincham already pointed out, you should use ipchains with a 2.2 kernel.  It is probably already installed (I can't remember if it was default from 6.0 or 6.1 on), but it is probably there.
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.


Author Comment

ID: 6483705
I am using ipchains, but need ipmasqadm to do port forwarding (at least I think its a requirement).


Accepted Solution

BlackDiamond earned 30 total points
ID: 6483795
sorry, saw ipfwadm in the other comment and that is what clicked. :->

Go grab and install an rpm.  No need to go through the hassle of building it from scratch.  You can find one here:

Just run "rpm -Uvh packagename.rpm" when you get the one you need.


Author Comment

ID: 6488135
RPM did the job.  Thanks alot..i was gettin pissed there for awhile.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 49
Cpanel and Mail logs 1 48
Squid Connection Pools 3 46
Vmware tools installation in ubuntu 14.04 11 98
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: (…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now