> помогите решить проблему, спасибо !# firehol explain
: firehol.sh,v 1.273 2008/07/31 00:46:41 ktsaou Exp $
[...cansored...]
# FireHOL [:] > dnat to 88.88.88.88 src 192.168.1.0/24 dst 55.55.55.55
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
# Cmd Line : 1
# Command : dnat to 88.88.88.88 src 192.168.1.0/24 dst 55.55.55.55
# Creating chain 'nat.2' under 'PREROUTING' in table 'nat'
/sbin/iptables -t nat -N nat.2
/sbin/iptables -t nat -A PREROUTING -s 192.168.1.0/24 -d 55.55.55.55 -j nat.2
# Taking the NAT action: 'dnat'
/sbin/iptables -t nat -A nat.2 -j DNAT --to-destination 88.88.88.88
# > OK <
...
# Command : router Z
# Creating chain 'in_Z' under 'FORWARD' in table 'filter'
/sbin/iptables -t filter -N in_Z
/sbin/iptables -t filter -A FORWARD -j in_Z
# Creating chain 'out_Z' under 'FORWARD' in table 'filter'
/sbin/iptables -t filter -N out_Z
/sbin/iptables -t filter -A FORWARD -j out_Z
...
# Command : client rdp accept src 192.168.1.0/24 dst 55.55.55.55
# Preparing for service 'rdp' of type 'client' under interface 'Z'
# Creating chain 'in_Z_rdp_c1' under 'in_Z' in table 'filter'
/sbin/iptables -t filter -N in_Z_rdp_c1
/sbin/iptables -t filter -A in_Z -j in_Z_rdp_c1
# Creating chain 'out_Z_rdp_c1' under 'out_Z' in table 'filter'
/sbin/iptables -t filter -N out_Z_rdp_c1
/sbin/iptables -t filter -A out_Z -j out_Z_rdp_c1
# Running simple rules for client 'rdp'
/sbin/iptables -t filter -A out_Z_rdp_c1 -p tcp -s 192.168.1.0/24 --sport 1024:65535 -d 55.55.55.55 --dport 3389 -m state --state NEW\,ESTABLISHED -j ACCEPT
/sbin/iptables -t filter -A in_Z_rdp_c1 -p tcp -s 55.55.55.55 --sport 3389 -d 192.168.1.0/24 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT
...
# FireHOL [router:R] > quit
version 5
dnat to 88.88.88.88 src 192.168.1.0/24 dst 55.55.55.55
router Z
# Command : client rdp accept src 192.168.1.0/24 dst 55.55.55.55
client rdp accept src 192.168.1.0/24 dst 55.55.55.55
# _