[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]


I am trying to setup ipportfw.  I have compiled a (patched) kernel with 
support for firewall, masquerading, ipalias, ipport forwarding.  I set
up masquerading the normal way, and it works.  I gave the masquerader a
second IP with aliasing on eth0:0.  I setup /etc/init.d/ipportfw with
rules to forward ports 80,21 to the masqueraded machine.  I must be
missing something fundamental, because it doesn't work.

Here are some excerpts from the important files:

ifconfig eth0:0 $IP-TO-BE-FORWARDED
route add -host $IP-TO-BE-FORWARDED 
ifconfig eth1 netmask broadcast
route add -net dev eth1
ipfwadm -F -p deny
ipfwadm -a m -S -D

portfwrules () {
	echo -n
	ipportfw -A -t $IP-TO-BE-FORWARDED -R
	ipportfw -A -t $IP-TO-BE-FORWARDED -R


  Mike Schmitz     mschmitz@bend-or.com    http://www.bend-or.com/~mschmitz
  Don't blame me - I voted libertarian!    http://www.lp.org/
  Use Debian Linux - the free Gnu/Linux    http://www.debian.org/
	 "If encryption is outlawed, only outlaws will have encryption" 

Reply to: