Jan Johansson
2002-Oct-18 15:33 UTC
[Shorewall-users] Simple redirect, and i cant get it right?
I want to take all requests from LOC with a destination of 195.163.130.58:25 and redirect them to 212.37.1.51:25 but I just cant seem to get it right? Shouldn''t that be #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL # PORT PORT(S) DEST ACCEPT loc net:212.37.1.51 tcp smtp - 195.163.130.58
Jan Johansson
2002-Oct-18 15:48 UTC
[Shorewall-users] Simple redirect, and i cant get it right?
>i may be wrong, but shouldnt you be using REDIRECT and not ACCEPT?Redirect is only for local ports... or so the rules file say.
Ian Hunter
2002-Oct-18 15:54 UTC
[Shorewall-users] Simple redirect, and i cant get it right?
Should that be DNAT instead of ACCEPT? You are changing addresses... ----- Original Message ----- From: Jan Johansson To: shorewall-users@shorewall.net Sent: Friday, October 18, 2002 11:33 AM Subject: [Shorewall-users] Simple redirect, and i cant get it right? I want to take all requests from LOC with a destination of 195.163.130.58:25 and redirect them to 212.37.1.51:25 but I just cant seem to get it right? Shouldn''t that be #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL # PORT PORT(S) DEST ACCEPT loc net:212.37.1.51 tcp smtp - 195.163.130.58