[pptp-server] NAT Installation

Ed Padin epadin at wagweb.com
Fri Dec 10 14:46:20 CST 1999


Are you looking to do a static NAT implmentation? This is where you have a
one-to-one correspondence between addresses on the 'inside' and 'outside'
networks. If you are, then you can use this app. but be aware that this
thing is a real pain in the ass to get working. If you need help let me
know. I got this code working under a 2.0.33 kernel. You need to do a proxy
ARP to get it working right. 

If all you want is to do the typical NAT you need for accessing the Internet
from a private network, that is, network masquerading, then you don't need
ip-nat. ipfwadm with the -m flag will do what you need. It's included with
almost all Linux distributions but you may have to recompile your kernel to
enable it. The newer version for 2.2 kernels is ipchains. I don't know much
about ipchains (yet).




>-----Original Message-----
>From: Ali Lahooti [mailto:alahooti at rodgers.rain.com]
>Sent: Friday, December 10, 1999 2:38 PM
>To: pptp-server at lists.schulte.org
>Subject: [pptp-server] NAT Installation
>
>
>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
>----------------------------
>
>_______________________________________________
>pptp-server maillist  -  pptp-server at lists.schulte.org
>http://lists.schulte.org/mailman/listinfo/pptp-server
>List services provided by www.schulte.org!
>




More information about the pptp-server mailing list