-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gitano, you rock. It finally works without any error messages! Now one final thing: It seems that iptables configs are lost when the computer is shut down. Can I just add this to /etc/rc.d/rc.local, or should it be initiated earlier in the boot sequence given that iptables is kernel related?
~Andrew - -- People just like you lose untold millions in personal wealth due to frivolous lawsuits and unfair government seizures. Are you protected? Read the Asset Protection Crash Course at http://www.keepyourassets.net?andrew to find out how to protect your hard-earned assets. Gitano wrote: > Andrew Del Vecchio wrote: > >> I got nothing: >> >> Chain PREROUTING (policy ACCEPT) >> target prot opt source destination > > This works well for me: > --- > iptables -t nat -F PREROUTING > iptables -t nat -A PREROUTING -p TCP -i eth0 --dport 443 -j REDIRECT > --to-ports 9001 > --- > iptables -L -nv -t nat > Chain PREROUTING (policy ACCEPT 5080K packets, 266M bytes) > pkts bytes target prot opt in out source destination > 6543 585K REDIRECT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 > tcp dpt:443 redir ports 9001 > > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHesmegwZR2XMkZmQRAmY4AJ4zywMTEtZvKz0WNiQIpo6AZ5I+6wCfUrbw CYHS8T0x9EpTrPQXTA8R3IM= =g6vz -----END PGP SIGNATURE-----