[pptp-server] NAT Installation

Ali Lahooti alahooti at rodgers.rain.com
Fri Dec 10 13:38:32 CST 1999


Hi,

I am in a process of installing NAT (NETWORK ADDRESS 
TRANSLATION) software to configure a VPN firewall.

I have received these instructions from the following URLs:

http://www.moretonbay.com/vpn/releases/HOWTO-PoPToP.txt

and have downloaded NAT from the site below.

http://www.csn.tu-chemnitz.de/HyperNews/get/linux-ip-nat.html
However, I have problems installing NAT.  Here is more information, 
please advise where can I find the missing file(s) or what I am doing 
wrong.  Thanks in advance.
-Ali
================================================
/* Contents of the source directory */

[root at vpn nat-static-2.2.4]# ls
COPYING  README  README2  doc  ipnatadm  kernel
================================================
/* Contents of the ipnatadm directory */
 
[root at vpn ipnatadm]# ls
Makefile  README  ipnatadm.8  ipnatadm.c  ipnatadm.h  routines.c
================================================
/* Makefile source code */

[root at vpn ipnatadm]# more Makefile
CC      = gcc
CFLAGS  = -Wall -O2
SBIN    = /usr/local/sbin
MANDIR  = /usr/local/man
INSTALL = install
INCLUDE = -I/usr/src/linux/include

all:            ipnatadm

ipnatadm:       ipnatadm.o routines.o

ipnatadm.o:     ipnatadm.c ipnatadm.h
                $(CC) $(CFLAGS) $(INCLUDE) -c -o ipnatadm.o 
ipnatadm.c

routines.o:     routines.c ipnatadm.h
                $(CC) $(CFLAGS) $(INCLUDE) -c -o routines.o routines.c

ipnatadm.h:

install:        ipnatadm
                $(INSTALL) -m 0755 -o root -g root ipnatadm $(SBIN)/
                $(INSTALL) -m 644 -o root -g root ipnatadm.8 
$(MANDIR)/
	
clean:
                rm -f ipnatadm *.o core
================================================
/* Error message after running "make" */

[root at vpn ipnatadm]# make
gcc -Wall -O2 -I/usr/src/linux/include -c -o ipnatadm.o ipnatadm.c
In file included from ipnatadm.c:45:
ipnatadm.h:9: linux/ip_nat.h: No such file or directory
make: *** [ipnatadm.o] Error 1
================================================




---------------------------
Ali Lahooti
Rodgers Instruments LLC
http://www.rodgerscorp.com
Tel: (503) 681-0484
Fax: (503) 681-6530
----------------------------




More information about the pptp-server mailing list