Hi Steve -
On 25 Dec 2004 11:05:46 -0800,
(E-Mail Removed) wrote:
>I want to set up my router so any request going to any ip address on
>port 25 instead goes to my internal SMTP server. IE, if I do a "telnet
>66.167.1.230 25", packets should instead be sent to "192.168.1.1 25".
>
>Do I use the OUPUT chain or the FORWARD chain to do this? Is this DNAT?
>Do I have to use stateful packet filtering or can I get by without it?
>
>Just give me a general idea of what to do, I can look up the details on
>google.
I'm assuming that the router and server are two different systems.
Yes, you want PREROUTING DNAT to change the destination IP address.
The FORWARD chain needs to ACCEPT the packets going both directions.
--
Ken
http://www.ke9nr.net/