On Sunday 24 August 2003 09:04, Winelfred G. Pasamba wrote: > correct me if i'm wrong: > i read somewhere ipchains or iptables(?) can only redirect packets to > local ports. what i needed was redirecting to another machine & port.
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.1.123:80 you could, of course, add any filters you want there (e.g. -i eth0, -s <some_source_ip_that_is_allowed> or whatever. i just tested. works for me. you can also do this with xinetd, e.g: http://www.cs.sunyit.edu/~penneyn/CSC407/xinetd.htm and of course, as with rinetd, there are quite a few other solutions. tiger -- Gerald Timothy Quimpo gquimpo*hotmail.com tiger*sni*ph http://bopolissimus.sni.ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Only kings, presidents, editors and people with tapeworms have the right to use the editorial "we". - Mark Twain -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
