On Sun, Feb 02, 2003 at 12:01:58AM +0900, Jeong Kibaek wrote:
> Hello, I have made efforts to solve this problem for a few days, but I
> can't solve the problem.  I want to use port forwarding. But i don't
> think it looks like working well.  Following is my firewall.conf file. 
> 
> EXT_IP=`ifconfig eth1 | grep -i "addr:" | cut -f2 -d: | cut -f1 -d " "`
> 
> PORT_FORWARDS=" \
> $EXT_IP(30000)-192.168.0.2(21) \
> $EXT_IP(20)-192.168.0.2(20) \
> $EXT_IP(5900)-192.168.0.2(5900) "
> 
(snip)
> 
> I'm useing 0.8.5 firewall.conf and script and i have tested on both
> 1.2.1a iptables (2.4.2 kernel) and 1.2.5 iptables (2.4.18 kernel)

You may want to upgrade to 1.2.7a, but the script should work with
earlier too.

> What's the problem? What can I do for using port forwarding?

An entry in PORT_FORWARDS is all that is needed.  You haven't listed the
ports in any of the ALLOWED_PORTS* variables have you?

It would help if you could provide the complete output of a firewall
status. (/etc/init.d/firewall status > /tmp/firewall-status)

-- 
Jamin W. Collins

Reply via email to