servers redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I need to redirect all requests to my server "Xserver:Xport", to server "Yserver:Yport".

For some months I've been using these iptables commands,
with Destination NAT and Source NAT on server "Xserver":

/sbin/iptables -t nat -A PREROUTING -p tcp -d "$Xserver" --dport "$Xport" -j DNAT --to-destination "$Yserver:$Yport" /sbin/iptables -t nat -A POSTROUTING -p tcp -d "$Yserver" --dport "$Yport" -j SNAT --to-source "$Xserver"

Now, these same commands don't work any more,
and I don't now why.
Recently the only changes I made on my servers
is a reboot.

Can you help me?
Have I made some mistakes on these commands?

Thanks

Ch.

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux