Trying to migrate server traffic with iptables



Hi,

I'm moving several domains from one box to another. I'd like to use
iptables to redirect traffic from the old server to the new server
while the DNS propagation catches up. I was successfully using xinetd
to redirect the traffic, but my mailserver requires that the IP address
on the incoming SMTP, POP, and IMAP packets match the server IP. I
think that iptables can do this, can someone confirm this? If so, what
commands do I need to use? I've read a lot of firewall scripts and am
getting confused with SNAT, DNAT, postrouting and prerouting. Any
guidance here would be appreciated.

.



Relevant Pages

  • Re: NIS client couldnt log in
    ... >> off iptables, the client bound to the server and all the yptools ... and ypbind in broadcast mode (ypcat and ypwhich would ... >> work at all if i specified the server). ... Further, ypbind uses the ...
    (RedHat)
  • Need help configuring IPtables w/ DMZ, 2 LAN, and INET
    ... I am desperately in need of assistance in configuring an IPtables ... firewall on a Red Hat Linux 9.0 server. ... Chain FORWARD ... tcp dpt:25 flags:0x16/0x02 ...
    (comp.os.linux.networking)
  • Static IP w/ PPPoe xDSL Firewall
    ... iptables -F -t nat ... # Kill malformed XMAS packets ... # Refuse incoming packets pretending to be from the external address. ... # server/client to server query or response ...
    (comp.os.linux.networking)
  • Re: Modprobe question
    ... >> Made some minor changes to iptables and did a restart. ... >> modprobe seems to be doing something but I can't tell what. ... >> course the server seems to be running fine. ...
    (alt.linux)
  • losing connection to server when scanned by nmap - Iptables
    ... The iptables script applied to the NIC is shown below. ... the web server or ssh into the server when I do this scan. ... echo 2> $f ... # Refuse packets claiming to be from a Class A private network. ...
    (comp.security.firewalls)