Re: Changing outbound IP addresses
From: Benno (spamtrap_at_ans-net.nl)
Date: 12/25/04
- Previous message: steve_at_hydramusic.net: "Changing outbound IP addresses"
- In reply to: steve_at_hydramusic.net: "Changing outbound IP addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 25 Dec 2004 22:03:39 +0100
<steve@hydramusic.net> wrote in message
news:1104001634.509368.298720@z14g2000cwz.googlegroups.com...
> Hello,
>
> 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".
This is my iptables line to do the job.
My local mail server is listening on port 25 and 2025 it will probably work
on to-ports 25 also, i have not tested this.
iptables -t nat -I PREROUTING -s 192.168.0.0/24 -p tcp --dport 25 -j
REDIRECT --to-ports 2025
Benno
- Previous message: steve_at_hydramusic.net: "Changing outbound IP addresses"
- In reply to: steve_at_hydramusic.net: "Changing outbound IP addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|