Subject: IPNat rules for passing dialpad.com connections through a gateway
To: None <netbsd-help@netbsd.org>
From: Zach Fine <zach@xdsl014.serv.net>
List: netbsd-help
Date: 11/28/1999 13:35:11
My NetBSD box acts as a gateway to my home network, and one of the
Win98 users would like to be able to use a program called 'dialpad' to 
make free long distance calls. The faq for dialpad
(http://www.dialpad.com) includes instructions for use with Linux IP
Masquerading, but I'm having trouble figuring out how to translate
these instructions into entries in my /etc/ipnat.conf.

Here's the Linux IPmasq info from that faq:

------------------------------------------------------
Linux IP Masquerading (Thanks to Allen Rotton) 
If you're using a firewall, make sure you enabled UDP: 51200, 51201, and TCP: 51210. 
In your /etc/rc.d/rc.local, add the following lines and reboot
/usr/sbin/ipmasqadm autofw -A -v -r udp 51200 51201 -c tcp 7175
/usr/sbin/ipmasqadm autofw -A -v -r tcp 51210 51210 -c tcp 7175
Also, please take a look at
http://www.ispchannel.com/~rottona/linux_dialpad.html
------------------------------------------------------


The lines in my /etc/ipnat.conf that relate to this particular users
machine are:

map ep0 192.168.1.2/32 -> 207.207.83.53/32 portmap tcp/udp 10000:40000
map ep0 192.168.1.2/32 -> 207.207.83.53/32 proxy port ftp ftp/tcp
map ep0 192.168.1.2/32 -> 207.207.83.53/32

Thanks for any help.

-Zach Fine
czyz@serv.net