On Thu, 22 Apr 1999, Jay Tarbox wrote:
> Ok, got the new kernel with this great new ipchains in it. How do you get
> the functionality of ipportfw with it? I have a web server/mail server on
> the inside of this firewall/ip masq box. I want web,dns and mail requests
> to go to the server inside. Thats all. I can do it easily with the old
> ipportfw, but this ipchains is really screwing me up. IMHO the How-to on
> the thing and the man page really suck. Any help out there for me?
This assumes all these services are on internal box 10.0.0.1
/usr/sbin/ipmasqadm portfw -f
/usr/sbin/ipmasqadm autofw -A -r udp 53 53 -h 10.0.0.1
/usr/sbin/ipmasqadm autofw -A -r tcp 80 80 -h 10.0.0.1
/usr/sbin/ipmasqadm autofw -A -r tcp 25 25 -h 10.0.0.1
/usr/sbin/ipmasqadm autofw -A -r tcp 110 110 -h 10.0.0.1
/usr/sbin/ipmasqadm autofw -A -r tcp 143 143 -h 10.0.0.1
Mark