In comp.os.linux.networking nick <(E-Mail Removed)>:
> the follow rules is work in RedHat9, but when i put it in FedoraCore4
> ,some errors occur, so how to solve these problems?
> thanks!
> ################################################## #############
> ### Define interfaces here
> INT_DEV=eth0
> EXT_DEV=ppp0
> INT_NET=192.168.1.0/24
> ### Loading firewall modules
> modprobe ip_conntrack
> modprobe ip_conntrack_ftp
> ################################################## #############
> ### Enable Packet Forwarding
> echo 1 > /proc/sys/net/ipv4/ip_forward
> ### Remove all previous rules, and delete any user defined chains
> iptables -F
> iptables -X
> iptables -t nat -F
> iptables -P INPUT DROP
> iptables -P FORWARD DROP
> iptables -P OUTPUT ACCEPT
> iptables -A INPUT -i lo -j ACCEPT
> iptables -A FORWARD -i eth0 -o eth1 -p tcp --dport 3389 -j ACCEPT
> iptables -A INPUT -i eth1 -s 192.168.0.0/24 -j ACCEPT
> iptables -A FORWARD -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
> iptables -A FORWARD -i eth1 -o eth0 -s 192.168.1.0/24 -j ACCEPT
> iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT
> --to-destination 192.168.0.2:3389
> echo 1 > /proc/sys/net/ipv4/ip_forward
Doesn't look that bad, perhaps module names changed, who knows.
Simply show us the exact error messages, via (cut&paste) so we
can have a look, or should we guess?
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo
(E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 279: The static electricity routing is acting up...